aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: How to change permissions of a file after it have been downloaded?  (Read 4294 times)

stormrider

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15

well, the question is in the subject  ;)
Logged

Ramiro

  • Jr. Member
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 71
Re: How to change permissions of a file after it have been downloaded?
« Reply #1 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.
Logged

stormrider

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
Re: How to change permissions of a file after it have been downloaded?
« Reply #2 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?
Logged

Ramiro

  • Jr. Member
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 71
Re: How to change permissions of a file after it have been downloaded?
« Reply #3 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"
Logged