1753500 Members
3555 Online
108794 Solutions
New Discussion юеВ

Re: exportfs

 
SOLVED
Go to solution
allan_48
Occasional Contributor

exportfs

Hello
What command will I use if i want to write on an exported filesystem?I know how to configure it in sam, but I wanted to know in command line

thanks
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: exportfs

By default, filesystems are exported read-write. You first edit the file /etc/exports and add your filesystems

/u01

Save the file and then exportfs -a which will exported any unexported filesystems list in /etc/exports. If you want to change the attributes of an already exported filesystem, you need to unexport it
exportfs -u /u01, make your changes to /etc/exports, and then exportfs -a.

Man exports and exportfs for details.
If it ain't broke, I can fix that.
KapilRaj
Honored Contributor
Solution

Re: exportfs

you can write on an exported directory, to me it means you are on the nfs server. to write on a nfs mounted directory , you will need to export it without -o ro option. which is default.. If this is temporary , i do it as follows,


exportfs -i /kapil/soft -o root=server1,access=server1. Please note that if you do not give root=server1 , The root user of server1 will not have any permission on this mounted directory.

Kaps
Nothing is impossible