Skip to contentSkip to conversation

file :"/var/lib/nfs/rmtab"

DISCUSSION mehta kiran 3 participants 16 messages Feb 3, 2005 – Feb 4, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi ,
In mountd man page , it written that rmtab is ornamental and client can contiune to use filesystem even after calling umount for that filesystem.

Is there any real use of this rmtab file ? Does mountd use this file to know the clients having access to filesystem ? If yes , isn,t filehandle supplied by client enough to prove that client has access to filesystem. ?

thanks,
--kiran

__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#1 lore raw
Quoted 6 lines · mehta kiran

Hi ,
In mountd man page , it written that rmtab is ornamental and client can contiune to use filesystem even after calling umount for that filesystem.

Quoted 6 lines

Is there any real use of this rmtab file ? Does mountd use this file to know the clients having access to filesystem ? If yes , isn,t filehandle supplied by client enough to prove that client has access to filesystem. ?

On 2.4 kernels it is not 'ornamental' - if the server reboots without an entry for a client mount in /var/lib/nfs/rmtab, then the client will get a stale NFS file handle when the server reboots. This can happen if umount fails e.g. the mount point is busy - rpc.mountd on the server removes the entry from /var/lib/nfs/rmtab, but umount fails, so the file system remains mounted.

I believe the situation has changed with 2.6.

James Pearson

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#2 lore raw

Hi James ,
I know that if there is no entry for particualr client in rmtab (due to whatever reasons) it gets permission denied error because mountd verifies clients access to filesystem using rmtab. But what i want to know is why does mountd
use rmtab ? Isn't handle supplied by client enough to verify clients access to filesystem.?

I have seen that server uses entry from
rmtab only once when client access filesystem (after server restart).Later if entry from rmtab is removed client is still able to access filesystem without any problem.

thanks ,
--kiran

Quoted 27 lines · --- James Pearson
Quoted 11 lines · mehta kiran

Hi ,
In mountd man page , it written that rmtab is ornamental and client can contiune to use filesystem even after calling umount for that filesystem.

Is there any real use of this rmtab file ?
Does mountd use this file to know the
clients having access to filesystem ?
If yes , isn,t filehandle supplied by
client enough to prove that client has

access

Quoted 1 line

to filesystem. ?

On 2.4 kernels it is not 'ornamental' - if the server reboots without an
entry for a client mount in /var/lib/nfs/rmtab, then the client will get
a stale NFS file handle when the server reboots. This can happen if
umount fails e.g. the mount point is busy - rpc.mountd on the server
removes the entry from /var/lib/nfs/rmtab, but umount fails, so the file
system remains mounted.

Quoted 4 lines

I believe the situation has changed with 2.6.

James Pearson

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#3 lore raw
Quoted 3 lines · mehta kiran

Isn't handle supplied by client
enough to verify clients access to
filesystem.?

Yes, it should be. That's why in 2.6, the rmtab file is no longer relied upon. Instead, there is a special filesystem, /proc/fs/nfsd, that allows the kernel to communicate with mountd in order to authenticate unrecognized clients automatically.

--
Paul

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#4 lore raw

Hi ,
if handle supplied by client is sufficient ,
then why does the problem given below exists.

1. export filesystem to client.
2. let client allow to mount it.
3. remove all entries from rmtab on server.
4. restart all nfs daemons.
5. Now if client access filesystem , it gets permission denied error.Client can access filesystem only after remounting it.
6. This show that mountd still uses rmtab to check if client had mounted filesystem or not. No entry in rmtab for a client means it has not mounted filesystem.

thanks,
--kiran

Quoted 14 lines · --- Paul Clements
Quoted 3 lines · mehta kiran

Isn't handle supplied by client
enough to verify clients access to
filesystem.?

Yes, it should be. That's why in 2.6, the rmtab file is no longer relied
upon. Instead, there is a special filesystem, /proc/fs/nfsd, that allows
the kernel to communicate with mountd in order to authenticate
unrecognized clients automatically.

Quoted 5 lines

--
Paul

-------------------------------------------------------

Quoted 12 lines

This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at
http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#5 lore raw

I am using 2.6 kernel

Quoted 23 lines · --- mehta kiran

Hi ,
if handle supplied by client is sufficient
,
then why does the problem given below exists.

1. export filesystem to client.
2. let client allow to mount it.
3. remove all entries from rmtab on server.
4. restart all nfs daemons.
5. Now if client access filesystem , it gets permission denied error.Client can access filesystem only after remounting it.
6. This show that mountd still uses rmtab to check if client had mounted filesystem or not. No entry in rmtab for a client means it has not mounted filesystem.

