Hi Lindy,
Thanks for your advice.
Quote:
>How to add USER 'AAA' to the group wheel allowing 'AAA' to 'su -'
By adding AAA to root's group. From man adduser: The options which apply to the useradd command are:
-G group,[...]
A list of supplementary groups which the user is also a member
of. Each group is separated from the next by a comma, with no
intervening whitespace. The groups are subject to the same
restrictions as the group given with the -g option. The default
is for the user to belong only to the initial group.
|
# useradd -G root
# adduser -G root
same printout
useradd/adduser
ption requires an argument
Please advise what shall be the correct syntax
Quote:
You can also configure sudo to allow AAA root premissions. From man sudo:
sudo allows a permitted user to execute a command as the superuser or
another user, as specified in the sudoers file.
|
# visudo
.....
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# User privilege specification
#root ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
#%wheel ALL=(ALL) ALL
# Same thing without a password
#%wheel ALL=(ALL) NOPASSWD: ALL
# Samples
#%users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
Have tried to uncomment follows;
%wheel ALL=(ALL) ALL
%wheel ALL=(ALL) NOPASSWD: ALL
%users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
without result.
$ su
Password:
su: Permission denied
Sorry.
(Remark: I have not rebooted the Gentoo box, only logout and relogin as USER)
Kindly advise which line/lines shall I uncomment and what shall I add
TIA
B.R.
satimis