Page 1 of 1

[Solved] Can't update files!!

Posted: 24 Mar 2014, 20:27
by Ed_P
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??

Re: Can't update files!!

Posted: 24 Mar 2014, 21:06
by fanthom
so maybe change ownership back to guest?
run as root:

Code: Select all

chown guest:guest -R /home/guest

Re: Can't update files!!

Posted: 25 Mar 2014, 04:19
by Ed_P
That worked. Thank you. :beer:

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