How to add new users: Difference between revisions
Jump to navigation
Jump to search
(Created page based on "HOW TO ADD NEW USERS" page from lab manual) |
mNo edit summary |
||
Line 26: | Line 26: | ||
chown username:games /raid1/people/username | chown username:games /raid1/people/username | ||
exit | exit | ||
[[Category:Sysadmin]] |
Revision as of 22:14, 28 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