来吧兄弟,一起玩一起讨论!
您需要 登录 才可以下载或查看,没有账号?注册
×
原文网址:http://dev.deluge-torrent.org/wiki/Faq#HowcanIresetthepassword
盒子被人改密码,去找root下重置deluge的webui密码的方法,中文貌似没有找到,换了英文关键词,立马就找到了。
How can I reset the password?【如何重设密码】Note: you need to stop the Web UI before you do any of the following. 【注意:在以下操作之前你需要先停止Web UI - killall deluged
- killall deluge-web
复制代码】 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): 【如果你忘了密码,你可以通过删除deluge配置目录下的web.conf文件来重置密码(如果你不知道这文件在哪,参照http://dev.deluge-torrent.org/wiki/Faq#WheredoesDelugestoreitssettingsconfig)(重置后的密码是deluge)重要:如果删除这个文件的话,你Web UI上的所有设置也将随之消失。
当然,你也可以通过下面的脚本来重设密码(这个方法就不会丢失原先的设置了)(这个方法我不会用,我用的是上面那个方法)】
- #!/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[1])
- 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[0]))
复制代码
Where does Deluge store its settings/config?(deluge配置文件存储位置)Linux
Windows
启动deluge和web ui
- deluged
- deluge-web --fork
复制代码
|