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:
Nicolas François 2014-09-20 23:59:46 +02:00
parent a8bf8af5aa
commit 3fb292f3c7
2 changed files with 6 additions and 0 deletions

View File

@ -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/..'

View File

@ -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