thanks,
--kiran

--- Paul Clements <[email protected]>
wrote:

Quoted 21 lines
Quoted 7 lines
Quoted 3 lines · mehta kiran

Isn't handle supplied by client
enough to verify clients access to
filesystem.?

Yes, it should be. That's why in 2.6, the rmtab

file

Quoted 12 lines

is no longer relied
upon. Instead, there is a special filesystem,
/proc/fs/nfsd, that allows
the kernel to communicate with mountd in order to
authenticate
unrecognized clients automatically.

--
Paul

-------------------------------------------------------

Quoted 17 lines
Quoted 12 lines

This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at
http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

Quoted 7 lines

__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

-------------------------------------------------------

Quoted 12 lines

This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at
http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#6 lore raw

Did you do 'mount -t nfsd nfsd /proc/fs/nfsd' before starting all the nfs daemons?

James Pearson

Quoted 97 lines · mehta kiran

I am using 2.6 kernel

Quoted 27 lines · --- mehta kiran

Hi ,
if handle supplied by client is sufficient
,
then why does the problem given below exists.

1. export filesystem to client.
2. let client allow to mount it.
3. remove all entries from rmtab on server.
4. restart all nfs daemons.
5. Now if client access filesystem , it gets
permission denied error.Client can access
filesystem only after remounting it.
6. This show that mountd still uses rmtab to
check if client had mounted filesystem or not.
No entry in rmtab for a client means it has not
mounted filesystem.

thanks,
--kiran

--- Paul Clements <[email protected]>

Quoted 3 lines · wrote:

mehta kiran wrote:

Quoted 18 lines
Quoted 5 lines
Quoted 3 lines

Isn't handle supplied by client
enough to verify clients access to
filesystem.?

Yes, it should be. That's why in 2.6, the rmtab

file

Quoted 9 lines

is no longer relied upon. Instead, there is a special filesystem, /proc/fs/nfsd, that allows the kernel to communicate with mountd in order to authenticate unrecognized clients automatically.

--
Paul

-------------------------------------------------------

Quoted 17 lines
Quoted 12 lines

This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at
http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

Quoted 4 lines

__________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail

-------------------------------------------------------

Quoted 12 lines

This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at
http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

__________________________________ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com

Quoted 9 lines

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#7 lore raw

hi James ,
it did not help.
Enmtry in rmtab file is still used.
thanks for ur reply,
kiran

Quoted 6 lines · --- James Pearson

Did you do 'mount -t nfsd nfsd /proc/fs/nfsd' before starting all the
nfs daemons?

James Pearson

Quoted 56 lines
Quoted 6 lines · mehta kiran

I am using 2.6 kernel

Quoted 2 lines · --- mehta kiran

Hi ,
if handle supplied by client is

sufficient

Quoted 47 lines
Quoted 46 lines

,
then why does the problem given below exists.

1. export filesystem to client.
2. let client allow to mount it.
3. remove all entries from rmtab on server.
4. restart all nfs daemons.
5. Now if client access filesystem , it gets
permission denied error.Client can access
filesystem only after remounting it.
6. This show that mountd still uses rmtab to
check if client had mounted filesystem or not.
No entry in rmtab for a client means it has not
mounted filesystem.

thanks,
--kiran

--- Paul Clements <[email protected]>

Quoted 8 lines · wrote:
Quoted 3 lines · mehta kiran

Isn't handle supplied by client
enough to verify clients access to
filesystem.?

Yes, it should be. That's why in 2.6, the rmtab

file

Quoted 12 lines

is no longer relied
upon. Instead, there is a special filesystem,
/proc/fs/nfsd, that allows
the kernel to communicate with mountd in order to
authenticate
unrecognized clients automatically.

--
Paul

-------------------------------------------------------

Quoted 30 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

This SF.Net email is sponsored by: IntelliVIEW --
Interactive Reporting
Tool for open source databases. Create

drag-&-drop

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

reports. Save time
by over 75%! Publish reports on the web. Export

to

Quoted 21 lines
Quoted 19 lines
Quoted 7 lines

DOC, XLS, RTF, etc.
Download a FREE copy at
http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

-------------------------------------------------------

Quoted 18 lines
Quoted 18 lines
Quoted 13 lines

This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at
http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

Quoted 10 lines
Quoted 9 lines

__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com

-------------------------------------------------------

Quoted 16 lines
Quoted 1 line

This SF.Net email is sponsored by: IntelliVIEW --

Interactive Reporting

Quoted 1 line

Tool for open source databases. Create drag-&-drop

reports. Save time

