Hot answers tagged


Your question is a bit vague, but you seem to be asking about the principle of least privilege, which basically says that a system is most secure when each piece only has the permissions necessary to do its own tasks. This limits the possibility of damage from mistakes or malicious actions. An ordinary user typically does not need to be modifying ...


The technical concept you're looking for is known as Privilege Separation. With this concept, each program uses the privileges granted to the user running the application, which is enforced by the operating system's security modules. When a user needs to do something that's outside of their normal privileges, the system challenges the user in order to grant ...


Yes; a reboot will get rid of the mount.


You can first try to just copy the default .profile from the original copy found in /etc/skel/: /bin/cp /etc/skel/.profile /home/<username>/ If for some reason that does not work, you can follow the next part to replace your .profile from its original contents: Boot your system to Recovery Mode first so that you have root capabilities to your ...


The command to edit a file using sudo is sudoedit: sudoedit /etc/ssh/sshd_config Equivalently, you can also do: sudo -e /etc/ssh/sshd_config visudo, as already noted, is specifically meant for editing sudoers files. It performs syntax checking assuming the file is a sudoers file. You don't want to use it to edit other files.


Why not just run the script as superuser? sudo sh


You can use... echo password | sudo -S Password being your sudo password. From sudo manpage.. -S, --stdin Write the prompt to the standard error and read the password from the standard input instead of using the terminal device.


To solve issue one you need to be in a user terminal not a root terminal when you make the command. The command sudo -s -u www-data is changing the user to www-data but in the root home directory which .bashrc is not accessible to the user www-data. The second issue is that your /var/www directory has the wrong permissions and is set for root as owner ...


The answer above is correct. But if the launcher that launches your synaptic is pkexec, you can change it by editing the synaptic.desktop on /usr/share/applications folder and change the Exec= synaptic-pkexec command to Exec= gksu synaptic %u then save it. By pressing ALT + F2, run gconf-editor , go to apps and gksu mark sudo-mode. That may do. You can ...


Since root login is not possible by default because of security concerns you can do sudo su or sudo -i in terminal(ctrl+alt+t). Which then asks for your user password. This will be accepted because youre in the proper group called sudoers. Typing exit will bring you back to your normal user.


Not sure if the issue you describe is caused by those entries, but here is how to revert them: Open a terminal and type the following command: pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY gedit /etc/fstab (best copy the command and paste it into the command line by pressing CTRL+SHIFT+V). You will be asked for your password. This will open the ...


You should try $ sudo -E matlab This will tell sudo to preserve your environment variables. If this doesn't work, Matlab is probably loading a configuration file from /root instead of /home/username. You can check where the configuration is located using the prefdir command in Matlab. I believe it is located under /home/username/.matlab

Only top voted, non community-wiki answers of a minimum length are eligible