[Linux-disciples] Sudoer
Stephen R Laniel
steve at laniels.org
Wed May 31 13:45:20 EDT 2006
On Wed, May 31, 2006 at 01:28:45PM -0400, Jason Smith wrote:
> In my sudoer file at /etc/sudoer it lists the group admins. Rather
> than add my additional user, I went to my /et/group file and added my
> new user to the admins group. This procedure doesn't seem to solve my
> problem. What am I missing that is terribly obvious??
Well, adding directly to /etc/groups is probably not the
best way to do it. I mean, I think that will work, but there
are always little things one needs to do that trip me up.
Depending on your Linux variant, you need to do either
(Debian)
sudo adduser [user] [group]
or
(basically any Linux variant)
sudo usermod -G `groups [user] |sed -e 's/^[^:]\+: //g' -e 's/ /,/g'`,[group] [user]
which will add user [user] to group [group].
Then log out and log in, as Adam mentioned.
--
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/cb0b6803/attachment.pgp
More information about the Linux-disciples
mailing list