Page 1 of 1

Changing permission of a file in a module: not effective

Posted: 24 Sep 2016, 14:15
by francois
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. :)

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

Posted: 24 Sep 2016, 15:31
by francois
Changing the module name with a z:
printing-3.2-lite
does not make a differince. :(

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

Posted: 24 Sep 2016, 21:45
by brokenman
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?

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

Posted: 24 Sep 2016, 23:09
by francois
That is what I thought. I have tried to load the module last with z at the end.
I will review once more.