Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.


  Search this Thread
Old 07-15-2009, 12:49 AM   #1
LQ Newbie
Registered: Jul 2009
Location: Pakistan
Posts: 7

Rep: Reputation: 0
Question Alternate root user


I want to create another user with the same rights as that of root but when that alternate user tries to switch to root, it is prompted to input the root password.

I can create a user with rights equal to that of root but I dont know anything about how it would be prompted for a root password when it tries to switch to root.

Old 07-15-2009, 01:17 AM   #2
Senior Member
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,013

Rep: Reputation: 83
Can I just ask why?

Why do you need a second root user?

If you need to run administrative tasks from another user account, look into using sudo.
Old 07-15-2009, 02:11 AM   #3
LQ Newbie
Registered: Jul 2009
Location: Pakistan
Posts: 7

Original Poster
Rep: Reputation: 0
Well, I want to have several users with equivalent rights as that of root but they have to be identified by their own unique usernames so that any change made by them can be tracked.

Old 07-15-2009, 02:21 AM   #4
Registered: Feb 2004
Location: Slovenia
Distribution: archlinux
Posts: 271

Rep: Reputation: 31
Really, use sudo. It was made for exactly this purpose.


Old 07-15-2009, 10:45 AM   #5
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,634

Rep: Reputation: 390Reputation: 390Reputation: 390Reputation: 390
Or, for a pure Solaris solution, remove root as a user account and make it a role instead.

This is the trend and the default configuration with OpenSolaris.

You can also grant limited privileges instead of the whole root stuff to these accounts.


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
Adding root privaliges to user accounts or auto login as root Val-Ent Linux - General 15 03-02-2010 04:27 PM
How can I have a script owned as root and run as root by a user: setuid? stickey bit? abefroman Linux - Newbie 9 04-19-2008 05:15 PM
why lftp command run failed when user isn't root, but ok when logining as root steven_yu Linux - Software 0 06-06-2007 08:36 PM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 04:14 PM
run command as alternate user joeca Linux - General 1 08-06-2003 04:31 PM

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