LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-03-2004, 08:38 AM   #1
dunmarie
Member
 
Registered: Aug 2003
Location: Johannesburg, South Africa
Distribution: RedHat 9.0; SmoothWall Express
Posts: 43

Rep: Reputation: 15
Mounted NFS directory (Read-Only)


I am sure there will be a simple answer to this question.

I have a RH9 command-line Fileserver running with both NFS and Samba installed. I do have a couple of Win 98 and XP machine connecting to the fileserver without any problems sharing files and read-write to the said files.
I am currently trying to setup a Fedora 2 workstation to access the same server and files. I can mount the directory on the server fine but the files are all "Read-Only" to me.

A exports file has been created on the fileserver with the following line:
/home/sys 10.0.0.0/255.255.0.0 (rw, sync)

I have added the following line to /etc/fstab:
10.0.0.0:/home/sys /home/****/**** nfs rw,sync 0 0

I have also tried the following line:
mount -t smbfs -0 username=guest //10.0.0.0/home/sys /home/***/***

In all the above, the directory mounts fine, except I can't change any documents on the fileserver.

Any help in solving my problem will be appreciated.
 
Old 08-03-2004, 08:54 AM   #2
Goala
Member
 
Registered: May 2004
Location: Merida (Spain)
Distribution: Debian
Posts: 89

Rep: Reputation: 15
just trying....

a) have you write permission in the directory you are mounting to? (both ***) (/home/***/***).

b) Watch the owners and the groups of the owners of the files you want to modify. When you mount via nfs, the id of the users in the server can specify a different user in the client machine.

Last edited by Goala; 08-03-2004 at 08:58 AM.
 
Old 08-03-2004, 09:05 AM   #3
dunmarie
Member
 
Registered: Aug 2003
Location: Johannesburg, South Africa
Distribution: RedHat 9.0; SmoothWall Express
Posts: 43

Original Poster
Rep: Reputation: 15
Ja, I do have full access to both the folders. No problem there.
Can you give a bit more details on your point b?
Thanks.
 
Old 08-04-2004, 03:17 AM   #4
Goala
Member
 
Registered: May 2004
Location: Merida (Spain)
Distribution: Debian
Posts: 89

Rep: Reputation: 15
well... shortly:

You don't have to worry about b) point if the file permissions are rw?rw?rw? in your server and client machines. So, check permissions for /home/sys and /home/sys/* in your server and /home/***/*** and /home/***/***/* in your client... changing them to 777 could solve your problem.

But I will try to explain it more or less:

Users in your server and client machines have a id number (the id command will show you which is your id and your group id). So, let's say you have a user in your server named dunmarie and that user have an id equal to 314. Let's say you have a user named dunmarie in your client machine too, but this user have an id equal to 302. And let's say you have a xxxx user in your client machine with 314 id (the same that dunmarie user id in your server machine). When you mount the /home/sys in your client machine, all the dunmarie's files in that server's directory will be xxxx's files in your client machine because they have the same id.

The same can occurs with the groups.

It's obvious you can see the owners, the owner's groups and the file permissions with a ls -l command in your machines.

But like I mentioned above, you have not to worry about it if the files and directories have write permission for everybody in both server and client machines.... and then... your problem would be due to something else.

Last edited by Goala; 08-04-2004 at 03:29 AM.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
program run from nfs-mounted directory behaves badly jabel5 Other *NIX 3 10-05-2005 08:40 AM
NFS export of directory with mounted iso-images leipy Suse/Novell 1 06-03-2005 08:12 PM
.forward file not working for user having it's home directoryon NFS mounted directory skverma_in Linux - General 0 02-14-2005 02:54 AM
NFS: a mounted to b, b mounted to c, c can't read a? Steve Cronje Linux - Networking 9 10-25-2004 09:51 AM
Can't access mounted NFS directory: "permission denied" SparceMatrix Linux - General 6 03-08-2003 01:36 PM


All times are GMT -5. The time now is 09:04 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration