LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 01-23-2006, 05:49 AM   #1
Tinku
Member
 
Registered: Jul 2004
Location: INDIA
Distribution: SusE, Gentoo,Debian,FreeBSD
Posts: 197

Rep: Reputation: 30
nfs mounts read permissions


I am mounting a nfs mount of a server on my client using the following code in my fstab.


Code:
168.22.1.2:/hai   /home/tintin/5/  nfs  intr,rsize=8192,wsize=8192,retry=1,soft,bg,rw,auto,user,exec,   0       0
But the problem is - I am able to access the directory named 5 only through super user permissions.Ordinary user is unable to read the directory files.

Plz help
tia
 
Old 01-23-2006, 06:07 AM   #2
Notwerk
Member
 
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271

Rep: Reputation: 31
Check permissions for /home/tintin/5 and on the server side (168.22.1.2:/hai) do you have the proper permisisons set?
 
Old 01-23-2006, 06:11 AM   #3
Tinku
Member
 
Registered: Jul 2004
Location: INDIA
Distribution: SusE, Gentoo,Debian,FreeBSD
Posts: 197

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Notwerk
Check permissions for /home/tintin/5 and on the server side (168.22.1.2:/hai) do you have the proper permisisons set?
The permissions of folder 5 are not readable-But then thats the whole point.I can not change them neither. How do I check on the server side? I assume I am given the necessary configurations on the server side,otherwise,I shouldnt be able to access even as a super user,which I am able to.
 
Old 01-23-2006, 06:22 AM   #4
Notwerk
Member
 
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271

Rep: Reputation: 31
You're right about the server side, it already has the right permissions.
Just do a #chmod 755 /home/tintin/5 (as root or the folder owner). Those permissions should stick and not get reset when you mount the nfs share.
 
Old 01-25-2006, 10:48 PM   #5
Tinku
Member
 
Registered: Jul 2004
Location: INDIA
Distribution: SusE, Gentoo,Debian,FreeBSD
Posts: 197

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Notwerk
You're right about the server side, it already has the right permissions.
Just do a #chmod 755 /home/tintin/5 (as root or the folder owner). Those permissions should stick and not get reset when you mount the nfs share.
I would like to,but it doesn't work that way.
I get the following output,but nothing happens.

chmod: changing permissions of `1': Read-only file system
 
Old 01-26-2006, 01:54 AM   #6
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Pass the 'no_root_squash' as an nfs option and you should be able to change permissions of that directory.

-twantrd
 
  


Reply



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
Backgrounding NFS mounts kaplan71 Linux - Networking 2 02-22-2015 09:13 PM
FiFo sharing over NFS/SMB mounts..?? JZMatrix Linux - General 3 12-12-2004 02:11 AM
Create NFS Mounts at boot time rwalkerphl Linux - Newbie 1 11-17-2004 02:59 AM
NFS SMB common mounts greno Linux - Networking 1 06-02-2004 05:51 PM
cannot get nfs mounts to work iggymac Linux - Networking 0 08-10-2001 01:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:33 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