LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-19-2008, 02:51 AM   #1
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Rep: Reputation: 30
NFS shares


Hi,

Recently we have this requirement of NFS mounting remote storage (NAS) share onto our RedHat Linux 4.0.

The share is already provided. So now we are able to mount this share with the mount command

mount -t nfs remote:/share /home/local

But we have this additional requirement as to only user account max and users from the group maxgroup
should have access to this mount.

So we have set the the owner and group permissions as max:maxgroup for the mount point /home/local

But the problem is when we mount the NFS share on /home/local , the permissions are like this ,

ls -l /home/local

drwxrwxrwx 3 root root 4096 Jun 19 03:19 /home/local

Please see , its 777 and also the owners are not max:maxgroup , they are root:root now.

Every other users on the system are able to acces this share. Can we not restrict this to specific user/group??
And what about 777 permissions?


Please help
 
Old 06-19-2008, 03:20 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
NFS assumes a model that UIDs/GIDs are consistent across platforms. Therefore, you need proper permissions on remote files systems to control local access permissions. There is an exception made for UID 0, which allows mapping it to a non-privileged user.
 
Old 06-19-2008, 03:31 AM   #3
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Original Poster
Rep: Reputation: 30
Thanks for the reply. I agree that the settings need to be done on the NFS server side.
But this share will be mounted on this host by ROOT always.
Had we required to give access to specific users to mount this share then I know it can be set on NFS share. But once its mounted, can the access list be modified in such way that only specific users get access to this share after mount?

Post mount usermod 770 command or chown command does not work on the mount point.


Please suggest.
 
Old 06-19-2008, 03:42 AM   #4
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
The mount point does not control permissions below that point in the directory tree. There are no inheritable permissions, short of ACLs (which are implementation dependent).

Once mounted, the existing remote file and directory permissions are in control. You can root_squash or all_squash, but that just maps UID 0, or all UIDs to the anonymous UID.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
nfs shares and permissions windsurfer Linux - Software 1 04-17-2007 05:33 AM
NFS shares not working windsurfer Linux - Software 6 04-10-2007 04:58 AM
NFS shares automounting mjuhannus Linux - Networking 1 03-06-2005 06:15 AM
How do you mount NFS shares? Thaidog Linux - Newbie 1 04-04-2004 09:48 PM
seeing nfs shares problem (firewall) rosscopeeko Linux - General 3 03-17-2004 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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