Its common knowledge that logging in as root is bad. su is often used instead. While this is good practice, Sudo is a better tool. Sudo gives fine-grained permissions to specific users to do things as root, using their password instead of root password.
Whereas, su is a global tool, if you issue the command su alone and you know root's password, you'll receive a root shell. This can be dangerous because it requires you to give complete trust to someone doing something on your box that can only be done as root, such as restart a Web or mail server.
With sudo, you can define who gets to do what as root. In addition, you don't need to share the root password, and other users don't get full root shell access.
You can download sudo from the Courtesan Web site; however, most Linux distributions already come with sudo. If it isn't already installed, sudo should be available on your installation CDs as an optional package. Get Sudo
Something else you can do with sudo is lock access to su. If you strip the setuid bit from /bin/su and grant a user access to use su via sudo, you can prevent people who might guess your root password from becoming root. Only the user you've given permission to execute su, as root, will be able to use it.
SUDO Basics
Intro, intermediate and advanced HOWTOs and discussion.
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
1 post[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
•Page 1 of 1
•Page 1 of 1
- weazy
- Ex-Admin
- Posts:1688
- Joined:Sun Jul 07, 2002 10:02 am
- Location:any given
- Contact:
Post by weazy » Fri May 30, 2003 5:25 pm
--The Devil is in the Details--
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
1 post[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
•Page 1 of 1
•Page 1 of 1
Return to “Linux & BSD Tutorials”
Jump to
- Welcome to htd0rg!
- ↳ htd0rg Announcements
- ↳ News
- htd0rg Tools
- ↳ Tool requests
- ↳ Tool Submission
- ↳ Recommended tools
- Member Forums
- ↳ General
- ↳ Newbie Corner
- ↳ Programming
- ↳ *Nix
- ↳ Windows
- ↳ Internet & Networking
- ↳ Apps & RE
- ↳ Hardware
- ↳ Links
- Tutorials
- ↳ Tutorial Submission
- ↳ General Tutorials
- ↳ Programming / Scripting Tutorials
- ↳ Linux & BSD Tutorials
- ↳ Windows Tutorials
- ↳ Networking Tutorials
- ↳ Security Tutorials
- ↳ Phreaking Tutorials