[rai@DingDong rai]$ su Password: [root@DingDong rai]# |
[root@DingDong rai]# groupadd lomda [root@DingDong rai]# |
[root@DingDong rai]# useradd bidule -g lomda [root@DingDong rai]# |
[root@DingDong rai]# cat /etc/passwd | grep bidule bidule:x:503:502::/home/bidule:/bin/bash [root@DingDong rai]# |
[root@DingDong rai]# cat /etc/shadow | grep bidule bidule:!!:12058:0:99999:7::: [root@DingDong rai]# |
[root@DingDong rai]# cat /etc/group | grep 502 lomda:x:502: [root@DingDong rai]# |
[root@DingDong rai]# ls /home/bidule/ -l total 1 drwx------ 2 bidule lomda 48 jan 6 17:19 tmp/ [root@DingDong rai]# |
[root@DingDong rai]# vi /etc/group [root@DingDong rai]# |
[root@DingDong rai]# cat /etc/group | grep 502 lamda:x:502: [root@DingDong rai]# |
[root@DingDong rai]# ls /home/bidule/ -l total 1 drwx------ 2 bidule lamda 48 jan 6 17:19 tmp/ [root@DingDong rai]# |
[root@DingDong rai]# useradd truc -g lamda [root@DingDong rai]# [root@DingDong rai]# cat /etc/passwd | grep truc truc:x:504:502::/home/truc:/bin/bash [root@DingDong rai]# |
[root@DingDong rai]# vi /etc/passwd [root@DingDong rai]# |
[root@DingDong rai]# vi /etc/shadow [root@DingDong rai]# |
Après vérification, je n'ai rien changé dans /etc/shadow.
Voyons ce qu'il est advenu du propriétaire dans /home/truc
[root@DingDong rai]# ls /home/truc/ -l total 1 drwx------ 2 504 lamda 48 jan 7 16:29 tmp/ [root@DingDong rai]# |
[steph@DeepGlue steph]$ cat /etc/passwd | grep toto toto:x:503:503::/home/toto:/bin/false [steph@DeepGlue steph]$ cat /etc/group | grep 503 eleves:x:503: [steph@DeepGlue steph]$ |
[steph@DeepGlue steph]$ cat /etc/group | grep toto partimag:x:512:toto [steph@DeepGlue steph]$ |