Quoted 1 line

by over 75%! Publish reports on the web. Export to

DOC, XLS, RTF, etc.

Quoted 1 line

Download a FREE copy at

http://www.intelliview.com/go/osdn_nl

Quoted 4 lines

_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

-------------------------------------------------------

Quoted 12 lines

This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at
http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#8 lore raw

What version of nfs-utils are you running?

I've just tried (on a 2.6 kernel Fedora box):

mount -t nfsd nfsd /proc/fs/nfsd
/etc/init.d/nfs start

mount an exported file system on a client

edit /var/lib/nfs/rmtab and removed the line corresponding to the client

/etc/init.d/nfs stop
/etc/init.d/nfs start

Accessed the mount point on the client - no stale handle ...

... and the deleted line 'magically' reappears in /var/lib/nfs/rmtab

James Pearson

Quoted 177 lines · mehta kiran

hi James ,
it did not help.
Enmtry in rmtab file is still used.
thanks for ur reply,
kiran

Quoted 12 lines · --- James Pearson

Did you do 'mount -t nfsd nfsd /proc/fs/nfsd' before starting all the nfs daemons?

James Pearson

Quoted 5 lines · mehta kiran

I am using 2.6 kernel
--- mehta kiran <[email protected]> wrote:

Quoted 51 lines
Quoted 2 lines
Quoted 2 lines

Hi ,
if handle supplied by client is

sufficient

Quoted 46 lines
Quoted 46 lines

,
then why does the problem given below exists.

1. export filesystem to client.
2. let client allow to mount it.
3. remove all entries from rmtab on server.
4. restart all nfs daemons.
5. Now if client access filesystem , it gets
permission denied error.Client can access
filesystem only after remounting it.
6. This show that mountd still uses rmtab to
check if client had mounted filesystem or not.
No entry in rmtab for a client means it has not
mounted filesystem.

thanks,
--kiran

--- Paul Clements <[email protected]>

Quoted 9 lines · wrote:
Quoted 3 lines · mehta kiran

Isn't handle supplied by client
enough to verify clients access to
filesystem.?

Yes, it should be. That's why in 2.6, the rmtab

file

Quoted 9 lines

is no longer relied upon. Instead, there is a special filesystem, /proc/fs/nfsd, that allows the kernel to communicate with mountd in order to authenticate unrecognized clients automatically.

--
Paul

-------------------------------------------------------

Quoted 4 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

This SF.Net email is sponsored by: IntelliVIEW --
Interactive Reporting
Tool for open source databases. Create

Quoted 25 lines

drag-&-drop

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

reports. Save time
by over 75%! Publish reports on the web. Export

to

Quoted 18 lines
Quoted 16 lines
Quoted 7 lines

DOC, XLS, RTF, etc.
Download a FREE copy at
http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

__________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail

-------------------------------------------------------

Quoted 17 lines
Quoted 17 lines
Quoted 12 lines

This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at
http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

Quoted 7 lines
Quoted 6 lines

__________________________________ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com

-------------------------------------------------------

Quoted 8 lines
Quoted 1 line

This SF.Net email is sponsored by: IntelliVIEW --

Interactive Reporting

Quoted 1 line

Tool for open source databases. Create drag-&-drop

reports. Save time

Quoted 16 lines
Quoted 1 line

by over 75%! Publish reports on the web. Export to

DOC, XLS, RTF, etc.

Quoted 1 line

Download a FREE copy at

http://www.intelliview.com/go/osdn_nl

Quoted 4 lines

_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

-------------------------------------------------------

Quoted 12 lines

This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at
http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Quoted 9 lines

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#9 lore raw

Hi James ,
I am working on suse box.(2.6 kernel).
You mounted nfsd filesystem and then
you ran a script /etc/init.d/nfs.

Does this script starts and kills all nfs
daemons.? Can u verify whether it kills
mountd or not.?

If mountd is not killed everthing works fine. because it is mountd which reads rmtab.If it is not restarted , it has all its data intact and hence wont read rmtab.Thus , removing entry from rmtab wont cause any problem.

thanks,
--kiran

Quoted 87 lines · --- James Pearson

What version of nfs-utils are you running?

I've just tried (on a 2.6 kernel Fedora box):

mount -t nfsd nfsd /proc/fs/nfsd
/etc/init.d/nfs start

mount an exported file system on a client

edit /var/lib/nfs/rmtab and removed the line
corresponding to the client

/etc/init.d/nfs stop
/etc/init.d/nfs start

Accessed the mount point on the client - no stale
handle ...

... and the deleted line 'magically' reappears in
/var/lib/nfs/rmtab

