aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Change the default group ownership in amule  (Read 1809 times)

niko

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Change the default group ownership in amule
« on: November 07, 2005, 06:04:23 AM »

Hello everybody,

On my system my username is niko and my group niko. I'd like to change the owner of my .part files (and all the others) to niko:p2p :
$ ls -lh ~/.aMule/Temp
-rw-r-----  1 niko p2p  3.9K Nov  7 06:11 001.part.met
...

But while dowloading, aMule changes the owner of the files again :
$ ls -lh ~/.aMule/Temp
-rw-r-----  1 niko niko 3.9K Nov  7 06:11 001.part.met
...

Is there a possibility in aMule (or Linux...) to indicate the default group for the downloaded files, part files and directories ?
I searched the board and did not find answer, hope there is not.

Thank you, and enjoy aMule ;-)
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Change the default group ownership in amule
« Reply #1 on: November 07, 2005, 08:46:19 AM »

well you cannot do this in your homedir, or at least its not recommendet

best would be todo as root:

1.st

create a folder /mule/Temp and /mule/Incomming

for example

2.nd

add yourself to the p2p group

3.rd

change ownership of the FOLDER

chown niki:p2p -R /mule/
chmod g+rwx -R /mule/

4.th
change your incomming/temp folder in amule and copy the temp files to the right /mule/ folder

now everything should be fine, everyone on the system who is ALSO in the p2p group should be able to access the temp/incomming files


tata
stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

niko

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: Change the default group ownership in amule
« Reply #2 on: November 07, 2005, 01:16:09 PM »

Okay, so the problem was that the directories were in my home folder ?

Thank you for youy response
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Change the default group ownership in amule
« Reply #3 on: November 07, 2005, 04:17:38 PM »

yup this depends on your linux, some allow that some dont
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."