# HG changeset patch # User Christophe Lincoln # Date 1307232748 -7200 # Node ID 2bce5493412957c334f8cd7f2fd0eafb433f728c # Parent ae2a29072c7dc5f50efadf23d8ab3309ccc39baf Fix $HOME permission and use users gid to mount home= fat32 devices diff -r ae2a29072c7d -r 2bce54934129 etc/init.d/bootopts.sh --- a/etc/init.d/bootopts.sh Tue May 31 18:14:34 2011 +0200 +++ b/etc/init.d/bootopts.sh Sun Jun 05 02:12:28 2011 +0200 @@ -37,7 +37,7 @@ addgroup $USER video addgroup $USER tty # make user be only read/write by user - chmod -R 700 /home/$USER + chmod -R 755 /home/$USER # Slim default user. if [ -f /etc/slim.conf ]; then sed -i s/"default_user .*"/"default_user $USER"/\ @@ -93,7 +93,7 @@ if [ -n "$DEVID" ] && grep -q "$DEVID" /proc/partitions ; then echo "Mounting /home on /dev/$DEVID... " [ -d /home/$USER ] && mv /home/$USER /tmp/$USER-files - mount /dev/$DEVID /home -o uid=1000,gid=1000 2>/dev/null \ + mount /dev/$DEVID /home -o uid=1000,gid=100 2>/dev/null \ || mount /dev/$DEVID /home # Check if swap file must be generated in /home: swap=size (Mb). # This option is only used within home=device.