aMule Forum

English => en_Linux => Topic started by: stormrider on February 01, 2006, 11:39:59 AM

Title: How to change permissions of a file after it have been downloaded?
Post by: stormrider on February 01, 2006, 11:39:59 AM
well, the question is in the subject  ;)
Title: Re: How to change permissions of a file after it have been downloaded?
Post by: Ramiro on February 01, 2006, 12:51:25 PM
chmod a+r filename
allow reading for all
chmod u+w filename
allow writing for owner
chmod g-r
disallow reading for group

man chmod is a good thing to read.
Title: Re: How to change permissions of a file after it have been downloaded?
Post by: stormrider on February 01, 2006, 03:14:24 PM
Ops, forgot something, it´s how to auto change permissions of a file after it have been downloaded?
Title: Re: How to change permissions of a file after it have been downloaded?
Post by: Ramiro on February 01, 2006, 03:21:26 PM
Quote
Originally posted by stormrider
Ops, forgot something, it´s how to auto change permissions of a file after it have been downloaded?

Edit amule.conf:

ExecOnCompletion=1
ExecOnCompletionCommand= chmod a+r "%FILE"