How to create second super user like root?
Hi,
Can anyone tell me the way for creating another superuser in linux??? Thanks in advance sultan |
If your using a red hat based system check if you've got a sudeors file.
Than you can give him all rights you want Don't forget to use visudo to edit this file. |
Quote:
And I thing this pakage is not included there?? then what would be the solution.. I mean .. Is this be done manually?? sultan |
Here are various commands that add users, groups, or add users to groups:
Code:
adduser, Code:
groups <username> (to see what groups a user belongs to) BUT: Danger, Danger---There should only be one owner/Sysadmin on a system. Otherwise, who is the one person that always knows the configuration? |
actually, I know how create user.. But I want to made second sysadmin... after creating user, how can I give all administrative power??
sultan |
Quote:
|
Quote:
but still no updates...actually i want another sysadmin where he will have his own password and username like root and and his password... it would be better if show show some exmaples thanks sultan |
You can't make a second root account as such, but you can make another account which is sort of an alias of the root account. FreeBSD does this by default to provide a root user with a c shell and a root user with a bash shell.
Look up how /etc/passwd is set out and add a new user in there with a UID of 0. However, for most purposes it is much better to use sudo because of additional benefits such as restricting users to just some administrative tasks and logging. |
Quote:
|
Off topic, so I'll keep it brief. The toor account is not "more of a rescue kind of account". It is intended to be used when the system admin wishes to use an alternate shell - http://www.freebsd.org/doc/en_US.ISO...l#TOOR-ACCOUNT
|
Quote:
|
Quote:
Apart from it being a stupid thing to do security-wise, would it be possible to give the "other" root-user a different home-directory? Of course the two root users could look and make havoc in eachother folders (as both would be owned by root)... -Koppe |
Quote:
-Koppe |
Quote:
Quote:
And reddazz, not a problem! As a final note, whilst we are discussing these different methods please use the most sensible option there, in the majority of cases that means using sudo. In the case were you have two system admins for a system, if both admins are to be trusted with a root account then there should be no problem using the same root account and both knowing the password. |
All times are GMT -5. The time now is 06:58 AM. |