James Pearson

Quoted 7 lines · mehta kiran

hi James ,
it did not help.
Enmtry in rmtab file is still used.
thanks for ur reply,
kiran

--- James Pearson <[email protected]>

Quoted 3 lines · wrote:
Quoted 3 lines

Did you do 'mount -t nfsd nfsd /proc/fs/nfsd'

before

Quoted 20 lines
Quoted 20 lines

starting all the
nfs daemons?

James Pearson

Quoted 7 lines · mehta kiran

I am using 2.6 kernel

Quoted 2 lines · --- mehta kiran

Hi ,
if handle supplied by client is

sufficient

Quoted 3 lines
Quoted 3 lines

,
then why does the problem given below exists.

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

1. export filesystem to client.
2. let client allow to mount it.
3. remove all entries from rmtab on server.
4. restart all nfs daemons.
5. Now if client access filesystem , it gets permission denied error.Client can access filesystem only after remounting it.
6. This show that mountd still uses rmtab to check if client had mounted filesystem or not. No entry in rmtab for a client means it has

not

Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines

mounted filesystem.

thanks,
--kiran

--- Paul Clements <[email protected]>

Quoted 9 lines · wrote:
Quoted 3 lines · mehta kiran

Isn't handle supplied by client
enough to verify clients access to
filesystem.?

Yes, it should be. That's why in 2.6, the rmtab

Quoted 19 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

file

Quoted 4 lines

is no longer relied
upon. Instead, there is a special filesystem,
/proc/fs/nfsd, that allows
the kernel to communicate with mountd in order

to

Quoted 10 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines

authenticate
unrecognized clients automatically.

--
Paul

-------------------------------------------------------

Quoted 38 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

This SF.Net email is sponsored by: IntelliVIEW

--

Quoted 34 lines
Quoted 33 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Interactive Reporting
Tool for open source databases. Create

drag-&-drop

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

reports. Save time
by over 75%! Publish reports on the web. Export

to

Quoted 23 lines
Quoted 21 lines
Quoted 5 lines

DOC, XLS, RTF, etc.
Download a FREE copy at
http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]

https://lists.sourceforge.net/lists/listinfo/nfs

Quoted 1 line

__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.

http://promotions.yahoo.com/new_mail

-------------------------------------------------------

Quoted 33 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

This SF.Net email is sponsored by: IntelliVIEW

--

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Interactive Reporting
Tool for open source databases. Create

drag-&-drop

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

reports. Save time
by over 75%! Publish reports on the web. Export

to

Quoted 23 lines
Quoted 22 lines
Quoted 21 lines
Quoted 7 lines

DOC, XLS, RTF, etc.
Download a FREE copy at
http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com

-------------------------------------------------------

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

This SF.Net email is sponsored by: IntelliVIEW --

Interactive Reporting

Quoted 21 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

Tool for open source databases. Create

drag-&-drop

Quoted 4 lines
Quoted 4 lines

reports. Save time

Quoted 1 line

by over 75%! Publish reports on the web. Export

to

Quoted 13 lines
Quoted 13 lines

DOC, XLS, RTF, etc.

Quoted 1 line

Download a FREE copy at

http://www.intelliview.com/go/osdn_nl

Quoted 4 lines

_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

=== message truncated ===

__________________________________
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#10 lore raw

'/etc/init.d/nfs stop' on Redhat/Fedora boxes kills mountd

What order does exportfs, nfsd and mountd get started or your system?

On my box it is:

exportfs
nfsd
mountd

However, if I run exportfs after mountd, then I get a stale NFS file handle

James Pearson

Quoted 241 lines · mehta kiran

Hi James ,
I am working on suse box.(2.6 kernel).
You mounted nfsd filesystem and then
you ran a script /etc/init.d/nfs.

Does this script starts and kills all nfs
daemons.? Can u verify whether it kills
mountd or not.?

If mountd is not killed everthing works fine. because it is mountd which reads rmtab.If it is not restarted , it has all its data intact and hence wont read rmtab.Thus , removing entry from rmtab wont cause any problem.

thanks,
--kiran

Quoted 97 lines · --- James Pearson

What version of nfs-utils are you running?

I've just tried (on a 2.6 kernel Fedora box):

mount -t nfsd nfsd /proc/fs/nfsd
/etc/init.d/nfs start

mount an exported file system on a client

edit /var/lib/nfs/rmtab and removed the line
corresponding to the client

/etc/init.d/nfs stop
/etc/init.d/nfs start

Accessed the mount point on the client - no stale
handle ...

