×
Do more with LabKey Server. Click here to learn about our Premium Editions.

User Management

Resources

Harmonized user ids over medphys infrastructure

As a cludge to avoid LDAP integration, a list in this project serves as a central directory of users with associated UIDs over the medphys infrastructure cluster.

Adding a user

  • Add a new entry to the UID list. Make sure you set unique username and UID fields.

Set disk server to export directory for user

  • Use the same fields to add a user on disk server (kobilica):
    root@kobilca:~# adduser --uid UID username
    
  • Create directory for export on disk server:
    root@kobilca:~# mkdir /tank/data/jama/username
    
  • Update /etc/exportfs:
    /tank/data/jama/username 172.24.1.32(rw,sync,no_root_squash,no_subtree_check)
    /tank/data/jama/username 127.0.0.1(rw,sync,no_root_squash,no_subtree_check)
    
  • Tell nfs configuration changed and check what gets exported
    root@kobilca:~# exportfs -a
    root@kobilca:~# exportfs -v
    

Import directory on processing pc

  • Use the same fields to add a user on processing server (jama, vangogh, ...):
    studen@X:~# sudo adduser --uid UID username
    
  • Update /etc/fstab with newly created mount:
    172.24.1.21:/tank/data/jama/username /mnt/kobilca/username nfs defaults 0 0
    
  • Create the mount path, set permissions and mount it. Check whether mounts worked:
    studen@X:~# sudo mkdir /mnt/kobilca/username
    studen@X:~# sudo chown username:username /mnt/kobilca/username
    studen@X:~# sudo mount -a
    studen@X:~# df -h
    

Discussion