Make User Admin


#1

I used the wrong username when installing QB, now how do I create a new user with admin privileges in the QB dashboard?


#2

#3

There are a few additional things to do. You can do the following.

  1. Create a new user with createSeedboxUser
  2. Add this user to your sudoers
  3. Open the /etc/sudoers file and modify the following to have your NEW username for controlling panel functions etc:
# User privilege specification
<NEWUSERNAME> ALL=(ALL:ALL) NOPASSWD: ALL
root	ALL=(ALL:ALL) ALL
www-data     ALL = (ALL) NOPASSWD: CLEANMEM, SYSCMNDS, PLUGINCMNDS, PACKAGECMNDS, GENERALCMNDS
  1. Open /etc/apache2/sites-enabled/default-ssl.conf and modify the file to contain the new master user and the new user you generated port (You can find the new users port in their /home/<NEWUSER>/.rtorrent.rc file.
SSLPassPhraseDialog  builtin
SSLSessionCache         shmcb:/var/cache/mod_ssl/scache(512000)
SSLSessionCacheTimeout  300
#SSLMutex default
SSLRandomSeed startup file:/dev/urandom  256
SSLRandomSeed connect builtin
SSLCryptoDevice builtin
<VirtualHost *:80>
        DocumentRoot "/srv/rutorrent/home"
        <Directory "/srv/rutorrent/home/">
                Options Indexes FollowSymLinks
                AllowOverride All AuthConfig
                Order allow,deny
                Allow from all
        AuthType Digest
        AuthName "rutorrent"
        AuthUserFile '/etc/htpasswd'
        Require valid-user
        </Directory>
SCGIMount /<NEWUSERNAME> 127.0.0.1:<NEWPORT>
</VirtualHost>
<VirtualHost *:443>
Options +Indexes +MultiViews +FollowSymLinks
SSLEngine on
        DocumentRoot "/srv/rutorrent/home"
        <Directory "/srv/rutorrent/home/">
                Options +Indexes +FollowSymLinks +MultiViews
                AllowOverride All AuthConfig
                Order allow,deny
                Allow from all
        AuthType Digest
        AuthName "rutorrent"
        AuthUserFile '/etc/htpasswd'
        Require valid-user
        </Directory>
        SSLEngine on
        SSLProtocol ALL -SSLv2 -SSLv3
        SSLHonorCipherOrder On
        SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!aNULL:!MD5:!DSS
        SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
        SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
        SetEnvIf User-Agent ".*MSIE.*" \
                 nokeepalive ssl-unclean-shutdown \
                 downgrade-1.0 force-response-1.0
SCGIMount /<NEWUSERNAME> 127.0.0.1:<NEWPORT>
</Virtualhost>
SCGIMount /<NEWUSERNAME> 127.0.0.1:<NEWPORT>
  1. Modify the /srv/rutorrent/home/db/master.txt file to contain only the name of the new user you created to be admin. Be sure there is no whitespace or additional lines in this file.
  2. Finally, send a restart to apache with service apache2 restart

#4

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.