본문 바로가기
IT

transmission-daemon user change

by Oh.mogilalia 2018. 4. 27.

다운로드 폴더 권한 주기

다운로드 받을 폴더를 임의로 지정했다면 해당 폴더에 쓰기 권한을 줘야 한다. 주지 않으면 토렌트를 아무리 추가해도 error를 낸다.

sudo chown -R debian-transmission:debian-transmission 디렉토리경로

하지만 이렇게 설정할 경우 ftp로 접속하거나 samba로 접속했을 때 내 계정에 권한이 없기 때문에 수정이 불가능하다. 따라서 다음과 같이 다시 설정해준다.

sudo chown -R 내계정:내계정 디렉토리경로

sudo usermod -a -G 내계정 debian-transmission

sudo chmod -R 775 디렉토리경로

내 계정 그룹에 debian-transmission 사용자를 추가시켜 준 후, 다운로드 디렉토리에 그룹 쓰기 권한을 주는 것이다. 이렇게 되면 트랜스미션이 파일을 다운 받을 수도 있고 나의 계정으로 수정도 가능하다.

===========================================

Change daemon user

Postby DaftHonk » Sun Jul 21, 2013 12:25 am

The solution to this is quite simple, though it took me quite a few hours of searching to figure it out.

1. Stop transmission:

sudo service transmission-daemon stop

2. Open the transmission-daemon configuration file:

sudo nano /etc/init/transmission-daemon.conf


Change the userid from debian-transmission to the desired user (USER):

setuid debian-transmission -> ssetuid USER

Change ownership of the settings.json file and the contents of /var/lib/transmission-daemon:

sudo chown USER:USER settings.json*

sudo chown -R USER:USER /~/torrent

sudo chown -R USER:USER /var/lib/transmission-daemon/info


4. Start transmission:

sudo service transmission-daemon start

And that should be it. My transmission is now running successfully as the xbmc user on my HTPC.


Re: Change daemon user

Postby blacke4dawn » Sun Jul 21, 2013 7:11 am

3. Change ownership of the settings.json file and the contents of /var/lib/transmission-daemon:

sudo chown USER:USER settings.json*

sudo chown -R USER:USER /var/lib/transmission-daemon/downloads

sudo chown -R USER:USER /var/lib/transmission-daemon/info


I would actually do:

sudo chown -R USER:USER /var/lib/transmission-daemon


출처 https://forum.transmissionbt.com/viewtopic.php?t=14836

'IT' 카테고리의 다른 글

Using Plex with Nextcloud  (0) 2018.05.01
아이들 영상 복사  (0) 2018.04.30
오늘 서버 작업 내용  (0) 2018.04.27
Plex media server 설치, 삭제  (0) 2018.04.25
서버 백업 파일 정리  (0) 2018.04.25