[Linux-disciples] Sudoer

Stephen R Laniel steve at laniels.org
Wed May 31 14:00:02 EDT 2006


On Wed, May 31, 2006 at 01:54:54PM -0400, Jason Smith wrote:
> So, is it generally a bad idea to modify these text files directly??  
> How do you know which you can and which you can't??

It's not an awful idea, but it's certainly *easier*, at
least, to use various tools. To add a user user, for
instance, you don't modify /etc/passwd and /etc/groups
directly, though I suppose you could. You just use
'adduser'. Likewise for adding groups ('addgroup'), editing
/etc/sudoers ('visudo'), etc. Likewise, 'getent passwd' will
list the contents of the password file, taking into account
LDAP, NIS, and so on and so forth; 'getent groups' will do
the same for all groups.

Moral: if you know which tools will let you modify system
files, use them instead; if you don't, try editing files
directly.

-- 
Stephen R. Laniel
steve at laniels.org
Cell: +(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20060531/ae7e56a8/attachment.pgp


More information about the Linux-disciples mailing list