... and the deleted line 'magically' reappears in
/var/lib/nfs/rmtab

James Pearson

Quoted 7 lines · mehta kiran

hi James ,
it did not help.
Enmtry in rmtab file is still used.
thanks for ur reply,
kiran

--- James Pearson <[email protected]>

Quoted 2 lines · wrote:
Quoted 2 lines

Did you do 'mount -t nfsd nfsd /proc/fs/nfsd'

before

Quoted 22 lines
Quoted 22 lines

starting all the nfs daemons?

James Pearson

Quoted 8 lines · mehta kiran

I am using 2.6 kernel

Quoted 2 lines · --- mehta kiran

Hi ,
if handle supplied by client is

sufficient

Quoted 3 lines
Quoted 3 lines

,
then why does the problem given below exists.

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

1. export filesystem to client.
2. let client allow to mount it.
3. remove all entries from rmtab on server.
4. restart all nfs daemons.
5. Now if client access filesystem , it gets permission denied error.Client can access filesystem only after remounting it.
6. This show that mountd still uses rmtab to check if client had mounted filesystem or not. No entry in rmtab for a client means it has

not

Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines

mounted filesystem.

thanks,
--kiran

--- Paul Clements <[email protected]>

Quoted 10 lines · wrote:
Quoted 3 lines · mehta kiran

Isn't handle supplied by client
enough to verify clients access to
filesystem.?

Yes, it should be. That's why in 2.6, the rmtab

Quoted 17 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

file

Quoted 2 lines

is no longer relied upon. Instead, there is a special filesystem, /proc/fs/nfsd, that allows the kernel to communicate with mountd in order

to

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines

authenticate unrecognized clients automatically.

--
Paul

-------------------------------------------------------

Quoted 36 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

This SF.Net email is sponsored by: IntelliVIEW

--

Quoted 32 lines
Quoted 32 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Interactive Reporting
Tool for open source databases. Create

drag-&-drop

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

reports. Save time
by over 75%! Publish reports on the web. Export

to

Quoted 20 lines
Quoted 18 lines
Quoted 5 lines

DOC, XLS, RTF, etc.
Download a FREE copy at
http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]

https://lists.sourceforge.net/lists/listinfo/nfs

__________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we.

http://promotions.yahoo.com/new_mail

-------------------------------------------------------

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

This SF.Net email is sponsored by: IntelliVIEW

--

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Interactive Reporting
Tool for open source databases. Create

Quoted 26 lines

drag-&-drop

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

reports. Save time
by over 75%! Publish reports on the web. Export

to

Quoted 19 lines
Quoted 19 lines
Quoted 18 lines
Quoted 7 lines

DOC, XLS, RTF, etc.
Download a FREE copy at
http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

__________________________________ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com

-------------------------------------------------------

Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 1 line

This SF.Net email is sponsored by: IntelliVIEW --

Interactive Reporting

Quoted 1 line

Tool for open source databases. Create

Quoted 23 lines

drag-&-drop

Quoted 4 lines
Quoted 4 lines

reports. Save time

Quoted 1 line

by over 75%! Publish reports on the web. Export

to

Quoted 14 lines
Quoted 14 lines

DOC, XLS, RTF, etc.

Quoted 1 line

Download a FREE copy at

http://www.intelliview.com/go/osdn_nl

Quoted 4 lines

_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

Quoted 8 lines

=== message truncated ===

__________________________________ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#11 lore raw

Hi James ,
order is : nfsd , mountd , exportfs.

Important thing is exportfs should be after nfsd .
Now i have seen that everything works fine with RED Hat as you have said.

Problem is with Suse server

thanks ,

Quoted 149 lines · --- James Pearson

'/etc/init.d/nfs stop' on Redhat/Fedora boxes kills mountd

What order does exportfs, nfsd and mountd get
started or your system?

On my box it is:

exportfs
nfsd
mountd

However, if I run exportfs after mountd, then I get a stale NFS file handle

James Pearson

Quoted 10 lines · mehta kiran

Hi James ,
I am working on suse box.(2.6 kernel).
You mounted nfsd filesystem and then
you ran a script /etc/init.d/nfs.

Does this script starts and kills all nfs
daemons.? Can u verify whether it kills
mountd or not.?

If mountd is not killed everthing works

fine.

Quoted 1 line

because it is mountd which reads rmtab.If

it

Quoted 1 line

is not restarted , it has all its data

intact

Quoted 8 lines

and hence wont read rmtab.Thus , removing
entry from rmtab wont cause any problem.

thanks,
--kiran

--- James Pearson <[email protected]>

Quoted 52 lines · wrote:
Quoted 52 lines

