[Solved] Can't update files!!

Post here if you are a new Porteus member and you're looking for some help.
User avatar
Ed_P
Contributor
Contributor
Posts: 8360
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

[Solved] Can't update files!!

Post#1 by Ed_P » 24 Mar 2014, 20:27

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

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Can't update files!!

Post#2 by fanthom » 24 Mar 2014, 21:06

so maybe change ownership back to guest?
run as root:

Code: Select all

chown guest:guest -R /home/guest
Please add [Solved] to your thread title if the solution was found.

User avatar
Ed_P
Contributor
Contributor
Posts: 8360
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Can't update files!!

Post#3 by Ed_P » 25 Mar 2014, 04:19

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
Ed

Post Reply