Thursday, August 29, 2013

Network File Access 2

Ok, so I left off yesterday satisfied with branching from bazaar repositories on the network, but not with file mounting. I'll figure it out!

mkdir <local directory>
sudo mount -t nfs <network>:/<share name> <local directory>

Great! But when I try to cd into the <local directory>, I get permission denied. Apparently this is an id problem.

Running id at the command line gives me a uid and a gid. These need to be the same as my uid and gid on my network account. I also need to make my own computer be a member of the lab group.

To check id's locally or after ssh'ing into the network:
id
getent passwd <username>

I logged in as root and changed the id's following instructions from l0b0 and Esteis:
http://askubuntu.com/questions/16700/how-can-i-change-my-own-user-id

Alternatively, you can edit the documents directly:
cd /etc
sudo gedit group
sudo gedit passwd

Important!
To unmount drives:
umount <path to drive>

Don't delete the directory.... that really deletes it from the network.



No comments:

Post a Comment