What version of nfs-utils are you running?

I've just tried (on a 2.6 kernel Fedora box):

mount -t nfsd nfsd /proc/fs/nfsd
/etc/init.d/nfs start

mount an exported file system on a client

edit /var/lib/nfs/rmtab and removed the line
corresponding to the client

/etc/init.d/nfs stop
/etc/init.d/nfs start

Accessed the mount point on the client - no stale
handle ...

... and the deleted line 'magically' reappears in
/var/lib/nfs/rmtab

James Pearson

Quoted 7 lines · mehta kiran

hi James ,
it did not help.
Enmtry in rmtab file is still used.
thanks for ur reply,
kiran

--- James Pearson <[email protected]>

Quoted 2 lines · wrote:
Quoted 2 lines

Did you do 'mount -t nfsd nfsd /proc/fs/nfsd'

before

Quoted 10 lines
Quoted 10 lines

starting all the
nfs daemons?

James Pearson

Quoted 2 lines · mehta kiran

I am using 2.6 kernel
--- mehta kiran <[email protected]>

Quoted 13 lines · wrote:
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 6 lines
Quoted 6 lines

Hi ,
if handle supplied by client is

sufficient

Quoted 3 lines
Quoted 3 lines

,
then why does the problem given below exists.

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

1. export filesystem to client.
2. let client allow to mount it.
3. remove all entries from rmtab on server.
4. restart all nfs daemons.
5. Now if client access filesystem , it gets permission denied error.Client can access filesystem only after remounting it.
6. This show that mountd still uses rmtab to check if client had mounted filesystem or

not.

Quoted 20 lines
Quoted 20 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

No entry in rmtab for a client means it has

not

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines

mounted filesystem.

thanks,
--kiran

--- Paul Clements <[email protected]>

Quoted 5 lines · wrote:

mehta kiran wrote:

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

Isn't handle supplied by client
enough to verify clients access to
filesystem.?

Yes, it should be. That's why in 2.6, the

rmtab

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

file

Quoted 19 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

is no longer relied
upon. Instead, there is a special filesystem,
/proc/fs/nfsd, that allows
the kernel to communicate with mountd in

order

Quoted 13 lines
Quoted 12 lines

to

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines

authenticate
unrecognized clients automatically.

--
Paul

-------------------------------------------------------

Quoted 9 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

This SF.Net email is sponsored by:

IntelliVIEW

Quoted 6 lines
Quoted 6 lines

--

Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Interactive Reporting
Tool for open source databases. Create

Quoted 27 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

drag-&-drop

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

reports. Save time
by over 75%! Publish reports on the web.

Export

Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines

to

Quoted 16 lines
Quoted 6 lines
Quoted 3 lines

DOC, XLS, RTF, etc.
Download a FREE copy at
http://www.intelliview.com/go/osdn_nl

_______________________________________________

Quoted 1 line

NFS maillist - [email protected]

https://lists.sourceforge.net/lists/listinfo/nfs

Quoted 7 lines

__________________________________
Do you Yahoo!?

=== message truncated ===

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#12 lore raw
In reply to James Pearson

Hi James ,
order is : nfsd , mountd , exportfs.

Important thing is exportfs should be after nfsd .
Now i have seen that everything works fine with RED Hat as you have said.

Problem is with Suse server

thanks ,

Quoted 149 lines · --- James Pearson

'/etc/init.d/nfs stop' on Redhat/Fedora boxes kills mountd

What order does exportfs, nfsd and mountd get
started or your system?

On my box it is:

exportfs
nfsd
mountd

However, if I run exportfs after mountd, then I get a stale NFS file handle

James Pearson

Quoted 10 lines · mehta kiran

Hi James ,
I am working on suse box.(2.6 kernel).
You mounted nfsd filesystem and then
you ran a script /etc/init.d/nfs.

Does this script starts and kills all nfs
daemons.? Can u verify whether it kills
mountd or not.?

If mountd is not killed everthing works

fine.

Quoted 1 line

because it is mountd which reads rmtab.If

it

Quoted 1 line

is not restarted , it has all its data

intact

Quoted 8 lines

and hence wont read rmtab.Thus , removing
entry from rmtab wont cause any problem.

thanks,
--kiran

--- James Pearson <[email protected]>

Quoted 52 lines · wrote:
Quoted 52 lines

What version of nfs-utils are you running?

I've just tried (on a 2.6 kernel Fedora box):

mount -t nfsd nfsd /proc/fs/nfsd
/etc/init.d/nfs start

mount an exported file system on a client

