Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119301 - net-p2p/aMule - start with umask 000
Summary: net-p2p/aMule - start with umask 000
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-17 09:21 UTC by Jesús García Crespo (aka Sevein)
Modified: 2014-09-27 13:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesús García Crespo (aka Sevein) 2006-01-17 09:21:54 UTC
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}
Comment 1 Michael Palimaka (kensington) gentoo-dev 2013-06-23 15:39:10 UTC
Is this still valid with the current stable version of amule?
Comment 2 Pacho Ramos gentoo-dev 2014-09-27 13:20:11 UTC
(In reply to Michael Palimaka (kensington) from comment #1)
> Is this still valid with the current stable version of amule?