Changing permission of a file in a module: not effective

Technical issues/questions of an intermediate or advanced nature.
Post Reply
User avatar
francois
Contributor
Contributor
Posts: 5068
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

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. :)
Voltaire: Le mieux est l'ennemi du bien.

User avatar
francois
Contributor
Contributor
Posts: 5068
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

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. :(
Voltaire: Le mieux est l'ennemi du bien.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5542
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

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: 5068
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

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.
Voltaire: Le mieux est l'ennemi du bien.

Post Reply