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 |
oops
above should read:
"can't gain access" sorry |
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. |
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 |
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 |
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.
|
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 |
Just type in
Code:
usermod -u <uid_number> <existing_user> |
All times are GMT -5. The time now is 05:41 PM. |