edit /var/lib/nfs/rmtab and removed the line
corresponding to the client

/etc/init.d/nfs stop
/etc/init.d/nfs start

Accessed the mount point on the client - no stale
handle ...

... and the deleted line 'magically' reappears in
/var/lib/nfs/rmtab

James Pearson

Quoted 7 lines · mehta kiran

hi James ,
it did not help.
Enmtry in rmtab file is still used.
thanks for ur reply,
kiran

--- James Pearson <[email protected]>

Quoted 2 lines · wrote:
Quoted 2 lines

Did you do 'mount -t nfsd nfsd /proc/fs/nfsd'

before

Quoted 10 lines
Quoted 10 lines

starting all the
nfs daemons?

James Pearson

Quoted 2 lines · mehta kiran

I am using 2.6 kernel
--- mehta kiran <[email protected]>

Quoted 13 lines · wrote:
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 6 lines
Quoted 6 lines

Hi ,
if handle supplied by client is

sufficient

Quoted 3 lines
Quoted 3 lines

,
then why does the problem given below exists.

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

1. export filesystem to client.
2. let client allow to mount it.
3. remove all entries from rmtab on server.
4. restart all nfs daemons.
5. Now if client access filesystem , it gets permission denied error.Client can access filesystem only after remounting it.
6. This show that mountd still uses rmtab to check if client had mounted filesystem or

not.

Quoted 20 lines
Quoted 20 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

No entry in rmtab for a client means it has

not

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines

mounted filesystem.

thanks,
--kiran

--- Paul Clements <[email protected]>

Quoted 5 lines · wrote:

mehta kiran wrote:

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

Isn't handle supplied by client
enough to verify clients access to
filesystem.?

Yes, it should be. That's why in 2.6, the

rmtab

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

file

Quoted 19 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

is no longer relied
upon. Instead, there is a special filesystem,
/proc/fs/nfsd, that allows
the kernel to communicate with mountd in

order

Quoted 13 lines
Quoted 12 lines

to

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines

authenticate
unrecognized clients automatically.

--
Paul

-------------------------------------------------------

Quoted 9 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

This SF.Net email is sponsored by:

IntelliVIEW

Quoted 6 lines
Quoted 6 lines

--

Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Interactive Reporting
Tool for open source databases. Create

Quoted 27 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

drag-&-drop

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

reports. Save time
by over 75%! Publish reports on the web.

Export

Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines

to

Quoted 16 lines
Quoted 6 lines
Quoted 3 lines

DOC, XLS, RTF, etc.
Download a FREE copy at
http://www.intelliview.com/go/osdn_nl

_______________________________________________

Quoted 1 line

NFS maillist - [email protected]

https://lists.sourceforge.net/lists/listinfo/nfs

Quoted 7 lines

__________________________________
Do you Yahoo!?

=== message truncated ===

__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#13 lore raw
In reply to James Pearson

hi ,

         I am using  nfs-utils-1.0.6-103.11

thanks,
kiran

Quoted 87 lines · --- James Pearson

What version of nfs-utils are you running?

I've just tried (on a 2.6 kernel Fedora box):

mount -t nfsd nfsd /proc/fs/nfsd
/etc/init.d/nfs start

mount an exported file system on a client

edit /var/lib/nfs/rmtab and removed the line
corresponding to the client

/etc/init.d/nfs stop
/etc/init.d/nfs start

Accessed the mount point on the client - no stale
handle ...

... and the deleted line 'magically' reappears in
/var/lib/nfs/rmtab

James Pearson

Quoted 7 lines · mehta kiran

hi James ,
it did not help.
Enmtry in rmtab file is still used.
thanks for ur reply,
kiran

--- James Pearson <[email protected]>

Quoted 3 lines · wrote:
Quoted 3 lines

Did you do 'mount -t nfsd nfsd /proc/fs/nfsd'

before

Quoted 20 lines
Quoted 20 lines

starting all the
nfs daemons?

James Pearson

Quoted 7 lines · mehta kiran

I am using 2.6 kernel

Quoted 2 lines · --- mehta kiran

Hi ,
if handle supplied by client is

sufficient

Quoted 3 lines
Quoted 3 lines

,
then why does the problem given below exists.

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

1. export filesystem to client.
2. let client allow to mount it.
3. remove all entries from rmtab on server.
4. restart all nfs daemons.
5. Now if client access filesystem , it gets permission denied error.Client can access filesystem only after remounting it.
6. This show that mountd still uses rmtab to check if client had mounted filesystem or not. No entry in rmtab for a client means it has

not

Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines

mounted filesystem.

thanks,
--kiran

