Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

The config file is ambiguous, and keeps getting overwritten when you restart the daemon in Debian, anyway.

In /etc/transmission-daemon/settings.json, there are these options:

rpc-username
rpc-password
proxy-auth-username
proxy-auth-password

Every time I restart the daemon with:

/etc/init.d/transmission-daemon restart

It overwrites rpc-password, and the password it prints doesn't work anyway.

Does anyone know how to set the password properly? I don't want to disable it.

share|improve this question
add comment

2 Answers

up vote 49 down vote accepted

Do these things in the exact order:

  1. Shutdown: /etc/init.d/transmission-daemon stop
  2. Write the rpc-password in the /etc/transmission-daemon/settings.json file, in double-quotes.
  3. Save that file
  4. Startup: /etc/init.d/transmission-daemon start
  5. Login to the page, it's at port 9091
  6. Type in your password.

The password that's being overwritten is a hash. The program is smarter than usual and detects that your password is not a hash, so it overwrites the password with the hash to be secure. So your password should work.

However, remember that it writes the password it loaded with when it shuts down. So doing /etc/init.d/transmission-daemon restart will not do what you expect if you've written the file while it's running.

share|improve this answer
    
+1 I had trouble with that one as well, your solution works fine. Good point about the automatic hashing, I was not aware of that. –  Sune Rievers Nov 19 '10 at 16:31
3  
You don't have to stop and restart the daemon. Just /etc/init.d/transmission-daemon reload. –  brad Sep 1 '11 at 11:19
1  
At least at the time I wrote the answer, you actually edit the file while it's stopped, because transmission-daemon writes the file on close. –  Neil Sep 5 '11 at 6:24
1  
init.d/reload is distro-specific. More generally, you just send a SIGHUP - although this is NOT in the man page, only here: trac.transmissionbt.com/wiki/EditConfigFiles –  yardena May 14 '12 at 17:21
    
Comment from an anonymous user: In my case, there was a script (in /etc/init.d) to launch the daemon that passed it the password: I had to edit that script (named "transmissiond") to change password and so it worked. –  terdon Jun 9 '13 at 14:07
show 1 more comment

You can also try another solution to find the password:

ps -ef | grep transmission

(to my version it was admin:password1)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.