Page 1 of 1

changes=EXIT - bug

Posted: 07 Aug 2015, 15:50
by tome
If /etc/changes-exit.conf contains nonexistent path, for example /home/guest/.config/test/test.conf then after reboot /home/guest/.config/test is created and owned by root, but it shouldn't be created if it doesn't exist (it could damage system if guest can't edit his configurable files). BTW I think that changes-exit.conf should work also for files, now only dirs are available.

Re: changes=EXIT - bug

Posted: 08 Nov 2015, 02:11
by KnallKopf
I thing the failure are in:
/opt/porteus-scripts/dump-session
line 45

Code: Select all

...
MNAME=/mnt/live/memory/images/changes
...
FOLDERS=`grep '^/' /etc/changes-exit.conf | sed s/^.//g`
...
cp -af $FOLDERS $MNAME 2>/dev/null
...

Re: changes=EXIT - bug

Posted: 08 Nov 2015, 04:01
by aus9
to add to tome post

If you copy a file with root powers to say /home/guest/Downloads
that dir becomes owned by root....YMMV

I wonder if a sticky permission might resolve that?