LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   NFS Permissions on files (https://www.linuxquestions.org/questions/linux-networking-3/nfs-permissions-on-files-101401/)

kpw4v 10-07-2003 06:46 PM

NFS Permissions on files
 
This is driving me crazy. I have one box running RH 9 and another running Mandrake 9.1 networked via a Netgear Router which acts as the DHCP server and g/w to the internet.

I am trying to get NFS working betweent the two boxes. I can see the files and directories on the other box (I have tried both boxes as a server) but I can gain access to them. I have tried to follow the guide on setting this up with r/w permissions etc. The only thing I can see wrong is the UID on one box is 500 and on the other 501.

What really makes this frustrating is the fact that the MD box dual boots to XP and RH networks real easy to XP.

Here's hoping

Kevin Walsh

kpw4v 10-07-2003 06:47 PM

oops
 
above should read:
"can't gain access"

sorry

sidmark-2850 10-08-2003 12:47 AM

You should probably use static IP addresses. I had problems with nfs on dhcp addresses if IPs change often. Also, if you set static addresses, put host entries of both boxes in the /etc/hosts file. BTW, what errors are you getting in the logs /var/messages on both boxes, client and server, when you try to mount?

Also, make sure the user's UID is the same from both boxes.

kpw4v 10-08-2003 01:36 PM

As mentioned above, the UID's are different, one is 500, and the other is 501.

And I don't know how to get them to be the same.

Regards

Kevin

kpw4v 10-08-2003 01:39 PM

mounting
 
FYI I don't seem to have a problem mounting, just the directories are only visible read only, and some I am denied total access to

Sorry for being a n00b pain in the butt

Kevin

sidmark-2850 10-08-2003 01:44 PM

You can specify the UID manually by using the usermod command. Do a man usermod. You can set the uid manually while creating a user from the command line by using the adduser command with the -u parameter. The same applies to group and the groupadd with the -g parameter. Look at the man pages for those commands for more details.

kpw4v 10-08-2003 05:28 PM

well I never
 
The adding another user with the -u command worked. Many thanks, just wish I could change an existing user id.

Regards

Kevin

sidmark-2850 10-08-2003 06:05 PM

Just type in
Code:

usermod -u <uid_number> <existing_user>


All times are GMT -5. The time now is 05:41 PM.