Changing permission of a file in a module: not effective

Technical issues/questions of an intermediate or advanced nature.
User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Changing permission of a file in a module: not effective

Post#1 by francois » 24 Sep 2016, 14:15

Changing permission of a file in a module does seem effective.

I have built a print module in which I have change a script to executable:
/mnt/sda5/64_V32/porteus/modules/printing-3.2-lite/etc/rc.d/rc.cups

Once the directory is transformed to a xzm module, it will load perfectly, except that the permission will not be reflected in the folder tree of the system.

If I xzm2dir the print module the permission is set to executable.

What is going on here?
Do I have to use rootcopy instead?
http://www.porteus.org/tutoriels/26-gen ... ctory.html

Thanks for bringing light on that issue. :)
Prendre son temps, profiter de celui qui passe.

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Changing permission of a file in a module: not effective

Post#2 by francois » 24 Sep 2016, 15:31

Changing the module name with a z:
printing-3.2-lite
does not make a differince. :(
Prendre son temps, profiter de celui qui passe.

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Changing permission of a file in a module: not effective

Post#3 by brokenman » 24 Sep 2016, 21:45

I just did a quick test.

Code: Select all

mkdir /tmp/mod
echo test > /tmp/mod/test.txt
chmod +x /tmp/mod/test.txt
dir2xzm /tmp/mod /tmp/module.xzm
activate /tmp/module.xzm quiet
ls -l /
The file /test.txt shows as executable. Perhaps you have another file in rootcopy or a module that loads later that is overwriting it?
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Changing permission of a file in a module: not effective

Post#4 by francois » 24 Sep 2016, 23:09

That is what I thought. I have tried to load the module last with z at the end.
I will review once more.
Prendre son temps, profiter de celui qui passe.

Post Reply