約124件1ページ目

日本語のみで絞り込む

2009/10/21 -You can put the required commands in a separate script/executable file (sh, PHP, a real executable, doesn't matter), change its owner to root, ...

2011/12/24 -I am attempting to run shell commands with sudo root privileges using exec() but can't seem to get it to work.

To run a command in background, the output must be redirected to /dev/null. This is written in exec() manual page. There are cases where you need the output to ...

2011/11/7 -Your sudoers line is granting access to execute "my_script.php" while your shell_exec is invoking "my_script.sh". When a password is not ...

2018/8/4 -The general idea is to write a tiny C program to run your command as root. As an example we'll create a wrapper to restart the mysqld service ...

2016/4/22 -I have a php script calling a bash script like this: <?php $result = exec('sudo /bin/bash /var/www/my_bash_script.sh / ...

2021/4/4 -Instead of using user pi's crontab, use root's: sudo crontab -e That way, your script already has root access and you don't need to use sudo .

2007/11/24 -Execute system commands via PHP · 1. Run the command sudo visudo · 2. At the end of the file, add the following www-data ALL=NOPASSWD: /sbin/ ...

Execute Shell commands with PHP #php. @tauseedzaman 7 likes 750 views 4y ago. more. Subscribe. Comments. Comment.

YouTubeTauseed Zaman

2010/4/11 -I am trying to create a simple web interface for my phone to preform simple server operations such as restart deamons. in my php file im calling