Extend checks for changing U/GID in home directory
Add files with user or group owner different from the user.
This commit is contained in:
parent
a8bf8af5aa
commit
3fb292f3c7
@ -1,3 +1,5 @@
|
||||
-rw-r--r-- foo:foo `/home/foo2/toto'
|
||||
-rw-r--r-- foo:root `/home/foo2/groot'
|
||||
-rw-r--r-- root:foo `/home/foo2/uroot'
|
||||
drwxr-xr-x foo:foo `/home/foo2/.'
|
||||
drwxr-xr-x root:root `/home/foo2/..'
|
||||
|
@ -18,7 +18,11 @@ change_config
|
||||
|
||||
mkdir /home/foo
|
||||
echo toto > /home/foo/toto
|
||||
echo root > /home/foo/uroot
|
||||
echo root > /home/foo/groot
|
||||
chown -R foo:foo /home/foo
|
||||
chown root /home/foo/uroot
|
||||
chgrp root /home/foo/groot
|
||||
|
||||
echo -n "Change the user's home directory (usermod -m -d /home/foo2 -u 1001 foo)..."
|
||||
usermod -m -d /home/foo2 -u 1001 foo
|
||||
|
Loading…
Reference in New Issue
Block a user