changes=EXIT - bug

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
Post Reply
tome
Contributor
Contributor
Posts: 633
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

changes=EXIT - bug

Post#1 by tome » 07 Aug 2015, 15:50

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.
No intelligence, no life and no information can exist without prior intelligence, life or information (in place where things change and time is running).

KnallKopf
Samurai
Samurai
Posts: 134
Joined: 18 Sep 2012, 20:56
Distribution: Porteus 64bit KDE4
Location: Absurdistan

Re: changes=EXIT - bug

Post#2 by KnallKopf » 08 Nov 2015, 02:11

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
...

aus9

Re: changes=EXIT - bug

Post#3 by aus9 » 08 Nov 2015, 04:01

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?

Post Reply