LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-12-2004, 10:00 PM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
su - question


Hi all folks,

How to add USER 'AAA' to the group wheel allowing 'AAA' to 'su -'

TIA

B.R.
satimis
 
Old 02-12-2004, 11:02 PM   #2
Lindy
Member
 
Registered: Nov 2001
Location: Manistique, MI
Distribution: SUSE 12.1
Posts: 136

Rep: Reputation: 15
>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.

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.
 
Old 02-14-2004, 05:09 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question, Apples Contribution to Open Source + MacOs file structure question Higgy3k Other *NIX 5 07-25-2005 04:23 AM
Not your regular GRUB question - just a short question for a fried MBR!! ziphem Linux - General 3 01-31-2005 01:51 PM
2 part question: Speeding up MDK9.1/GNOME question wardialer Linux - Newbie 6 10-14-2004 03:16 PM
login prompt question & kde scheme question JustinCoyan Slackware 2 06-09-2004 02:02 PM
RE: Suse 8.0 hardware question {newbie question, pls help} Radiouk Linux - Distributions 2 06-04-2002 12:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration