LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-30-2009, 06:52 AM   #1
vicky.007
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Smile 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
 
Old 06-30-2009, 06:59 AM   #2
vap16oct1984
Member
 
Registered: Jun 2009
Location: INDIA
Distribution: RHEL-5
Posts: 174
Blog Entries: 3

Rep: Reputation: 38
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 03:08 AM.
 
Old 06-30-2009, 07:34 AM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by vicky.007 View Post
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
 
Old 06-30-2009, 07:42 AM   #4
pcunix
Member
 
Registered: Dec 2004
Location: MA
Distribution: Various
Posts: 149

Rep: Reputation: 23
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?
 
Old 06-30-2009, 08:02 AM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
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.
 
Old 06-30-2009, 08:21 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,
Quote:
Originally Posted by vap16oct1984 View Post
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.
 
Old 06-30-2009, 08:28 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,
Quote:
Originally Posted by vicky.007 View Post
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.
 
Old 06-30-2009, 09:02 AM   #8
rsciw
Member
 
Registered: Jan 2009
Location: Essex (UK)
Distribution: Home: Debian/Ubuntu, Work: Ubuntu
Posts: 206

Rep: Reputation: 44
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... :|
 
Old 06-30-2009, 09:18 AM   #9
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
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
 
Old 06-30-2009, 09:23 AM   #10
premkumar24
LQ Newbie
 
Registered: Aug 2006
Posts: 1

Rep: Reputation: 0
you can add your user under the wheel group in group file to get root privileges for the user.
 
Old 07-01-2009, 04:02 AM   #11
vap16oct1984
Member
 
Registered: Jun 2009
Location: INDIA
Distribution: RHEL-5
Posts: 174
Blog Entries: 3

Rep: Reputation: 38
Where is the real requester(vickey.007) gone, without explaining what he really wants.

Gery:- Well gery it's a english not AOL lang.
 
Old 07-01-2009, 04:34 AM   #12
sohail0399
Member
 
Registered: Oct 2008
Location: Pakistan, Islamabad
Distribution: CentOS, Fedora, Solaris
Posts: 154

Rep: Reputation: 23
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
 
Old 07-01-2009, 07:48 AM   #13
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,
Quote:
Originally Posted by vap16oct1984 View Post
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.
 
Old 07-02-2009, 05:58 AM   #14
vap16oct1984
Member
 
Registered: Jun 2009
Location: INDIA
Distribution: RHEL-5
Posts: 174
Blog Entries: 3

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

--------------------------------------------------------------------------
 
Old 07-02-2009, 07:49 AM   #15
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,
Quote:
Originally Posted by vap16oct1984 View Post
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?
 
  


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
How to list user in Linux box, add an user to a group! steady_lfcfan Linux - Newbie 12 01-27-2013 01:14 PM
trying to add a user to the root group dave247 Debian 12 10-09-2008 01:49 AM
add user to root group - risky? BroX Linux - Security 7 01-07-2005 11:10 AM
add root user to the existing group ashley75 Linux - General 4 09-25-2003 09:40 PM
add my user account to the root group konabumm Linux - Newbie 2 08-01-2003 11:44 AM

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

All times are GMT -5. The time now is 07:03 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