Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


NFS share options


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
NFS share options

Hello,

I'm doing a Perl script to parse the dfstab file and find dangerous configurations (rw to everyone, root access, etc). My question is, if I have a share command like this:

Code:
share -F nfs -o ro=chrome:copper:zinc,root=chrome /usr/man

it means that the /usr/man is "rw" to everyone (because "rw" isn't present) or the "ro" overwrites the default "rw" option? I'm a little confused on these details, could someone give me some lights?

Thanks.
# 2  
and nfs share of rw isn't necessarily dangerous, as it may be appropriate for clients to write to servers. the user/group/read/write/execute attributes are still respected, however you need to confirm that there is a one to one mapping for uids and gids between server and all clients.

the "root=" means that the root from server chrome will be allowed root access to this share. This would typically be used for diskless clients.
# 3  
Well, I think I was not explicit enough. With that share options, it means that /usr/man is rw to everyone due to the absent of rw in the options configuration? Or the ro option overwrites the default rw behaviour? It's the same having this:
Code:
share -F nfs -o ro=chrome:copper:zinc,root=chrome /usr/man

or this:

Code:
share -F nfs -o ro=chrome:copper:zinc,root=chrome,rw /usr/man

?

Nevermind the other options, they're there just as an example.
# 4  
A share is read/write unless the read only option is changes it.

Code:
                ro    Sharing will be read-only to all clients.

                ro=access_list
                      Sharing will be read-only  to  the  clients
                      listed  in  access_list;  overrides the  rw
                      suboption for the  clients  specified.  See
                      access_list below.

UNIX man pages : share_nfs (1M)
# 5  
But the order matters? For example:

Code:
share -F nfs -o rw=chrome,ro=chrome /usr/man

and

Code:
share -F nfs -o ro=chrome,rw=chrome /usr/man

I think in the 1st the ro overwrite the rw and in the 2nd vice-versa. Right?
# 6  
Quote:
Originally Posted by psimoes79
I think in the 1st the ro overwrite the rw and in the 2nd vice-versa. Right?
1. try it

2. it *may* be undefined behaviour,

however the doc says "ro" overrides "rw".
# 7  
The most restrictive permissions apply, in this case it will be ro.
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Mount NFS Share On NFS Client via bash script.
Brian.t
I need a help of good people with effective bash script to mount nfs shared, By the way I did the searches, since i haven't found that someone wrote a script like this in the past, I'm sure it will serve more people. The scenario as follow: An NFS Client with Daily CRON , running bash script...... Shell Programming and Scripting
4
Shell Programming and Scripting
Permissions for NFS share
Rossdba
Hi, I have created a NFS share in Solaris 10 server1 and mounted it on solaris 10 server 2.But I want to change owner of the files from nobody to a particular user in client. Which command should I use. I have tried the following but it doesn't allow to change permissions in the server2 as...... UNIX for Dummies Questions & Answers
0
UNIX for Dummies Questions & Answers
NFS share
mastansaheb
Hi, I have an NFS server, i want to mount that nfs share which is having around 500GB to my client system. But my client system doesnt have any free space, is it possible to mount that nfs share in my client. Regards, Mastan... Red Hat
1
Red Hat
du and df do not match on NFS share
masterpengu
Here is the scenario... NFS share that is accessed every few minutes by approx 70 systems (AIX 5.3/6.1). Filesystem space is being eaten up rapidly according to df however du numbers really never change. lsof and fuser cannot see any unlinked files on either the NFS server or remote...... UNIX for Advanced & Expert Users
3
UNIX for Advanced & Expert Users
NFS share error
rcmrulzz
I got a problem while creating files on a NFS mounted share in a RHEL box. That is when I create an empty file, this is what appears on the screen ############################################### E325: ATTENTION Found a swap file by the name ".test.swp" owned by: jsmith dated: Tue...... Red Hat
2
Red Hat

Featured Tech Videos