User Tools

Site Tools


howtos:admin:setup_user_and_model_accounts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howtos:admin:setup_user_and_model_accounts [2011/01/20 15:27]
chris.strashok
howtos:admin:setup_user_and_model_accounts [2024/02/22 18:36] (current)
marcus.williams
Line 1: Line 1:
 ====== Setting up Accounts on a new VM ====== ====== Setting up Accounts on a new VM ======
 +**✅ CONTENT MIGRATED TO GURU ON FEBRUARY 22, 2024**
 +
  
 ===== Add user ===== ===== Add user =====
Line 15: Line 17:
 smbpasswd -a bboy smbpasswd -a bboy
 /​etc/​init.d/​smb restart /​etc/​init.d/​smb restart
 +</​code>​
 +NOTE if you want to list the samba users you can do
 +<​code>​
 +cat /​etc/​samba/​smbpasswd
 </​code>​ </​code>​
  
Line 47: Line 53:
 :wq <​enter>​ :wq <​enter>​
 </​code>​ </​code>​
 +
 +Note: An alternative terminal-based editor to //vi// is //nano//.
 +
 +==== Making the drive mapping for the user ====
 +On the user's client machine they will need a drive mounting to the server.
 +
 +Make the mount out to the end of the models directory such as say the "​N"​ drive is  mounted as:
 +<​code>​
 +    \\myserver\models
 +</​code>​
 +
 ===== Add a Model Account ===== ===== Add a Model Account =====
-  ​* If the model already exists on server get the model'​s user id from feynman ​and use the same+This process must be done as root logged in through putty to the server 
 + 
 +  ​* If the model already exists on another ​server ​then get the model'​s user id from that server (found in the file /etc/passwd using //vi// or //​nano//​) ​and use the same, if not leave out the "-u userIDFromOtherServer"​ part of the command below
 <​code>​ <​code>​
-useradd -s /bin/csh -c "​model1 model account"​ -d /​models/​model1 -u userIDFromFeynmanOr2000 ​model1+useradd -s /bin/csh -c "​model1 model account"​ -d /​models/​model1 -u userIDFromOtherServer ​model1
 </​code>​ </​code>​
- * set the model'​s password ​+ 
 +  * set the model'​s password ​
 <​code>​ <​code>​
 passwd model1 passwd model1
Line 70: Line 90:
 cd /models cd /models
 </​code>​ </​code>​
-  * Reconfigure the default directory for this user /models and delete the created model1 directory +  * Reconfigure the default directory for this model 
-<​code>​ +  * copy all files (including hidden) from some other working model account <modelacctto model1
-rm -rf model1  +
-</​code>​ +
-  * make a new one and copy all files (including hidden) from modelacct to model1+
 <​code>​ <​code>​
-mkdir reu +cp modelExample/​*.init model1/ 
-cp modelacct/* reu+cp modelExample/*.links model1
-cp modelacct/​.cshrc ​reu+cp modelExample/​.cshrc ​model1
-cp modelacct/​.login ​reu/+cp modelExample/​.login ​model1/
 </​code>​ </​code>​
-  * set perms (this sequence has been giving me trouble, to be reviewed (mjw) FIXME):+  * set perms :
 <​code>​ <​code>​
 chmod 770 model1 chmod 770 model1
howtos/admin/setup_user_and_model_accounts.1295537255.txt.gz · Last modified: 2011/01/20 15:27 by chris.strashok