Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not add user when user group is not 1 #2

Open
wangyue0727 opened this issue Jun 11, 2017 · 0 comments
Open

Can not add user when user group is not 1 #2

wangyue0727 opened this issue Jun 11, 2017 · 0 comments

Comments

@wangyue0727
Copy link
Contributor

The admin user can not add other users when the usergroup is set to values other than 1.

Issue reproduce:

  1. Get a new copy from git: git clone https://github.com/Peilin-Yang/virlab.git
  2. Rename it as temp, for example: mv virlab/ temp
  3. Overwrite the conf file: cp /var/www/html/demo/conf/conf.php temp/conf/conf.php
  4. Edit the usergroup in the conf file, change it to a value other than 1: if (!defined('MyUserGroupID')) define('MyUserGroupID', '5');
  5. Link the index: ln -s /var/www/html/UD17EXT/index /var/www/html/temp/index
  6. Sync the default users:
    rsync -az /var/www/html/UDSummer17/users/0 /var/www/html/temp/users/
    rsync -az /var/www/html/UDSummer17/users/1 /var/www/html/temp/users/
  7. Change the permission: chmod -R g+w /var/www/html/temp
  8. Login the new instance as admin.
  9. Add a user as the admin,
  10. Click Manage users, The newly added user is not in the list. And the new user can not login the system neither.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant