Aquamacs open file with sudo
The default user for the su command is root. What you will have to do is login as “root” by using the command “su -l”. If it determines, that your username is not on the list, you cannot run the command/program logged in as that user. This happens when you type the command “sudo”. When you want to run a command that requires root rights, Linux checks your username against the sudoers file. Remember, Linux is built with security in mind. This allows the administrator to control who does what. The sudoers file is a file Linux and Unix administrators use to allocate system rights to system users.
#AQUAMACS OPEN FILE WITH SUDO HOW TO#
Well, we just snatched the VIP list from the sleeping guard and will show you how to put your name on it. I have realized that not every distro allows this easy transaction, and that you may have to manually add your username to the sudoers file.
All you do is type:Īnd enter the password of your user account, or:Īnd enter the root password and then the command. In some distros, the maintenance user account is already setup in that special file. What “sudo” and “su” do is grant you rights to run a particular program that you specify, savvy?. Reason, if you are root, all the doors in your system are open to everything, which leaves your system vulnerable. Now you can still gain root privileges, you would have to login as root to gain it. If your name is not on the list, no rights. Linux then checks a special file and sees if you are allowed to be granted root privileges, similar to a VIP CLUB. This command indicates that you want to be granted a super user and gain super user/root privileges. Have you ever wondered why you have to type “sudo” or “su” in a Linux terminal to do any system-wide changes? Well, sudo means, “super user do”, “su” means, “super user”.