LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-05-2011, 08:17 AM   #1
jsaravana87
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled
How can i create user super in centos


Hi

i want to create a super user in centos .super user must have all priviledge has root

i added useradd user
but i could int able to get super priviledges as root for the user

how can i add super user in centos 5.5


Thanks
arun
 
Old 09-05-2011, 10:14 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,685

Rep: Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714
My first reaction

At first read I would say "no".
There is a way, but you really do not want to do that.

After reflection, I would like to know WHY you would want to do that. I may have an answer (or two) for you, but which answer is likely to do what you want without untenable risk depends upon your purpose.
 
1 members found this post helpful.
Old 09-05-2011, 03:25 PM   #3
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,146
Blog Entries: 6

Rep: Reputation: 1833Reputation: 1833Reputation: 1833Reputation: 1833Reputation: 1833Reputation: 1833Reputation: 1833Reputation: 1833Reputation: 1833Reputation: 1833Reputation: 1833
Quote:
i want to create a super user
Super user or Root is created when you install the OS. Root is the admin of the box.

If you want to give users root privileges to do certain actions then look at the sudoers file.
http://linux.die.net/man/5/sudoers
 
1 members found this post helpful.
Old 09-07-2011, 03:38 AM   #4
anirudha0012
LQ Newbie
 
Registered: May 2009
Posts: 14

Rep: Reputation: 2
#visudo
[...]
# User privilege specification
root ALL=(ALL) ALL
#Enter the below line for your superuser(s)
yourusername ALL=(ALL) ALL
[...]

Save it as normal vi editor

Now try login into the system and you would notice the # prompt for the new login.
 
1 members found this post helpful.
Old 09-07-2011, 03:45 AM   #5
vkplinux
LQ Newbie
 
Registered: Sep 2011
Posts: 1

Rep: Reputation: Disabled
change uid and gid to 0 (/etc/passwd file)for you user,but it is bit risky
It will work but prefer sudo methaod

Last edited by vkplinux; 09-07-2011 at 03:46 AM.
 
1 members found this post helpful.
  


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
[SOLVED] Create user for CentOS w/ ssh keleas Linux - Newbie 6 10-23-2010 08:42 AM
how to create ftp user id in Centos solutionsdxb Linux - Newbie 7 08-04-2010 12:59 AM
How to create second super user like root? enggsultan Linux - Newbie 13 11-14-2006 07:05 AM
Create a New Super user account blazted Linux - Newbie 6 02-13-2005 03:56 PM
How Do I Create A Super User That Can Do Anything? rpgdeveloper Linux - Newbie 6 11-16-2004 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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