2014년 5월 11일 일요일

Samba & Transmission-daemon

Transmission Daemon

Assuming the path to the download folder is /home/userName/Torrent/Done &  /home/userName/Torrent/Temp, run the following:
  • add chen to the debian-transmission group
    sudo usermod -a -G debian-transmission userName
  • change the folder ownership
    sudo chgrp debian-transmission /home/userName/Torrent/Done
  • sudo chgrp debian-transmission /home/userName/Torrent/Temp
  • grant write access to the group
    sudo chmod 770 /home/userName/Torrent/Done
  • sudo chmod 770 /home/userName/Torrent/Temp
  • Stop the deamon with sudo service transmission-daemon stop
  • The last thing to do is change the file creation mask, so that the downloaded files would be writeable by chen.
    sudo nano /etc/transmission-daemon/settings.json
    
    ...and change "umask": 18 to "umask": 2. Hit ctrl+o to save and ctrl+x to exit.
    Start the daemon with sudo service transmission-daemon start

settings.json

Samba

Just type

sudo apt-get install samba

and open setting file

sudo vi /etc/samba/smb.conf

and inset these lines at the end of the setting file.

[homes]
   comment = Home Directories
   browseable = yes
   read only = no
   guest ok = no
   create mask = 0664

   directory mask = 0755

and save and exit.

Now you can access by explorer.