LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-07-2003, 06:46 PM   #1
kpw4v
LQ Newbie
 
Registered: Sep 2003
Location: UK
Posts: 5

Rep: Reputation: 0
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
 
Old 10-07-2003, 06:47 PM   #2
kpw4v
LQ Newbie
 
Registered: Sep 2003
Location: UK
Posts: 5

Original Poster
Rep: Reputation: 0
oops

above should read:
"can't gain access"

sorry
 
Old 10-08-2003, 12:47 AM   #3
sidmark-2850
Member
 
Registered: Aug 2003
Posts: 133

Rep: Reputation: 15
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.

Last edited by sidmark-2850; 10-08-2003 at 12:48 AM.
 
Old 10-08-2003, 01:36 PM   #4
kpw4v
LQ Newbie
 
Registered: Sep 2003
Location: UK
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 10-08-2003, 01:39 PM   #5
kpw4v
LQ Newbie
 
Registered: Sep 2003
Location: UK
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 10-08-2003, 01:44 PM   #6
sidmark-2850
Member
 
Registered: Aug 2003
Posts: 133

Rep: Reputation: 15
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.
 
Old 10-08-2003, 05:28 PM   #7
kpw4v
LQ Newbie
 
Registered: Sep 2003
Location: UK
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 10-08-2003, 06:05 PM   #8
sidmark-2850
Member
 
Registered: Aug 2003
Posts: 133

Rep: Reputation: 15
Just type in
Code:
usermod -u <uid_number> <existing_user>
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
inherited permissions with NFS elbe3321 Linux - Networking 1 10-25-2005 12:13 AM
NFS Cant mount with rw permissions Peter@dk Linux - Networking 3 06-12-2005 04:02 AM
NFS Permissions Problem MattLaw Linux - Networking 2 11-11-2003 09:39 AM
NFS Permissions aqoliveira Linux - General 0 01-10-2002 02:08 PM
Mounted NFS permissions dlsw Linux - Networking 2 03-22-2001 12:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration