May
5
Multi root user’s simple step’s
Hey there everybody, just one post more about tips for GNU/Linux OS.
The post today, We going to show you how can set multi root users manually and simple steps.
I’ll to explain the things step by step using some quote line’s; The first thing that you need get its the root mode, one time that you’re in there you need agree some user on this way:
# adduser gin
Añadiendo el usuario `test’ …
Añadiendo el nuevo grupo `test’ (1003) …
Añadiendo el nuevo usuario `test’ (1002) con grupo `test’ …
Creando el directorio personal `/home/test’ …
Copiando los ficheros desde `/etc/skel’ …
Introduzca la nueva contraseña de UNIX:
Vuelva a escribir la nueva contraseña de UNIX:
passwd: contraseña actualizada correctamente
Changing the user information for test
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] yadduser: command to agree user.
gin: the name user that will you get new root.
`test’ (1003): Group id number.
`test’ (1002): User id number.
`/home/test’: Directory user.
`/etc/skel’: Copy command files for user.
So the next we need to do is:
#nano /etc/passwd
nano: Editor command line.
/etc/passwd: Directory to fix the line user, In this file is allowed all the OS user’s.
In the end of line, will appear our new user that we agree with this particular data:
test:x:1002:1003:,,,:/home/test/:/bin/bash
The only one thing that we need to fix is the gid and uid, and should be stay something like this:
test:x:0:0:,,,:/home/test/:/bin/bash
Save!, everything and ready! , We have a new root user. This could be with each user you want for multi root users, as well you doit deceiving the admin server with existing users www-data and other one users but don’t do it this trick’s if don’t have experience about this user file.
Greets and Regards.