Administrative access on linux systems



Tux magazine has a comparison of su and sudo as ways to administer a linux system. Many people are under the mistaken impression that you just login as root (gui or otherwise) and that’s the only way to do it. In fact, I’ve used su primarily. Although in some circumstance sudo has it’s benefits.



su allows you to become another user. So, simply typing su with no username afterwards will assume you want to become the administrator (root) (or superuser). It prompts you for the root password and then you have full root access.

(Type su – (with a space and then a hyphen) to change your environment to that of the user you’re becoming.)

sudo on the other hand is a more controlled way of accessing this. Let’s say you have a dozen uses on a system and two are allowed to administer certain specific areas. With sudo you (the real administrator) can add their names to the sudo list and configure specific permissions (what are THEY allowed to do. For instance, it’s possible to allow them to restart services, but not install softare, or vice versa.

If you’re on the sudo list, you type sudo at the prompt and are asked for YOUR password. (Not the root password). After the authentication (used to protect against just anyone walking over to your open session and taking root access), you’re able to act as root (to the extent that you’re allowed to in /etc/sudoers). It’s possible to give someone unrestricted sudo access as well. Typically the sudo command gives you access for about 10 minutes without needing to enter your password each and every time.

There are ways within the GUI of running commands as another user and prompting for su (or sudo) password, so this is not a Command line only trick. For instance under Mandrake, when trying to run the control panel you’re prompted for the administrator (root) password. This is essentially a su to root for the purposes of administering the machine.

Related Posts

Blog Traffic Exchange Related Posts
  • Running windows applications directly in linux Linux.com has a good explanation of using binfmt_misc to directly launch a windows (or java or python) application just by typing in the application name. *(without all the contortions of ... /home/user/bin/wine /home/user/.wine/c_drive/Program\ Files/Really\ Neat\ Software/Program.exe ) You do have to make the app executable under linux (chmod 755) and......
  • Ubuntu-server 6.06 LTS plus vmware server and other vmware server notes What follows are some notes taken on vmware server. Most are related to an install on ubuntu-server (NO GUI INSTALLED).... the main point of this is to have the host system take as FEW resources away from the guests as possible. This requires a few x libraries - but not......
  • Migrating Contacts from Evolution to Kontact I've toyed around with the idea of migrating everything over to Kontact for my mail. I've used Evolution since moving over to linux, but there are some things about Kontact that just seem slicker to me. While I was doing the install, I had the laptop setup to receive messages......
Blog Traffic Exchange Related Websites
  • Financial Lessons: Entrepreneurship Welcome to the final lesson this week, this time concerning the always important topic of entrepreneurship.  I doubt something like entrepreneurship could really be properly taught in a classroom; the essence of being an entrepreneur is having the drive and willingness to go out, experiment, possibly fail, and if so,......
  • What You Need From a WordPress Hosting Company Wordpress has taken over the world of websites and blogs, creating a simple and easy way for individuals get information out into the world of the Internet. The system gives users an incredibly easy platform to create the blogs, information, and news sites that they need to be successful. The......
  • Ten Steps To Become a Linux/Unix Geek Until recently, Linux/Unix was considered OS of the geeks. However, with GUI and more desktop Linux distributions, things have simplified on both Linux and Unix. Still you can geek out with Unix/Linux using its terminal. Just follow the steps below to master the terminal. 1. Never used Linux! Get Ubuntu......
www.pdf24.org    Send article as PDF   

Similar Posts


See what happened this day in history from either BBC Wikipedia
Search:
Keywords:
Amazon Logo

Comments are closed.


Switch to our mobile site