How to add new users: Difference between revisions

From DISI
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
Line 1: Line 1:
=SAN FRANCISCO:=
==SAN FRANCISCO:==


  ssh nis
  ssh nis
Line 26: Line 26:
  chown username:games /raid1/people/username
  chown username:games /raid1/people/username
  exit
  exit
==To add users to cluster 2==
First make sure your ip address is in:
beta: /etc/httpd/conf.d/phpldapadmin.conf
go to: https://beta.compbio.ucsf.edu/ldapadmin/index.php?server_id=1&refresh=SID_1&redirect=true
If there’s a caching problem:
sudo sss_cache -UGN


[[Category:Sysadmin]]
[[Category:Sysadmin]]

Latest revision as of 18:55, 30 June 2016

SAN FRANCISCO:

ssh nis
su -

For new users: In the root directory there is a script called create-user.sh which looks like this:

#!/bin/sh
USER=$1
NAME=$2
/usr/sbin/useradd --comment "$NAME" \
                 --gid games \
                 --home /raid1/people/$USER -M \
                 --shell /bin/tcsh \
                 $USER

Run this script like this

./create-user.sh “Username” “First_name Last_name (purpose (ie Rotation Student, Novartis, etc))    

So say you have a person Jane Doe who is a student from USF:

./create-user.sh “jdoe” “Jane Doe (USF Graduate Student)”

Then type passwd username to make a temporary password for them.

make -C /var/yp
ssh nfshead4
su -
mkdir /raid1/people/username
chown username:games /raid1/people/username
exit

To add users to cluster 2

First make sure your ip address is in: beta: /etc/httpd/conf.d/phpldapadmin.conf

go to: https://beta.compbio.ucsf.edu/ldapadmin/index.php?server_id=1&refresh=SID_1&redirect=true

If there’s a caching problem: sudo sss_cache -UGN