20.08.2013 Views

VPN Configuration for Gentoo Linux at University of Sheffield

VPN Configuration for Gentoo Linux at University of Sheffield

VPN Configuration for Gentoo Linux at University of Sheffield

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

7.3 <strong>Configur<strong>at</strong>ion</strong><br />

7.3.1 CICS / Novell Network Drives<br />

You must cre<strong>at</strong>e the file /etc/nfs_share.credentials which should contain your CICS username<br />

and password substitute these in the example below. To ensure the security <strong>of</strong> your connection<br />

you✓must also change the permissions so th<strong>at</strong> only the root user can read and write this file. . .<br />

darwin # echo ’username=abc12xyz’ > /etc/nfs_share.credentials<br />

darwin # echo ’password=123456789’ >> /etc/nfs_share.credentials<br />

✒<br />

darwin # chmod 0600 /etc/nfs_share.credentials<br />

Now cre<strong>at</strong>e a mount point and change ownership to your normal user (otherwise you will be<br />

unable to write to the drive). In the example below we mount the CICS directory <strong>for</strong> user abc12xyz<br />

which is on the server Darkwood, the account username on the home computer is me, again substitute<br />

these ✎appropri<strong>at</strong>ely.<br />

. .<br />

darwin # mkdir /mnt/abc12xyz<br />

darwin # chown -R me:me /mnt/abc12xyz<br />

✍<br />

Now add a line to your /etc/fstab file so th<strong>at</strong> you can mount and unmount the network<br />

drive. ✓.<br />

.<br />

## Work NFS drives<br />

//Darkwood/abc12xyz /mnt/abc1def cifs credentials=/etc/nfs_share.credentials,<br />

rw,uid=me,gid=me,umask=133 0 0<br />

✒<br />

You should now be able to mount the drive as root, and as a normal user cre<strong>at</strong>e and modify<br />

files. ✓.<br />

.<br />

darwin # mount /mnt/abc1def<br />

darwin # exit<br />

✒$<br />

echo ’Hello World!’ > /mnt/abc1def/test.txt<br />

7.3.2 GNU/<strong>Linux</strong> NFS<br />

TODO!<br />

8<br />

✏<br />

✑<br />

☞<br />

✌<br />

✏<br />

✑<br />

✏<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!