Difference between revisions of "Users and Groups"
(→Usage) |
|||
Line 6: | Line 6: | ||
= Usage = | = Usage = | ||
− | + | ==Users== | |
+ | * To create a new user(s) | ||
+ | Root has a script in bin/creasu.sh, so as root: | ||
+ | sh bin/creasu.sh <user> <user1> <user2> | ||
+ | will create groups, accounts, home folder and all relevant files into the new home folder. | ||
+ | Then you need to setup passwords with: | ||
+ | smbldap-passwd <user> | ||
+ | for each of the users. | ||
+ | ==Groups== | ||
* To create a new group | * To create a new group | ||
smbldap-groupadd -a <newgrpname> | smbldap-groupadd -a <newgrpname> |
Revision as of 09:43, 24 January 2018
Contents
Introduction
Some, though not all, of the tips here are for setting up users and groups.
The tool of choice is smbldap.
Usage
Users
- To create a new user(s)
Root has a script in bin/creasu.sh, so as root:
sh bin/creasu.sh <user> <user1> <user2>
will create groups, accounts, home folder and all relevant files into the new home folder. Then you need to setup passwords with:
smbldap-passwd <user>
for each of the users.
Groups
- To create a new group
smbldap-groupadd -a <newgrpname>
- To add users to a certain group (note that this seems to take some time to propagate, as well as only working on fresh logins)
smbldap-groupmod -m <list,of,users> <targetgroup>