已解决,请锁(deluge如何在后台改密码?)
本帖最后由 hd3pt 于 2012-7-12 12:52 编辑就是免费送的那个盒子,时间长了,记性不好,把密码给忘了,谁知道怎么在后台改密码?提前谢了!
本帖最后由 panlin87 于 2012-7-12 12:52 编辑
Deluge FAQ里有~
How can I reset the password?
Note: you need to stop the Web UI before you do any of the following.
If you have forgotten the password, you can reset it by deleting web.conf from deluge's config directory (see http://dev.deluge-torrent.org/wiki/Faq#WheredoesDelugestoreitssettingsconfig if you do not know where this is).
Important: This will delete all of your Web UI settings.
You can also reset it by using the following script (which does not delete your existing settings):#!/usr/bin/env python
# Changes the password for Deluge's Web UI
from deluge.config import Config
import hashlib
import os.path
import sys
if len(sys.argv) == 2:
deluge_dir = os.path.expanduser(sys.argv)
if os.path.isdir(deluge_dir):
try:
config = Config("web.conf", config_dir=deluge_dir)
except IOError, e:
print "Can't open web ui config file: ", e
else:
password = raw_input("Enter new password: ")
s = hashlib.sha1()
s.update(config['pwd_salt'])
s.update(password)
config['pwd_sha1'] = s.hexdigest()
try:
config.save()
except IOError, e:
print "Couldn't save new password: ", e
else:
print "New password successfully set!"
else:
print "%s is not a directory!" % deluge_dir
else:
print "Usage: %s <deluge config dir>" % (os.path.basename(sys.argv))
原址:http://dev.deluge-torrent.org/wiki/Faq#HowcanIresetthepassword
多谢。
页:
[1]