LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-07-2005, 08:28 PM   #1
matneyc
Member
 
Registered: Aug 2004
Posts: 31

Rep: Reputation: 15
how do i add myself to the wheel group


I need to do FTP uploads and change user accts on the fly and dont want to be in there as root. I have an acct that I created the first time I ran my RH9 install. I just cannot do anything with it.

I can put
export PATH=/sbin:/usr/sbin:$PATH
to get my useradd stuff but, who wants to do that all the time. isnt there a way to be nearly as gawdly as the almighty root?
 
Old 01-07-2005, 08:35 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Check out sudo.
 
Old 01-09-2005, 08:18 PM   #3
matneyc
Member
 
Registered: Aug 2004
Posts: 31

Original Poster
Rep: Reputation: 15
I do that but, it tells me that every command that i type is invalid.
 
Old 01-09-2005, 10:33 PM   #4
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
HAve you setup the /etc./sudoers file?
 
Old 01-09-2005, 11:00 PM   #5
kaega2
Member
 
Registered: Sep 2003
Location: Ontario, Canada
Distribution: Gentoo 2004.3
Posts: 195

Rep: Reputation: 30
To add yourself to the wheel group you should be able to, as root, type in

gpasswd -a <user-name> wheel

That will add the group wheel to your user. You can also add yourself to the root group the same way.

If you wish to use sudo, you must first make sure that sudo is installed. Check documentation for your distribution on how to do that. Then add this line to the /etc/sudoers file

<user-name> ALL = (ALL) ALL

It's been a long time since I've used sudo so that might be incorrect.

Also, depnding on your distribution, you may be able to use this command.

su -c <command you want to type>

Either one of those last two solutions will require a password. Sudo usually requires you to type in the uers password that you're signed in as, whereas the su command will require the root password.

Keep in mind that sudo is not recommended because it can be considered a security risk.
 
  


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
adding user to wheel group tied2 *BSD 10 09-28-2007 04:22 AM
disable su-wheel group Smokey Linux - Security 3 01-29-2005 04:02 AM
OpenBSD 3.6 Wheel group Hcman *BSD 2 11-19-2004 01:47 AM
limiting su root with wheel group? kj6loh Linux - General 17 09-02-2004 08:45 AM
Wheel group only half working ??? Mike25 Linux - Newbie 0 02-21-2003 11:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:42 PM.

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