| Summary: | net-p2p/aMule - start with umask 000 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Jesús García Crespo (aka Sevein) <correo> |
| Component: | New packages | Assignee: | Gentoo net-p2p team <net-p2p> |
| Status: | RESOLVED TEST-REQUEST | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
Is this still valid with the current stable version of amule? (In reply to Michael Palimaka (kensington) from comment #1) > Is this still valid with the current stable version of amule? |
I run my amule daemon and when it downloads new files they are created with the permissiones value assigned in ~/.aMule/amule.conf (PermissionFiles=[value in decimal]). Because I wanted the files are created with permissions 666 I give it this value: "PermissionFiles=438" (in decimal). However, Gentoo default umask (/etc/profile) is 022, so aMule will create the file with 644 (666 - 022), as you can read in "man 2 umask". Well, because of this, I thought the best solution would be run amuled with umask 000. Something like this is a valid example: my-amule.sh ---- #!/bin/sh umask 0000 exec /usr/bin/amuled In this way, Gentoo would make easier to users to set the wished permissions with files will be created by aMule. I submitted a bug for this situation in aMule Mantis and they preffer aMule follows considering umask to create files. I am not able to imagine an elegant way to do this, but this could be an example: --quiet --background \ --make-pidfile --pidfile /var/run/amuled.pid \ -c ${AMULEUSER} \ - -x ${AMULEHOME}/my-amule.sh >${LOG} + -x /usr/bin/amuled >${LOG}