Fix file ownership for the username change

This commit is contained in:
Jeremy Katz 2008-10-02 11:07:33 -04:00
parent ca2f8913a2
commit 7ccf72a59f
8 changed files with 10 additions and 10 deletions

View File

@ -122,7 +122,7 @@ fi
# make fedora user use KDE # make fedora user use KDE
echo "startkde" > /home/liveuser/.xsession echo "startkde" > /home/liveuser/.xsession
chmod a+x /home/liveuser/.xsession chmod a+x /home/liveuser/.xsession
chown fedora:fedora /home/liveuser/.xsession chown liveuser:liveuser /home/liveuser/.xsession
# set up autologin for user fedora # set up autologin for user fedora
sed -i 's/#AutoLoginEnable=true/AutoLoginEnable=true/' /etc/kde/kdm/kdmrc sed -i 's/#AutoLoginEnable=true/AutoLoginEnable=true/' /etc/kde/kdm/kdmrc
@ -138,7 +138,7 @@ cat > /home/liveuser/.kde/share/config/kickoffrc << MENU_EOF
[Favorites] [Favorites]
FavoriteURLs=/usr/share/applications/kde4/konqbrowser.desktop,/usr/share/applications/kde4/dolphin.desktop,/usr/share/applications/liveinst.desktop FavoriteURLs=/usr/share/applications/kde4/konqbrowser.desktop,/usr/share/applications/kde4/dolphin.desktop,/usr/share/applications/liveinst.desktop
MENU_EOF MENU_EOF
chown -R fedora:fedora /home/liveuser/.kde/ chown -R liveuser:liveuser /home/liveuser/.kde/
# show liveinst.desktop on and in menu # show liveinst.desktop on and in menu
sed -i 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop sed -i 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop

View File

@ -20,5 +20,5 @@ timezone Europe/Lisbon
mkdir -p /home/liveuser/.kde/env mkdir -p /home/liveuser/.kde/env
echo "system-config-keyboard --noui de-latin1-nodeadkeys" > /home/liveuser/.kde/env/keyboard.sh echo "system-config-keyboard --noui de-latin1-nodeadkeys" > /home/liveuser/.kde/env/keyboard.sh
chmod +x /home/liveuser/.kde/env/keyboard.sh chmod +x /home/liveuser/.kde/env/keyboard.sh
chown -R fedora:fedora /home/liveuser/.kde/env/ chown -R liveuser:liveuser /home/liveuser/.kde/env/
%end %end

View File

@ -190,7 +190,7 @@ fi
# make fedora user use KDE # make fedora user use KDE
echo "startkde" > /home/liveuser/.xsession echo "startkde" > /home/liveuser/.xsession
chmod a+x /home/liveuser/.xsession chmod a+x /home/liveuser/.xsession
chown fedora:fedora /home/liveuser/.xsession chown liveuser:liveuser /home/liveuser/.xsession
# set up autologin for user fedora # set up autologin for user fedora
sed -i 's/#AutoLoginEnable=true/AutoLoginEnable=true/' /etc/kde/kdm/kdmrc sed -i 's/#AutoLoginEnable=true/AutoLoginEnable=true/' /etc/kde/kdm/kdmrc

View File

@ -21,6 +21,6 @@ timezone Europe/Zurich
mkdir -p /home/liveuser/.kde/env mkdir -p /home/liveuser/.kde/env
echo "system-config-keyboard --noui sg-latin1-nodeadkeys" > /home/liveuser/.kde/env/keyboard.sh echo "system-config-keyboard --noui sg-latin1-nodeadkeys" > /home/liveuser/.kde/env/keyboard.sh
chmod +x /home/liveuser/.kde/env/keyboard.sh chmod +x /home/liveuser/.kde/env/keyboard.sh
chown -R fedora:fedora /home/liveuser/.kde/env/ chown -R liveuser:liveuser /home/liveuser/.kde/env/
%end %end

View File

@ -21,6 +21,6 @@ timezone Europe/Berlin
mkdir -p /home/liveuser/.kde/env mkdir -p /home/liveuser/.kde/env
echo "system-config-keyboard --noui de-latin1-nodeadkeys" > /home/liveuser/.kde/env/keyboard.sh echo "system-config-keyboard --noui de-latin1-nodeadkeys" > /home/liveuser/.kde/env/keyboard.sh
chmod +x /home/liveuser/.kde/env/keyboard.sh chmod +x /home/liveuser/.kde/env/keyboard.sh
chown -R fedora:fedora /home/liveuser/.kde/env/ chown -R liveuser:liveuser /home/liveuser/.kde/env/
%end %end

View File

@ -21,5 +21,5 @@ timezone Europe/Lisbon
mkdir -p /home/liveuser/.kde/env mkdir -p /home/liveuser/.kde/env
echo "system-config-keyboard --noui de-latin1-nodeadkeys" > /home/liveuser/.kde/env/keyboard.sh echo "system-config-keyboard --noui de-latin1-nodeadkeys" > /home/liveuser/.kde/env/keyboard.sh
chmod +x /home/liveuser/.kde/env/keyboard.sh chmod +x /home/liveuser/.kde/env/keyboard.sh
chown -R fedora:fedora /home/liveuser/.kde/env/ chown -R liveuser:liveuser /home/liveuser/.kde/env/
%end %end

View File

@ -96,7 +96,7 @@ fi
# make fedora user use KDE # make fedora user use KDE
echo "startkde" > /home/liveuser/.xsession echo "startkde" > /home/liveuser/.xsession
chmod a+x /home/liveuser/.xsession chmod a+x /home/liveuser/.xsession
chown fedora:fedora /home/liveuser/.xsession chown liveuser:liveuser /home/liveuser/.xsession
# set up autologin for user fedora # set up autologin for user fedora
sed -i 's/#AutoLoginEnable=true/AutoLoginEnable=true/' /etc/kde/kdm/kdmrc sed -i 's/#AutoLoginEnable=true/AutoLoginEnable=true/' /etc/kde/kdm/kdmrc
@ -112,7 +112,7 @@ cat > /home/liveuser/.kde/share/config/kickoffrc << MENU_EOF
[Favorites] [Favorites]
FavoriteURLs=/usr/share/applications/kde4/konqbrowser.desktop,/usr/share/applications/kde4/dolphin.desktop,/usr/share/applications/kde4/systemsettings.desktop,/usr/share/applications/liveinst.desktop FavoriteURLs=/usr/share/applications/kde4/konqbrowser.desktop,/usr/share/applications/kde4/dolphin.desktop,/usr/share/applications/kde4/systemsettings.desktop,/usr/share/applications/liveinst.desktop
MENU_EOF MENU_EOF
chown -R fedora:fedora /home/liveuser/.kde/ chown -R liveuser:liveuser /home/liveuser/.kde/
# show liveinst.desktop on and in menu # show liveinst.desktop on and in menu
sed -i 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop sed -i 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop

View File

@ -158,7 +158,7 @@ Language=en
EOF EOF
cat >> /etc/rc.d/init.d/livesys << EOF cat >> /etc/rc.d/init.d/livesys << EOF
chown -R fedora:fedora /home/liveuser chown -R liveuser:liveuser /home/liveuser
# disable screensaver locking # disable screensaver locking
gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool /apps/gnome-screensaver/lock_enabled false >/dev/null gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool /apps/gnome-screensaver/lock_enabled false >/dev/null