LinuxQuestions.org
Visit Jeremy's Blog.
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 03-17-2004, 07:06 AM   #1
adamrad
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Rep: Reputation: 0
Question How to add user with root privileges


Hi,
I need to add a user with same power as root and I have root access.

Code:
adduser -g root -d / -s /bin/sh -p pass1 hord
Why can't i login through SSH as hord

Also what is the command to create a mysql user with all privileges(similar to mysql root)


Thanks for the replies..

Last edited by adamrad; 03-17-2004 at 07:10 AM.
 
Old 03-17-2004, 07:24 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
adding users to the group "wheel" will make them close to root.

if you really want another root user, edit the passwd file to make a pre-existing user's number 0 and give that user a different home directory.
 
Old 03-17-2004, 07:28 AM   #3
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Giving a user full root access is a seriously bad idea. Use sudo to set up what the user can do instead, and using groups - custom or standard ones - is also a good way of providing a user extended privileges on the system.


Håkan
 
Old 03-17-2004, 07:52 AM   #4
adamrad
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Original Poster
Rep: Reputation: 0
I have added all groups that root form part of. I still can't login throuh SSH

adduser -g root -G wheel,sys,bin,daemon,adm,disk -d / -s /bin/sh -p 3451 hord

hw-tph you are a guru and i a newbie ..so plz find a simple solution for me

Last edited by adamrad; 03-17-2004 at 08:21 AM.
 
Old 03-18-2004, 12:33 PM   #5
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
useradd elvis -m -G users,wheel,audio -s /bin/bash usually does it. Then type passwd elvis to set a password for the user "elvis".


Håkan
 
  


Reply


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
User priviledges alrymala Linux - Security 5 10-23-2005 02:26 PM
Help! Cannot Add a User to User Manager or Change Root Password lennysokol Linux - General 2 06-25-2005 10:59 AM
How to add a user in linux to be strong as root juanb Linux - Security 4 09-22-2004 04:12 AM
add root user to the existing group ashley75 Linux - General 4 09-25-2003 10:40 PM
I need to take away my root priviledges. guitargeek General 5 02-13-2003 04:52 PM


All times are GMT -5. The time now is 05:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration