vm: chown /home/user to user if user UID have changed
FC16 and FC17 starts normal users at UID 1000, not 500 as in <=FC15.
This commit is contained in:
parent
1b92b75ce8
commit
c5212ee438
@ -30,6 +30,11 @@ if [ -e /dev/xvdb ] ; then
|
|||||||
|
|
||||||
touch /var/lib/qubes/first_boot_completed
|
touch /var/lib/qubes/first_boot_completed
|
||||||
fi
|
fi
|
||||||
|
# Chown home if user UID have changed - can be the case on template switch
|
||||||
|
HOME_USER_UID=`ls -dn /home/user | awk '{print $3}'`
|
||||||
|
if [ "`id -u user`" -ne "$HOME_USER_UID" ]; then
|
||||||
|
find /home/user -uid "$HOME_USER_UID" -print0 | xargs -0 chown user:user
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -x /rw/config/rc.local ] && /rw/config/rc.local
|
[ -x /rw/config/rc.local ] && /rw/config/rc.local
|
||||||
|
Loading…
Reference in New Issue
Block a user