Prince:Add User for NFS: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
(New page: {{PrinceLab}} ==Mirror the server ID numbers== ssh into sunserver.chem.byu.edu and get your user id number, your gid (this is your main group) and any other group ids that you belong to ...)
 
 
(5 intermediate revisions by 2 users not shown)
Line 23: Line 23:


check that <pre>id -a</pre> has all of these set.  If you have to, alter '''/etc/passwd''' and '''/etc/group''' to get the proper id's.
check that <pre>id -a</pre> has all of these set.  If you have to, alter '''/etc/passwd''' and '''/etc/group''' to get the proper id's.
<pre>chown -R <user>:<maingroup>  /home/<user>
# e.g.:
chown -R amakaju:student-research /home/amakaju</pre>


==Create automounts==
==Create automounts==
copy the script in lab/bin/add_nfs_automount.rb to your directory (there are issues executing on the lab mount as root) and run it to add auto mounts.
copy the script in '''lab/bin/add_nfs_automount.rb''' to your directory (there are issues executing on the lab mount as root) and run it to add auto mounts.
 
This is what the script does with the user name "silly":
 
Appends this line to /etc/auto.master:
<pre>/home/silly/chem  /etc/auto.silly --timeout 600</pre>
 
Creates a file /etc/auto.silly:
<pre>
home -fstype=nfs,soft,intr,rsize=8192,wsize=8192,tcp sunserver:/home/students/silly
lab -fstype=nfs,soft,intr,rsize=8192,wsize=8192,tcp sunserver:/groups/research/princelab
lab_vault -fstype=nfs,soft,intr,rsize=8192,wsize=8192,tcp sunserver:/groups/vault/research/princelab
</pre>
* the nfs mounts are visible only when they are accessed
* create a soft link:
<pre>ln -s (nfs mount source) (path to soft link)</pre>
<pre>abc@xyz:~$ ln -s /home/eee/foldername /home/eee/traget</pre>
 
===Mounting the Orbitrap===
Ryan used this [https://wiki.ubuntu.com/MountWindowsSharesPermanently Wiki] page to solve the issue by mounting the orbitrap drive to the fstab.
 
You can access it by:
<pre> ln -s /media/orbitrap (local orbitrap location such as ~/orbitrap ) <\pre>

Latest revision as of 12:28, 31 March 2011

Home        Lab Members         Research         Publications         Internal         Mass Spec         Contact        


Mirror the server ID numbers

ssh into sunserver.chem.byu.edu and get your user id number, your gid (this is your main group) and any other group ids that you belong to and need NFS mapping into.

id -a
  • princelab = 3861
  • student-research = 4000
  • research = 5000
  • faculty = 6000

Create groups if necessary

Use the same chem network name to create a user and ensure that they have the same:

  1. username
  2. user ID
  3. major group is the same
  4. also belong to princelab

This may require dancing around the Add user / Add group menus a bit. Double check that all of these are set properly!!

check that

id -a

has all of these set. If you have to, alter /etc/passwd and /etc/group to get the proper id's.

chown -R <user>:<maingroup>   /home/<user>
# e.g.:
chown -R amakaju:student-research /home/amakaju

Create automounts

copy the script in lab/bin/add_nfs_automount.rb to your directory (there are issues executing on the lab mount as root) and run it to add auto mounts.

This is what the script does with the user name "silly":

Appends this line to /etc/auto.master:

/home/silly/chem  /etc/auto.silly --timeout 600

Creates a file /etc/auto.silly:

home	-fstype=nfs,soft,intr,rsize=8192,wsize=8192,tcp	sunserver:/home/students/silly
lab	-fstype=nfs,soft,intr,rsize=8192,wsize=8192,tcp	sunserver:/groups/research/princelab
lab_vault	-fstype=nfs,soft,intr,rsize=8192,wsize=8192,tcp	sunserver:/groups/vault/research/princelab
  • the nfs mounts are visible only when they are accessed
  • create a soft link:
ln -s (nfs mount source) (path to soft link)
abc@xyz:~$ ln -s /home/eee/foldername /home/eee/traget

Mounting the Orbitrap

Ryan used this Wiki page to solve the issue by mounting the orbitrap drive to the fstab.

You can access it by:

 ln -s /media/orbitrap (local orbitrap location such as ~/orbitrap ) <\pre>