--- Paul Clements <[email protected]>

Quoted 9 lines · wrote:
Quoted 3 lines · mehta kiran

Isn't handle supplied by client
enough to verify clients access to
filesystem.?

Yes, it should be. That's why in 2.6, the rmtab

Quoted 19 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

file

Quoted 4 lines

is no longer relied
upon. Instead, there is a special filesystem,
/proc/fs/nfsd, that allows
the kernel to communicate with mountd in order

to

Quoted 10 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines

authenticate
unrecognized clients automatically.

--
Paul

-------------------------------------------------------

Quoted 38 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

This SF.Net email is sponsored by: IntelliVIEW

--

Quoted 34 lines
Quoted 33 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Interactive Reporting
Tool for open source databases. Create

drag-&-drop

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

reports. Save time
by over 75%! Publish reports on the web. Export

to

Quoted 23 lines
Quoted 21 lines
Quoted 5 lines

DOC, XLS, RTF, etc.
Download a FREE copy at
http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]

https://lists.sourceforge.net/lists/listinfo/nfs

Quoted 1 line

__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.

http://promotions.yahoo.com/new_mail

-------------------------------------------------------

Quoted 33 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

This SF.Net email is sponsored by: IntelliVIEW

--

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Interactive Reporting
Tool for open source databases. Create

drag-&-drop

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

reports. Save time
by over 75%! Publish reports on the web. Export

to

Quoted 23 lines
Quoted 22 lines
Quoted 21 lines
Quoted 7 lines

DOC, XLS, RTF, etc.
Download a FREE copy at
http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com

-------------------------------------------------------

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

This SF.Net email is sponsored by: IntelliVIEW --

Interactive Reporting

Quoted 21 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

Tool for open source databases. Create

drag-&-drop

Quoted 4 lines
Quoted 4 lines

reports. Save time

Quoted 1 line

by over 75%! Publish reports on the web. Export

to

Quoted 13 lines
Quoted 13 lines

DOC, XLS, RTF, etc.

Quoted 1 line

Download a FREE copy at

http://www.intelliview.com/go/osdn_nl

Quoted 4 lines

_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

=== message truncated ===

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#14 lore raw
In reply to James Pearson

Hi James ,
I know that if there is no entry for particualr client in rmtab (due to whatever reasons) it gets permission denied error because mountd verifies clients access to filesystem using rmtab. But what i want to know is why does mountd
use rmtab ? Isn't handle supplied by client enough to verify clients access to filesystem.?

I have seen that server uses entry from
rmtab only once when client access filesystem (after server restart).Later if entry from rmtab is removed client is still able to access filesystem without any problem.

thanks ,
--kiran

Quoted 27 lines · --- James Pearson
Quoted 11 lines · mehta kiran

Hi ,
In mountd man page , it written that rmtab is ornamental and client can contiune to use filesystem even after calling umount for that filesystem.

Is there any real use of this rmtab file ?
Does mountd use this file to know the
clients having access to filesystem ?
If yes , isn,t filehandle supplied by
client enough to prove that client has

access

Quoted 1 line

to filesystem. ?

On 2.4 kernels it is not 'ornamental' - if the server reboots without an
entry for a client mount in /var/lib/nfs/rmtab, then the client will get
a stale NFS file handle when the server reboots. This can happen if
umount fails e.g. the mount point is busy - rpc.mountd on the server
removes the entry from /var/lib/nfs/rmtab, but umount fails, so the file
system remains mounted.

Quoted 4 lines

I believe the situation has changed with 2.6.

James Pearson

__________________________________
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#15 lore raw
In reply to James Pearson

Or is it for security reasons , so as to
prevent server from fake client handle.

--thanks,.
--kiran

Quoted 27 lines · --- James Pearson
Quoted 11 lines · mehta kiran

Hi ,
In mountd man page , it written that rmtab is ornamental and client can contiune to use filesystem even after calling umount for that filesystem.

Is there any real use of this rmtab file ?
Does mountd use this file to know the
clients having access to filesystem ?
If yes , isn,t filehandle supplied by
client enough to prove that client has

access

Quoted 1 line

to filesystem. ?

On 2.4 kernels it is not 'ornamental' - if the server reboots without an
entry for a client mount in /var/lib/nfs/rmtab, then the client will get
a stale NFS file handle when the server reboots. This can happen if
umount fails e.g. the mount point is busy - rpc.mountd on the server
removes the entry from /var/lib/nfs/rmtab, but umount fails, so the file
system remains mounted.

Quoted 4 lines

I believe the situation has changed with 2.6.

James Pearson

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs