17bf9
![]() |
|
|
|
|
|||||||
| Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hey all,
I'm rather new to For the shared folder I'm using Samba (which I'm still trying to figure out for the most part) shares for my windows network, using a user name, NFS, as the login account to the share (I used a tutorial on ZFSguru, and used there same settings). Is there a way to change this? A setting in Transmission that changes what account it uses to create the new directories? Last edited by DutchDaemon; April 27th, 2012 at 23:30. Reason: Proper capitalization and punctuation. |
|
#2
|
||||
|
||||
|
Install sudo. Create a user. Edit the sudoers file adding the user to it. Install Transmission as the user using sudo. Do not run FreeBSD as root. Always create a user and use the sudo command. Working as root all config files go in /root and not in /home/user. They have different permissions.
__________________
==================================== | -------> UNIX. Live Free Or Die! <-------- | ==================================== You can say: I can't do something because is difficult. You must say: I tried a lot before say that I can't. Never Give up. http://unixsystems.dyndns.org/ I am not an BSD expert. But I really want to help. Don't afraid to ask me anything. If I can I will help! Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416 Last edited by DutchDaemon; April 27th, 2012 at 23:31. |
| The Following User Says Thank You to sk8harddiefast For This Useful Post: | ||
Dead_Lemon (April 27th, 2012) | ||
|
#3
|
|||
|
|||
|
Awesome, thanks, so I must uninstall transmission first, then install it onto my other account?
|
|
#4
|
||||
|
||||
|
Yep. Uninstall it (as root or as user using sudo) and just as user run:
sudo make install clean into Transmission port.
__________________
==================================== | -------> UNIX. Live Free Or Die! <-------- | ==================================== You can say: I can't do something because is difficult. You must say: I tried a lot before say that I can't. Never Give up. http://unixsystems.dyndns.org/ I am not an BSD expert. But I really want to help. Don't afraid to ask me anything. If I can I will help! Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416 Last edited by DutchDaemon; April 28th, 2012 at 04:26. Reason: It's "yeah" or "yep". "Yeap" is not a word. |
|
#5
|
|||
|
|||
|
Ok, reinstalled it under a non root account
But I still can't delete the folders Transmission makes, says I now require permission from Unix user/transmission. I'm confused now how I would set my network login account to have equal permissions as transmission. Last edited by DutchDaemon; April 29th, 2012 at 01:10. Reason: Proper punctuation. |
|
#6
|
||||
|
||||
|
Simple solution, no sudo or anything else needed. Set a download directory in transmission. I'm using /storage/media/transmission/Downloads/ but you can use any directory you want. The important things are its permissions.
Set it to: Code:
root@molly:~#ls -ld /storage/media/transmission/Downloads/ drwxrwxr-x 46 transmission transmission 476 Apr 29 20:49 /storage/media/transmission/Downloads/ pw groupmod transmission -m diceLog off and log back in. The user dice now has write access to the transmission download directory. And thus can delete files there.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. Last edited by DutchDaemon; May 1st, 2012 at 01:20. |
|
#7
|
|||
|
|||
|
I'm still not winning
Code:
[root@server /usr/home/admin]# ls -ld /tank/download/torrents/test drwxr-xr-x 3 transmission admin 3 May 1 18:50 /tank/download/torrents/test |
|
#8
|
||||
|
||||
|
Ah, forgot to set the umask
![]() Open settings.json when transmission is stopped. Look for: Code:
"umask": 18,
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#9
|
|||
|
|||
|
Still not working, but I think I know why. I used this tutorial when setting it up initially http://pynej.blogspot.com/2010/02/se...ittorrent.html. I now understand this article way better now, not like when I first installed it, blindly tapping away.
In the tutorial he uses sudo pw usermod USERNAME -G transmission and I used that, not originally knowing exactly what it did and I just noticed the one use commentQuote:
sudo pw usermod Admin -G transmissionI noticed today that in your example Code:
root@molly:~#ls -ld /storage/media/transmission/Downloads/ drwxrwxr-x 46 transmission transmission 476 Apr 29 20:49 /storage/media/transmission/Downloads/ Code:
[root@server /usr/home/admin]# ls -ld /tank/download/torrents/test drwxr-xr-x 3 transmission admin 3 May 1 18:50 /tank/download/torrents/test Last edited by DutchDaemon; May 3rd, 2012 at 00:06. Reason: Mind your writing style: http://forums.freebsd.org/showthread.php?t=18043 |
|
#10
|
||||
|
||||
|
Note that setting the umask in settings.json only works for new files that are downloaded. Previously downloaded files aren't changed.
Quote:
Code:
dice@molly:~%id -a uid=1001(dice) gid=1001(dice) groups=1001(dice),500(admin),921(transmission) # chown -R transmission:transmission /tank/download/torrents/# chgrp -R transmission /tank/download/torrents/The -R will make sure all files and directories are set recursively.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
| The Following User Says Thank You to SirDice For This Useful Post: | ||
Dead_Lemon (May 3rd, 2012) | ||
|
#11
|
|||
|
|||
|
It's working now. It must have just been the folder permissions then.
I found that after changing the permissions that I could immediately delete those folders I downloaded with "umask": 2 adjustment, what exactly does that do? Thanks very much for all your help |
|
#12
|
||||
|
||||
|
Think of umask(1) as a filter. Files are created with 666 permissions and the umask filters some of those bits out. A umask of 2 will make files 664, which is read/write for the owner and group and only read for everyone else.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
| The Following User Says Thank You to SirDice For This Useful Post: | ||
Dead_Lemon (May 3rd, 2012) | ||
|
#13
|
|||
|
|||
|
Awesome, thanks so much for all the help.
Last edited by DutchDaemon; May 4th, 2012 at 00:15. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] download samba file from command line (where is smbget in samba4?) | kenorb | Web & Network Services | 5 | November 1st, 2010 13:05 |
| [Solved] PF ALTQ + transmission daemon | lemurid | Firewalls | 4 | April 2nd, 2010 12:25 |
| [Solved] dri-7.4.4,2.tbz file download problem | Oz | Installation and Maintenance of FreeBSD Ports or Packages | 3 | April 1st, 2010 02:17 |
| [Solved] Transmission stalls on symlinks | naguz | Installation and Maintenance of FreeBSD Ports or Packages | 5 | March 12th, 2010 17:24 |
| Transmission watch-dir on ftp [FreeNAS] | pustar | Web & Network Services | 3 | November 2nd, 2009 15:35 |