Ver configuración de root
1 2 | <strong># id root</strong> uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) |
Listar directorios usuario,contraseña y grupo
1 2 | <strong># cat /etc/passwd</strong> root:x:0:0:root:/root:/bin/bash |
1 2 | <strong># cat /etc/shadow</strong> root:$1$B2BEWv4X$Gb.QPb6I3RwCkEkz13ow21:13080:0:99999:7::: |
1 2 3 4 5 6 7 8 | <strong># cat /etc/group</strong> root:x:0:root bin:x:1:root,bin,daemon daemon:x:2:root,bin,daemon sys:x:3:root,bin,adm adm:x:4:root,adm,daemon tdisk:x:6:root wheel:x:10:root |
Añadimos usuario “root2″ con privilegios de root2
1 | <strong># adduser -u 0 -o -g 0 -G 0,1,2,3,4,6,10 -M root2</strong> |
1 | <strong># passwd root2</strong> |