On Sat, 19 Sep 2015 at 04:05 Storm Dragon <[email protected]> wrote:
> Howdy, > I'm working on a package. The package will need to download sounds to a > subdirectory of itself. I have placed the package in /opt. > The package is /opt/tintin-alteraeon. It downloads the msp sounds from the > Alter Aeon mud as it encounters them. But my current setup gives me, for > example: > sounds/spell//tensor.opus: Permission denied > So, how can I give normal users permission to write to the sounds > directory? Also, is that a bad thing to do? If so, I'll have to come up > with a different way to handle sounds. > -- > Powered by Arch Linux! I am registered Linux user number 508465: > https://linuxcounter.net/user/508465.html > My blog, Thoughts of a Dragon: http://www.stormdragon.tk/ > get my public PGP key: gpg --keyserver wwwkeys.pgp.net --recv-key 43DDC193 > Twitter and Facebook are so ... yesteryear. Get your 2MB Social account > TODAY! http://2mb.social/main/register > The great thing about Object Oriented code is that it can make small, > simple problems look like large, complex ones. > "As the moon is rising, give us the sign. Now let us rise up in awe, rock > 'n' roll angels bring thy hard rock hallelujah, demons and angels all in > one have arrived." > Lordi - Hard Rock Hallelujah > Ideally you would either download the files beforehand, or per-user. But if you want a shared folder, create a group for your application, and put in the post_install a message to add users who want to use the application to that group. There is a built in games group that you could probably just use for this? If you set the directory to g+s it will inherit group ownership when a user creates a new file; but you need ACLs to inherit actual group write permissions, and 99% of systems will have a umask of 022; so no group writes. - Justin
