[Solved] Can't update files!!
- Ed_P
- Contributor
- Posts: 7676
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.0 ISO
- Location: Western NY, USA
[Solved] Can't update files!!
On 3.0, upgraded from 2.1 save.dat, I can't change files in my /home/guest/ folder unless I edit them as root!!! And this is a text file. PorteusNotes.txt What the heck??
Last edited by Ed_P on 25 Mar 2014, 12:57, edited 1 time in total.
Ed
- fanthom
- Moderator Team
- Posts: 5591
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Can't update files!!
so maybe change ownership back to guest?
run as root:
run as root:
Code: Select all
chown guest:guest -R /home/guest
Please add [Solved] to your thread title if the solution was found.
- Ed_P
- Contributor
- Posts: 7676
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.0 ISO
- Location: Western NY, USA
Re: Can't update files!!
That worked. Thank you.
Was the problem caused by copying the files in root mode? This is what I ran:

Was the problem caused by copying the files in root mode? This is what I ran:
Code: Select all
#!/bin/sh
echo Run from LXterminal else SpaceFM bookmarks won't be restored.
echo Use FireFox to restore FireFox's bookmark backup and edit History Preferences.
echo
echo Be sure to update save.dat name and location.
read
if [ `whoami` != "root" ]; then
ktsuss "$0"
exit
fi
mloop /mnt/sda6/porteussave.dat
#http://forum.porteus.org/viewtopic.php?f=81&t=3075&p=21675#p21675
#cp -r -d /mnt/loop/home/guest/* 2>/dev/null /home/guest/
cp -r -d /mnt/loop/home/guest/* /home/guest/
cp -r -d /mnt/loop/home/guest/.config/spacefm/* /home/guest/.config/spacefm/
cp -r -d /mnt/loop/etc/NetworkManager/system-connections/* /etc/NetworkManager/system-connections
Ed