User Tools

Site Tools


account

This is an old revision of the document!


User Account Handling

As there is more than one server that will make up the Wormnet universe, in addition to a few xDSL joined NASes and systems, we need to roll out some kind of central user management database. Naturally we opted for LDAP.

The packages required to be installed to do this are:

User Management

Creating an Account

root@marmot:~# ldapaddgroup alex
root@marmot:~# ldapadduser alex alex
Successfully added user alex to LDAP
Successfully set password for user alex
  
root@marmot:~# ldapvi --discover -D cn=admin,dc=wormnet,dc=eu -h ldapi:/// uid=alex
objectClass: ldapPublicKey
sshPublicKey: ssh-rsa AAAB3...aLOOw== mb511
sshPublicKey: ssh-rsa AAAB3...KD0pw== alex@chipmunk

root@marmot:~# ldapvi --discover -D cn=admin,dc=wormnet,dc=eu -h ldapi:/// cn=shell
memberUid: alex

root@marmot:~# passwd alex
LDAP administrator password:
New password:
Retype new password:
passwd: password updated successfully

root@marmot:~# lvcreate -L 256M -n home-alex lvm-marmot
root@marmot:~# mkfs.ext4 -L home-alex /dev/lvm-marmot/home-alex
root@marmot:~# vi /etc/fstab
LABEL=home-alex         /home/alex      auto    relatime,nodev,nosuid,noexec             0  2
root@marmot:~# mkdir /home/alex
root@marmot:~# mount /home/alex
root@marmot:~# tar cC /etc/skel --owner=alex --group=alex . | tar xC /home/alex
root@marmot:~# chmod -R og-r-w-x /home/alex
account.1317741051.txt.gz · Last modified: 2011/10/04 15:10 by alex