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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
06-30-2009, 07:52 AM
|
#1
|
LQ Newbie
Registered: Jun 2009
Posts: 1
Rep:
|
how to add user to root group
hi i know dats odd but i m new to linux nd can any one of u help me how to do dis...... i mean to add my user account to root group
|
|
|
06-30-2009, 07:59 AM
|
#2
|
Member
Registered: Jun 2009
Location: INDIA
Distribution: RHEL-5
Posts: 174
Rep:
|
what you exactly want to do here???
1)Are you want a normal user to do roots work?
2)Are you want to add user to root group?
3)Are you want user to become root?
Last edited by vap16oct1984; 07-03-2009 at 04:08 AM.
|
|
|
06-30-2009, 08:34 AM
|
#3
|
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465
Rep:
|
Quote:
Originally Posted by vicky.007
hi i know dats odd but i m new to linux nd can any one of u help me how to do dis...... i mean to add my user account to root group
|
Would it be possible to ask your questions in English?
Thanks,
jdk
|
|
|
06-30-2009, 08:42 AM
|
#4
|
Member
Registered: Dec 2004
Location: MA
Distribution: Various
Posts: 149
Rep:
|
I think you might want "sudo" - see my http://aplawrence.com/Basics/sudo.html
If not, maybe you mean you want to be in the "wheel" group?
|
|
|
06-30-2009, 09:02 AM
|
#5
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,672
|
It's probably not a good idea to have more a "root" user than root him- or herself. That's part of Linux security--since you do most of your day to day computing with limited privileges, it's harder for malware or an intruder to get lose inside your machine.
Some distros just won't let you have more than one user with root privileges. Some don't even give you the ability to login directly as "root." (That's about my only beef with Ubuntu--if I have root stuff to do, I like to login as root, get it done, and get out.)
Aside: It is easier for others to understand what you want and help you when you try to write in standard English.
|
|
|
06-30-2009, 09:21 AM
|
#6
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,961
|
Hi,
Quote:
Originally Posted by vap16oct1984
what u exactly want to do here???
1)Are u want a normal user to do roots work?
2)Are u want to add user to root group?
3)Are u want user to become root?
|
We speak English here on LQ. Not AOL speak.
|
|
|
06-30-2009, 09:28 AM
|
#7
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,961
|
Hi,
Quote:
Originally Posted by vicky.007
hi i know dats odd but i m new to linux nd can any one of u help me how to do dis...... i mean to add my user account to root group
|
Welcome to LQ!
The way you composed your post does make things difficult to understand your request.
Quote:
excerpt from 'man su';
NAME
su - change user ID or become super-user
SYNOPSIS
su [-] [username [args]]
DESCRIPTION
su is used to become another user during a login session. Invoked with-
out a username, su defaults to becoming the super user. The optional
argument - may be used to provide an environment similiar to what the
user would expect had the user logged in directly.
|
'root' has control of your system. One 'superuser' per machine will alleviate the possibility of future problems that could bite you. If 'su' on a system then that user must have the 'root' password.
|
|
|
06-30-2009, 10:02 AM
|
#8
|
Member
Registered: Jan 2009
Location: Essex (UK)
Distribution: Home: Debian/Ubuntu, Work: Ubuntu
Posts: 206
Rep:
|
imagine if people were also to write code if they'd write like that...
hm, might actually explain so many bugs all over the place... :|
|
|
|
06-30-2009, 10:18 AM
|
#9
|
Member
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896
Rep:
|
OK, now to answer the original question, you add your user to the root group by the following command
usermod -G root -a <username>
Note, on some systems the -a option is not available, so you'll have to list all groups your user is already a member of, after -G
|
|
|
06-30-2009, 10:23 AM
|
#10
|
LQ Newbie
Registered: Aug 2006
Posts: 1
Rep:
|
you can add your user under the wheel group in group file to get root privileges for the user.
|
|
|
07-01-2009, 05:02 AM
|
#11
|
Member
Registered: Jun 2009
Location: INDIA
Distribution: RHEL-5
Posts: 174
Rep:
|
Where is the real requester(vickey.007) gone, without explaining what he really wants.
Gery:- Well gery it's a english not AOL lang.
|
|
|
07-01-2009, 05:34 AM
|
#12
|
Member
Registered: Oct 2008
Location: Pakistan, Islamabad
Distribution: CentOS, Fedora, Solaris
Posts: 154
Rep:
|
create normal user
Through root user
su -
adduser <username>
then uncommint the file through command
visudo
this is the line remove #
## Same thing without a password
#%wheel ALL=(ALL) NOPASSWD: ALL
then
using command give the username as admin rights.
usermod -G wheel <username>
now you apply root command through above normal username
but add sudo in start of each
EG:
sudo any_root_command
|
|
|
07-01-2009, 08:48 AM
|
#13
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,961
|
Hi,
Quote:
Originally Posted by vap16oct1984
Where is the real requester(vickey.007) gone, without explaining what he really wants.
Gery:- Well gery it's a english not AOL lang.
|
It's Gary (aka onebuck) by the way.
'u' for you is not English. Nor any of the other type AOL speak.
To use that type of language is just plain laziness and very difficult to read for understanding especially when scatter throughout any written language.
|
|
|
07-02-2009, 06:58 AM
|
#14
|
Member
Registered: Jun 2009
Location: INDIA
Distribution: RHEL-5
Posts: 174
Rep:
|
Well Gery,
You can't call it laziness. Its a intelligence. Its not hard to understand if you are
using it intelligently. It saves your time. It help to resolve the problem as quick as possible.
especially its useful when you are loaded with a bunch of work.
Hope you understand what i am trying to explain.
--------------------------------------------------------------------------
|
|
|
07-02-2009, 08:49 AM
|
#15
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,961
|
Hi,
Quote:
Originally Posted by vap16oct1984
Well Gery,
You can't call it laziness. Its a intelligence. Its not hard to understand if you are
using it intelligently. It saves your time. It help to resolve the problem as quick as possible.
especially its useful when you are loaded with a bunch of work.
Hope you understand what i am trying to explain.
--------------------------------------------------------------------------
|
Yes, it's laziness! It has nothing to with intelligence but an abbreviated form of teen speak that has mutated across the media. Universal speech and the written language should be formed with thought to the presentation. It may save your time but it still does not present a fluid presentation or even help someone to clearly understand your meaning. Back to AOL if you need to communicate in this manner.
If your loaded with work then why are you attempting to assist someone with poorly presented material?
|
|
|
All times are GMT -5. The time now is 04:28 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|