Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-04-2008, 01:24 PM   #1
LQ Newbie
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
Question Need to create an admin user on Red Hat Enterprise Linux

I am pretty new to RHEL and it has been a while since having to perform any sort of administration. Against my better judgement, I have been using the root account for most functions. I would like to create an admin account for these administrative functions. I understand the concept of RHEL's file permission (rwx) system. My background though is more in Windows where we would create a user account and add it to a group that has admin-level rights. It doesn't seem to work that way in Linux. It looks like you have to grant access via file permissions to what you would like the account to do. I would have to imagine there is an easier way of accomplishing this? If anyone could give me some insight into all this and how to create a user with admin-level rights I would greatly appreciate it.

Old 09-04-2008, 01:31 PM   #2
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 307

Rep: Reputation: 38
Check your /etc/group file. You will see a few groups you can add your admin user to such as the adm group.

To be honest, it's a bad move. The best method is to use sudo and just grant the commands that your admin user needs to have access to in there.

I have my standard account be able to do things that need root account access on a sudo without the requirement of a password. Such things as chmod, chown and chgrp. I simply do:

sudo chmod .....

Log in to a term as root, then do visudo, you should get enough info in there to sort yourself out, if not give us another shout.
1 members found this post helpful.
Old 09-04-2008, 01:33 PM   #3
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 43
What I do and there may be better ways..

create the user

useradd -d /home/user user

then as root run:

in the file you will see
root ALL=(ALL) ALL

add a line below that line that has
user ALL=(ALL) ALL

* replace "user" with the username you want.

then when you want to do some admin level work you would just use sudo before the command.

sudo /sbin/shutdown -r now
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Red Hat to launch Red Hat Enterprise Linux 5 before March LXer Syndicated Linux News 0 12-30-2006 08:03 AM
Project made in Red Hat Enterprise 4 need to be able to run on Red Hat Enterprise 3 Elin Linux - Software 1 07-13-2006 12:22 PM
Set autologin with default user on Red Hat Enterprise 3 dmanchepalli Linux - General 6 02-02-2005 12:08 PM
Set autologin with default user on Red Hat Enterprise 3 dmanchepalli Red Hat 1 02-01-2005 04:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:48 AM.

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