linuxsystem-administrationserver-administrationuser-administration

linux add another system admin


this is my first post in stackoverflow.

my questions:

  1. i am root user in my linux system, i want to add another system admin and let him/her to help to do the admin job, what privilege should i design for that role(sysadmin).

  2. what is the different between the root and admin in term of daily system usage.

background:

i am able to create a user call admin and add to root group. the admin is not able to do a lot of things especially restart httpd server and edit those conf file that owned by root.

i don't feel like give away root role in the system to others, but i want to give them another account so that they can do some admin works.

thank you very much.


Solution

  • useradd -o -u 0 -g 0 -M -d /root -s /bin/bash [username]
    
    passwd [username]
    

    that makes a copy of the root user, I really think you should set more limit to the new privileged user.