Snippets tagged “sudo”
5 snippets use this tag.
- Changing permissions via chmod at runtime errors with "Operation not permitted"PHP
It sounds like you are trying to use the chmod command to change the permissions on a file, but you are encountering an error that says "Operation not permitted".
- Composer: file_put_contents(./composer.json): failed to open stream: Permission deniedPHP
This error message is indicating that the script is trying to write to the file "composer.json" in the current directory (indicated by "./"), but it doesn't have the necessary permissions to do so.
- Execute root commands via PHPPHP
It is generally not recommended to execute root commands via PHP, as it can pose a security risk to the system.
- How to set JAVA_HOME in Linux for all usersJava
To set the JAVA_HOME environment variable in Linux for all users, you will need to add a line to the /etc/environment file.
- python setup.py uninstallPython
The command python setup.py uninstall is not a built-in command in Python and it may not work as expected.