RE: [expert] NFS permissions

2002-12-13 Thread Brian Parish
Just to finish this one off - never could get that export to mount
again.  In the end I decided that I'd like to change the filesystem it
was using anyway, so copied the data, made the partition again, copied
back and mounted it under a different mount point.  Now it exports just
fine.  Beats me what was wrong.

cheers
Brian

On Fri, 2002-12-06 at 00:26, Bill Shirley wrote:
> I don't know if it will fix it, but try re-booting after removing
> the entry.
> 
> Bill
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Brian Parish
> > Sent: Thursday, December 05, 2002 6:48 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [expert] NFS permissions
> >
> >
> > Thanks for that Bill, but removing the entry from rmtab made no
> > difference.
> >
> > regards
> > Brian
> >
> > On Thu, 2002-12-05 at 14:15, Bill Shirley wrote:
> > > Look at the files in /var/lib/nfs and edit the one that has the
> > > incorrect entry (rmtab, I think).
> > >
> > > Bill Shirley
> > >
> > >
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Brian Parish
> > > > Sent: Tuesday, December 03, 2002 6:15 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: [expert] NFS permissions
> > > >
> > > >
> > > > showmount just showed everything exported to everyone.  I have now
> > > > removed the /data export and rebooted everything to see
> > what happens.
> > > > After this:
> > > >
> > > > # showmount -e server
> > > > Export list for server:
> > > > /public (everyone)
> > > > /home/brian (everyone)
> > > > and some more
> > > >
> > > > # showmount -a server
> > > > All mount points on server:
> > > > 192.168.0.253:/data
> > > > 192.168.0.253:/home/brian
> > > > 192.168.0.253:/public
> > > > and some more
> > > >
> > > > /data still shows up on the -a list (but not on the -e list) after
> > > > having been removed from exports and the server (and clients)
> > > > rebooted.
> > > > ...and of course if I put it back in exports and attempt to
> > > > mount it, I
> > > > get the same permissions error.
> > > >
> > > > Explicitly adding hostnames or networks in exports makes no
> > > > difference.
> > > >
> > > > Seems like the /data export has been somehow corrupted in
> > a way which
> > > > persists between reboots.  Is there some sort of cache on
> > > > disk somewhere
> > > > that needs to be flushed?
> > > >
> > > > I imagine that if I remounted the /data partition under
> > another mount
> > > > point and exported that, everything would work, but that's
> > > > just avoiding
> > > > the problem rather than understanding it, so I'd like to
> > persevere for
> > > > the moment.
> > > >
> > > > thanks for the interest!
> > > >
> > > > Brian
> > > >
> > > > On Wed, 2002-12-04 at 01:10, Tru64 User wrote:
> > > > > Check using "showmount -e systemname" and see which
> > > > > files are expported to what hosts.
> > > > > Seems like its having problems with perms.(but u
> > > > > said others look same way and they work?)
> > > > > Let us know what u find out.
> > > > > Otherwise add /data hostname(rw),hostname(rw)
> > > > >
> > > > > _Thanks
> > > > >
> > > > > Richard
> > > > >
> > > > > --- Brian Parish <[EMAIL PROTECTED]> wrote:
> > > > > > This evening I found an export from my server no
> > > > > > longer available.
> > > > > >
> > > > > > # mount -a
> > > > > > mount: server:/data failed, reason given by server:
> > > > > > Permission denied
> > > > > >
> > > > > > The server log shows:
> > > > > >
> > > > > > Dec  3 23:50:51 cnc-server rpc.mountd: authenticated
> > > > > > mount request from
> > > > > > 192.168.0.253:709 for /data (/data)
> > > > > > Dec  3 23:50:51 cnc-server rpc.mou

Re: [expert] NFS permissions

2002-12-05 Thread Todd Lyons
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Alex Bennee wrote on Thu, Dec 05, 2002 at 02:13:37PM + :
> 
> Rebooting should never be necessary on Linux, thats windows talk. A lot
> of services will re-read config if you send them a SIGHUP (kill -s
> SIGHUP pid). The nuclear option is to restart the service manually
> (/etc/init.d/nfs restart)

There are exceptions, one of which is nfs.  If you are on a client that
has mounted an NFS export from the NFS server and the server goes down
and have not specified that it's a soft mount, you might as well reboot
the client.

The other notable exception is if supermount hangs on you.  You can
unload the module, you can't see new CD's, you can't do anything with
removable media.

See the pattern here?  Anytime a bug causes something to die or hang in
userspace, you just kill it off and restart it.  Anytime a bug causes
something to die or hang in kernelspace, the system is at best partially
disabled, most likely unstable and approaching unusable, or at worst
OOPSes and halts.

Blue skies...   Todd
- -- 
...and I will strike down upon thee with great vengeance and furious
 anger, those who attempt to poison and destroy my binaries, and you 
will know my name is root, when I lay my vengeance upon thee.
   Cooker Version mandrake-release-9.1-0.1mdk Kernel 2.4.20-1mdk
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE975Ujlp7v05cW2woRAhCUAJ9A8PXMDfXIQiSgJS49X72ReMfZSACfdo42
ywhA5OT0DvDsNxGgI1PN+lE=
=7qxD
-END PGP SIGNATURE-


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



RE: [expert] NFS permissions

2002-12-05 Thread Alex Bennee
On Thu, 2002-12-05 at 13:26, Bill Shirley wrote:
> I don't know if it will fix it, but try re-booting after removing
> the entry.

Rebooting should never be necessary on Linux, thats windows talk. A lot
of services will re-read config if you send them a SIGHUP (kill -s
SIGHUP pid). The nuclear option is to restart the service manually
(/etc/init.d/nfs restart)



> Bill
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Brian Parish
> > Sent: Thursday, December 05, 2002 6:48 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [expert] NFS permissions
> >
> >
> > Thanks for that Bill, but removing the entry from rmtab made no
> > difference.
> >
> > regards
> > Brian
> >
> > On Thu, 2002-12-05 at 14:15, Bill Shirley wrote:
> > > Look at the files in /var/lib/nfs and edit the one that has the
> > > incorrect entry (rmtab, I think).
> > >
> > > Bill Shirley
> > >
> > >
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Brian Parish
> > > > Sent: Tuesday, December 03, 2002 6:15 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: [expert] NFS permissions
> > > >
> > > >
> > > > showmount just showed everything exported to everyone.  I have now
> > > > removed the /data export and rebooted everything to see
> > what happens.
> > > > After this:
> > > >
> > > > # showmount -e server
> > > > Export list for server:
> > > > /public (everyone)
> > > > /home/brian (everyone)
> > > > and some more
> > > >
> > > > # showmount -a server
> > > > All mount points on server:
> > > > 192.168.0.253:/data
> > > > 192.168.0.253:/home/brian
> > > > 192.168.0.253:/public
> > > > and some more
> > > >
> > > > /data still shows up on the -a list (but not on the -e list) after
> > > > having been removed from exports and the server (and clients)
> > > > rebooted.
> > > > ...and of course if I put it back in exports and attempt to
> > > > mount it, I
> > > > get the same permissions error.
> > > >
> > > > Explicitly adding hostnames or networks in exports makes no
> > > > difference.
> > > >
> > > > Seems like the /data export has been somehow corrupted in
> > a way which
> > > > persists between reboots.  Is there some sort of cache on
> > > > disk somewhere
> > > > that needs to be flushed?
> > > >
> > > > I imagine that if I remounted the /data partition under
> > another mount
> > > > point and exported that, everything would work, but that's
> > > > just avoiding
> > > > the problem rather than understanding it, so I'd like to
> > persevere for
> > > > the moment.
> > > >
> > > > thanks for the interest!
> > > >
> > > > Brian
> > > >
> > > > On Wed, 2002-12-04 at 01:10, Tru64 User wrote:
> > > > > Check using "showmount -e systemname" and see which
> > > > > files are expported to what hosts.
> > > > > Seems like its having problems with perms.(but u
> > > > > said others look same way and they work?)
> > > > > Let us know what u find out.
> > > > > Otherwise add /data hostname(rw),hostname(rw)
> > > > >
> > > > > _Thanks
> > > > >
> > > > > Richard
> > > > >
> > > > > --- Brian Parish <[EMAIL PROTECTED]> wrote:
> > > > > > This evening I found an export from my server no
> > > > > > longer available.
> > > > > >
> > > > > > # mount -a
> > > > > > mount: server:/data failed, reason given by server:
> > > > > > Permission denied
> > > > > >
> > > > > > The server log shows:
> > > > > >
> > > > > > Dec  3 23:50:51 cnc-server rpc.mountd: authenticated
> > > > > > mount request from
> > > > > > 192.168.0.253:709 for /data (/data)
> > > > > > Dec  3 23:50:51 cnc-server rpc.mountd: getfh failed:

RE: [expert] NFS permissions

2002-12-05 Thread Bill Shirley
I don't know if it will fix it, but try re-booting after removing
the entry.

Bill


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Brian Parish
> Sent: Thursday, December 05, 2002 6:48 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [expert] NFS permissions
>
>
> Thanks for that Bill, but removing the entry from rmtab made no
> difference.
>
> regards
> Brian
>
> On Thu, 2002-12-05 at 14:15, Bill Shirley wrote:
> > Look at the files in /var/lib/nfs and edit the one that has the
> > incorrect entry (rmtab, I think).
> >
> > Bill Shirley
> >
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of Brian Parish
> > > Sent: Tuesday, December 03, 2002 6:15 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [expert] NFS permissions
> > >
> > >
> > > showmount just showed everything exported to everyone.  I have now
> > > removed the /data export and rebooted everything to see
> what happens.
> > > After this:
> > >
> > > # showmount -e server
> > > Export list for server:
> > > /public (everyone)
> > > /home/brian (everyone)
> > > and some more
> > >
> > > # showmount -a server
> > > All mount points on server:
> > > 192.168.0.253:/data
> > > 192.168.0.253:/home/brian
> > > 192.168.0.253:/public
> > > and some more
> > >
> > > /data still shows up on the -a list (but not on the -e list) after
> > > having been removed from exports and the server (and clients)
> > > rebooted.
> > > ...and of course if I put it back in exports and attempt to
> > > mount it, I
> > > get the same permissions error.
> > >
> > > Explicitly adding hostnames or networks in exports makes no
> > > difference.
> > >
> > > Seems like the /data export has been somehow corrupted in
> a way which
> > > persists between reboots.  Is there some sort of cache on
> > > disk somewhere
> > > that needs to be flushed?
> > >
> > > I imagine that if I remounted the /data partition under
> another mount
> > > point and exported that, everything would work, but that's
> > > just avoiding
> > > the problem rather than understanding it, so I'd like to
> persevere for
> > > the moment.
> > >
> > > thanks for the interest!
> > >
> > > Brian
> > >
> > > On Wed, 2002-12-04 at 01:10, Tru64 User wrote:
> > > > Check using "showmount -e systemname" and see which
> > > > files are expported to what hosts.
> > > > Seems like its having problems with perms.(but u
> > > > said others look same way and they work?)
> > > > Let us know what u find out.
> > > > Otherwise add /data hostname(rw),hostname(rw)
> > > >
> > > > _Thanks
> > > >
> > > > Richard
> > > >
> > > > --- Brian Parish <[EMAIL PROTECTED]> wrote:
> > > > > This evening I found an export from my server no
> > > > > longer available.
> > > > >
> > > > > # mount -a
> > > > > mount: server:/data failed, reason given by server:
> > > > > Permission denied
> > > > >
> > > > > The server log shows:
> > > > >
> > > > > Dec  3 23:50:51 cnc-server rpc.mountd: authenticated
> > > > > mount request from
> > > > > 192.168.0.253:709 for /data (/data)
> > > > > Dec  3 23:50:51 cnc-server rpc.mountd: getfh failed:
> > > > > Operation not
> > > > > permitted
> > > > >
> > > > > The line in /etc/exports says:
> > > > >
> > > > > /data   (rw)
> > > > >
> > > > > Permissions and ownership of the directory are as
> > > > > they were and
> > > > > identical with other exported filesystems.  All the
> > > > > other are working.
> > > > >
> > > > > The security level here is Standard (this is mdk
> > > > > 9.0)
> > > > >
> > > > > Any ideas out there on where to look?
> > > > >
> > > > > TIA
> > > > > Brian
> > > > >
> > > > >
> > > > >
> > > > > > Want to buy your Pack or Services from
> > > > MandrakeSoft?
> > > > >
> > > > > Go to http://www.mandrakestore.com
> > > > >
> > > >
> > > >
> > > > =
> > > >
> > > >
> > > > __
> > > > Do you Yahoo!?
> > > > Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> > > > http://mailplus.yahoo.com
> > > >
> > > >
> > > >
> > >
> __
> > > >
> > > > Want to buy your Pack or Services from MandrakeSoft?
> > > > Go to http://www.mandrakestore.com
> > > --
> > > Brian Parish <[EMAIL PROTECTED]>
> > >
> > >
> > >
> >
> >
> >
> >
> __
> >
> > Want to buy your Pack or Services from MandrakeSoft?
> > Go to http://www.mandrakestore.com
> --
> Brian Parish <[EMAIL PROTECTED]>
>
>
>



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



RE: [expert] NFS permissions

2002-12-05 Thread Brian Parish
Thanks for that Bill, but removing the entry from rmtab made no
difference.

regards
Brian

On Thu, 2002-12-05 at 14:15, Bill Shirley wrote:
> Look at the files in /var/lib/nfs and edit the one that has the
> incorrect entry (rmtab, I think).
> 
> Bill Shirley
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Brian Parish
> > Sent: Tuesday, December 03, 2002 6:15 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [expert] NFS permissions
> >
> >
> > showmount just showed everything exported to everyone.  I have now
> > removed the /data export and rebooted everything to see what happens.
> > After this:
> >
> > # showmount -e server
> > Export list for server:
> > /public (everyone)
> > /home/brian (everyone)
> > and some more
> >
> > # showmount -a server
> > All mount points on server:
> > 192.168.0.253:/data
> > 192.168.0.253:/home/brian
> > 192.168.0.253:/public
> > and some more
> >
> > /data still shows up on the -a list (but not on the -e list) after
> > having been removed from exports and the server (and clients)
> > rebooted.
> > ...and of course if I put it back in exports and attempt to
> > mount it, I
> > get the same permissions error.
> >
> > Explicitly adding hostnames or networks in exports makes no
> > difference.
> >
> > Seems like the /data export has been somehow corrupted in a way which
> > persists between reboots.  Is there some sort of cache on
> > disk somewhere
> > that needs to be flushed?
> >
> > I imagine that if I remounted the /data partition under another mount
> > point and exported that, everything would work, but that's
> > just avoiding
> > the problem rather than understanding it, so I'd like to persevere for
> > the moment.
> >
> > thanks for the interest!
> >
> > Brian
> >
> > On Wed, 2002-12-04 at 01:10, Tru64 User wrote:
> > > Check using "showmount -e systemname" and see which
> > > files are expported to what hosts.
> > > Seems like its having problems with perms.(but u
> > > said others look same way and they work?)
> > > Let us know what u find out.
> > > Otherwise add /data hostname(rw),hostname(rw)
> > >
> > > _Thanks
> > >
> > > Richard
> > >
> > > --- Brian Parish <[EMAIL PROTECTED]> wrote:
> > > > This evening I found an export from my server no
> > > > longer available.
> > > >
> > > > # mount -a
> > > > mount: server:/data failed, reason given by server:
> > > > Permission denied
> > > >
> > > > The server log shows:
> > > >
> > > > Dec  3 23:50:51 cnc-server rpc.mountd: authenticated
> > > > mount request from
> > > > 192.168.0.253:709 for /data (/data)
> > > > Dec  3 23:50:51 cnc-server rpc.mountd: getfh failed:
> > > > Operation not
> > > > permitted
> > > >
> > > > The line in /etc/exports says:
> > > >
> > > > /data   (rw)
> > > >
> > > > Permissions and ownership of the directory are as
> > > > they were and
> > > > identical with other exported filesystems.  All the
> > > > other are working.
> > > >
> > > > The security level here is Standard (this is mdk
> > > > 9.0)
> > > >
> > > > Any ideas out there on where to look?
> > > >
> > > > TIA
> > > > Brian
> > > >
> > > >
> > > >
> > > > > Want to buy your Pack or Services from
> > > MandrakeSoft?
> > > >
> > > > Go to http://www.mandrakestore.com
> > > >
> > >
> > >
> > > =
> > >
> > >
> > > __
> > > Do you Yahoo!?
> > > Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> > > http://mailplus.yahoo.com
> > >
> > >
> > >
> > __
> > >
> > > Want to buy your Pack or Services from MandrakeSoft?
> > > Go to http://www.mandrakestore.com
> > --
> > Brian Parish <[EMAIL PROTECTED]>
> >
> >
> >
> 
> 
> 
> __
> 
> Want to buy your Pack or Services from MandrakeSoft? 
> Go to http://www.mandrakestore.com
-- 
Brian Parish <[EMAIL PROTECTED]>



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



RE: [expert] NFS permissions

2002-12-04 Thread Bill Shirley
Look at the files in /var/lib/nfs and edit the one that has the
incorrect entry (rmtab, I think).

Bill Shirley


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Brian Parish
> Sent: Tuesday, December 03, 2002 6:15 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [expert] NFS permissions
>
>
> showmount just showed everything exported to everyone.  I have now
> removed the /data export and rebooted everything to see what happens.
> After this:
>
> # showmount -e server
> Export list for server:
> /public (everyone)
> /home/brian (everyone)
> and some more
>
> # showmount -a server
> All mount points on server:
> 192.168.0.253:/data
> 192.168.0.253:/home/brian
> 192.168.0.253:/public
> and some more
>
> /data still shows up on the -a list (but not on the -e list) after
> having been removed from exports and the server (and clients)
> rebooted.
> ...and of course if I put it back in exports and attempt to
> mount it, I
> get the same permissions error.
>
> Explicitly adding hostnames or networks in exports makes no
> difference.
>
> Seems like the /data export has been somehow corrupted in a way which
> persists between reboots.  Is there some sort of cache on
> disk somewhere
> that needs to be flushed?
>
> I imagine that if I remounted the /data partition under another mount
> point and exported that, everything would work, but that's
> just avoiding
> the problem rather than understanding it, so I'd like to persevere for
> the moment.
>
> thanks for the interest!
>
> Brian
>
> On Wed, 2002-12-04 at 01:10, Tru64 User wrote:
> > Check using "showmount -e systemname" and see which
> > files are expported to what hosts.
> > Seems like its having problems with perms.(but u
> > said others look same way and they work?)
> > Let us know what u find out.
> > Otherwise add /data hostname(rw),hostname(rw)
> >
> > _Thanks
> >
> > Richard
> >
> > --- Brian Parish <[EMAIL PROTECTED]> wrote:
> > > This evening I found an export from my server no
> > > longer available.
> > >
> > > # mount -a
> > > mount: server:/data failed, reason given by server:
> > > Permission denied
> > >
> > > The server log shows:
> > >
> > > Dec  3 23:50:51 cnc-server rpc.mountd: authenticated
> > > mount request from
> > > 192.168.0.253:709 for /data (/data)
> > > Dec  3 23:50:51 cnc-server rpc.mountd: getfh failed:
> > > Operation not
> > > permitted
> > >
> > > The line in /etc/exports says:
> > >
> > > /data   (rw)
> > >
> > > Permissions and ownership of the directory are as
> > > they were and
> > > identical with other exported filesystems.  All the
> > > other are working.
> > >
> > > The security level here is Standard (this is mdk
> > > 9.0)
> > >
> > > Any ideas out there on where to look?
> > >
> > > TIA
> > > Brian
> > >
> > >
> > >
> > > > Want to buy your Pack or Services from
> > MandrakeSoft?
> > >
> > > Go to http://www.mandrakestore.com
> > >
> >
> >
> > =
> >
> >
> > __
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> > http://mailplus.yahoo.com
> >
> >
> >
> __
> >
> > Want to buy your Pack or Services from MandrakeSoft?
> > Go to http://www.mandrakestore.com
> --
> Brian Parish <[EMAIL PROTECTED]>
>
>
>



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] NFS permissions

2002-12-03 Thread Damon Lynch
I'm seeing a similar problem: when I'm a member of the group, it only
works sometimes (not very often), if I'm the owner, it works all the
time.

Strange.  Worked fine under 8.2.  I authenticate using ypbind.

Damon

On Wed, 2002-12-04 at 12:14, Brian Parish wrote:
> showmount just showed everything exported to everyone.  I have now
> removed the /data export and rebooted everything to see what happens. 
> After this:
> 
> # showmount -e server
> Export list for server:
> /public (everyone)
> /home/brian (everyone)
> and some more
> 
> # showmount -a server
> All mount points on server:
> 192.168.0.253:/data
> 192.168.0.253:/home/brian
> 192.168.0.253:/public
> and some more
> 
> /data still shows up on the -a list (but not on the -e list) after
> having been removed from exports and the server (and clients) rebooted. 
> ...and of course if I put it back in exports and attempt to mount it, I
> get the same permissions error.
> 
> Explicitly adding hostnames or networks in exports makes no difference.
> 
> Seems like the /data export has been somehow corrupted in a way which
> persists between reboots.  Is there some sort of cache on disk somewhere
> that needs to be flushed?
> 
> I imagine that if I remounted the /data partition under another mount
> point and exported that, everything would work, but that's just avoiding
> the problem rather than understanding it, so I'd like to persevere for
> the moment.
> 
> thanks for the interest!
> 
> Brian
> 
> On Wed, 2002-12-04 at 01:10, Tru64 User wrote:
> > Check using "showmount -e systemname" and see which
> > files are expported to what hosts.
> > Seems like its having problems with perms.(but u
> > said others look same way and they work?)
> > Let us know what u find out.
> > Otherwise add /data hostname(rw),hostname(rw)
> > 
> > _Thanks
> > 
> > Richard
> > 
> > --- Brian Parish <[EMAIL PROTECTED]> wrote:
> > > This evening I found an export from my server no
> > > longer available.
> > > 
> > > # mount -a
> > > mount: server:/data failed, reason given by server:
> > > Permission denied
> > > 
> > > The server log shows:
> > > 
> > > Dec  3 23:50:51 cnc-server rpc.mountd: authenticated
> > > mount request from
> > > 192.168.0.253:709 for /data (/data)
> > > Dec  3 23:50:51 cnc-server rpc.mountd: getfh failed:
> > > Operation not
> > > permitted
> > > 
> > > The line in /etc/exports says:
> > > 
> > > /data   (rw)
> > > 
> > > Permissions and ownership of the directory are as
> > > they were and
> > > identical with other exported filesystems.  All the
> > > other are working.
> > > 
> > > The security level here is Standard (this is mdk
> > > 9.0)
> > > 
> > > Any ideas out there on where to look?
> > > 
> > > TIA
> > > Brian
> > > 
> > > 
> > > 
> > > > Want to buy your Pack or Services from
> > MandrakeSoft?
> > > 
> > > Go to http://www.mandrakestore.com
> > > 
> > 
> > 
> > =
> > 
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> > http://mailplus.yahoo.com
> > 
> > 
> > __
> > 
> > Want to buy your Pack or Services from MandrakeSoft? 
> > Go to http://www.mandrakestore.com
-- 
Damon Lynch <[EMAIL PROTECTED]>



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] NFS permissions

2002-12-03 Thread Brian Parish
showmount just showed everything exported to everyone.  I have now
removed the /data export and rebooted everything to see what happens. 
After this:

# showmount -e server
Export list for server:
/public (everyone)
/home/brian (everyone)
and some more

# showmount -a server
All mount points on server:
192.168.0.253:/data
192.168.0.253:/home/brian
192.168.0.253:/public
and some more

/data still shows up on the -a list (but not on the -e list) after
having been removed from exports and the server (and clients) rebooted. 
...and of course if I put it back in exports and attempt to mount it, I
get the same permissions error.

Explicitly adding hostnames or networks in exports makes no difference.

Seems like the /data export has been somehow corrupted in a way which
persists between reboots.  Is there some sort of cache on disk somewhere
that needs to be flushed?

I imagine that if I remounted the /data partition under another mount
point and exported that, everything would work, but that's just avoiding
the problem rather than understanding it, so I'd like to persevere for
the moment.

thanks for the interest!

Brian

On Wed, 2002-12-04 at 01:10, Tru64 User wrote:
> Check using "showmount -e systemname" and see which
> files are expported to what hosts.
> Seems like its having problems with perms.(but u
> said others look same way and they work?)
> Let us know what u find out.
> Otherwise add /data hostname(rw),hostname(rw)
> 
> _Thanks
> 
> Richard
> 
> --- Brian Parish <[EMAIL PROTECTED]> wrote:
> > This evening I found an export from my server no
> > longer available.
> > 
> > # mount -a
> > mount: server:/data failed, reason given by server:
> > Permission denied
> > 
> > The server log shows:
> > 
> > Dec  3 23:50:51 cnc-server rpc.mountd: authenticated
> > mount request from
> > 192.168.0.253:709 for /data (/data)
> > Dec  3 23:50:51 cnc-server rpc.mountd: getfh failed:
> > Operation not
> > permitted
> > 
> > The line in /etc/exports says:
> > 
> > /data   (rw)
> > 
> > Permissions and ownership of the directory are as
> > they were and
> > identical with other exported filesystems.  All the
> > other are working.
> > 
> > The security level here is Standard (this is mdk
> > 9.0)
> > 
> > Any ideas out there on where to look?
> > 
> > TIA
> > Brian
> > 
> > 
> > 
> > > Want to buy your Pack or Services from
> MandrakeSoft?
> > 
> > Go to http://www.mandrakestore.com
> > 
> 
> 
> =
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> 
> 
> __
> 
> Want to buy your Pack or Services from MandrakeSoft? 
> Go to http://www.mandrakestore.com
-- 
Brian Parish <[EMAIL PROTECTED]>



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] NFS permissions

2002-12-03 Thread Tru64 User
Check using "showmount -e systemname" and see which
files are expported to what hosts.
Seems like its having problems with perms.(but u
said others look same way and they work?)
Let us know what u find out.
Otherwise add /data hostname(rw),hostname(rw)

_Thanks

Richard

--- Brian Parish <[EMAIL PROTECTED]> wrote:
> This evening I found an export from my server no
> longer available.
> 
> # mount -a
> mount: server:/data failed, reason given by server:
> Permission denied
> 
> The server log shows:
> 
> Dec  3 23:50:51 cnc-server rpc.mountd: authenticated
> mount request from
> 192.168.0.253:709 for /data (/data)
> Dec  3 23:50:51 cnc-server rpc.mountd: getfh failed:
> Operation not
> permitted
> 
> The line in /etc/exports says:
> 
> /data   (rw)
> 
> Permissions and ownership of the directory are as
> they were and
> identical with other exported filesystems.  All the
> other are working.
> 
> The security level here is Standard (this is mdk
> 9.0)
> 
> Any ideas out there on where to look?
> 
> TIA
> Brian
> 
> 
> 
> > Want to buy your Pack or Services from
MandrakeSoft?
> 
> Go to http://www.mandrakestore.com
> 


=


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] NFS Permissions on Mandrake 8.2

2002-07-05 Thread Todd Lyons

Kayne McGladrey wrote on Tue, Jul 02, 2002 at 06:35:04AM -0700 :
> Hello,
> 
> Didn't know about /var/lib/nfs/xtab, so it isn't what I expected.  Only 
> familliar with fstab.  This xtab must have been automatically generated by 
> something.

by nfs, yes.

> $ cat /var/lib/nfs/xtab
> /home/kmcgladr/images   
> 
>mabeline.localdomain(ro,async,wdelay,hide,secure,root_squash,no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2)

I was about to say that the anonuid and anongid seemed like the problem,
but I don't think so because "root_squash,no_all_squash" means "convert
all access by user root to this anonymous user, but not anybody else".

The "mapping=identity" is not documented in the exports man page, nor is
it in /usr/share/doc/nfs-utils-{version}/*, so I can't say with impunity
what it's doing.

> - I don't know how to check the suid bit.  I do know how to set it, but not 
> how to test for it.

ls -l -d will show you the attributes like this:

[root@fiji ~]# ls -l -d pvmgmake
drwxr-xr-x8 46664users4096 Apr 29 12:20 pvmgmake/
[root@fiji ~]# chmod u+s pvmgmake
[root@fiji ~]# ls -l -d pvmgmake
drwsr-xr-x8 46664users4096 Apr 29 12:20 pvmgmake/

But I don't think that's your problem.  I'm about out of ideas here.
I'll think on it over the weekend.

Blue skies...   Todd
-- 
  Todd Lyons -- MandrakeSoft, Inc.   http://www.mandrakesoft.com/
UNIX was not designed to stop you from doing stupid things, because 
  that would also stop you from doing clever things. -- Doug Gwyn
   Cooker Version mandrake-release-8.3-0.2mdk Kernel 2.4.18-21mdk



msg56066/pgp0.pgp
Description: PGP signature


Re: [expert] NFS Permissions on Mandrake 8.2

2002-07-03 Thread Kayne McGladrey

Hello,

Didn't know about /var/lib/nfs/xtab, so it isn't what I expected.  Only 
familliar with fstab.  This xtab must have been automatically generated by 
something.

$ cat /var/lib/nfs/xtab
/home/kmcgladr/images   
mabeline.localdomain(ro,async,wdelay,hide,secure,root_squash,no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2)
/home/kmcgladr/images   
mabeline.localdomain(ro,async,wdelay,hide,secure,root_squash,no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2)

- I don't know how to check the suid bit.  I do know how to set it, but not 
how to test for it.

from the server:
$ id jennifer
uid=502(jennifer) gid=502(jennifer) 
groups=502(jennifer),100(users),501(kmcgladr)

from the client
$ id jennifer
uid=502(jennifer) gid=502(jennifer) 
groups=502(jennifer),100(users),501(kmcgladr)

- No, I'm not running quotas (to the best of my knowledge).

- Using diskdrake
/home is ext3
/home/kmcgladr/images is listed as "linux native".  Would that be ext2?

I initially tried setting this up using the right-click "Share" menu item (in 
Konqueror).  Only after that did not work did I attempt to configure NFS, 
based on the NFS-howto at the Linux Documentation Project.  The manuals that 
shipped with the Power Pack didn't go into anywhere near this much detail.

Is the source of my problems that the images volume is using another 
filesystem?  And does that "share" menu item work for other end users?

As for Samba, I'm already running it so VMWare has access to the host 
filesystem.  I'm trying to not run it on my real network card in order to 
prevent any configuration conflicts.

Thanks,


Kayne


On Monday 01 July 2002 11:55 pm, you wrote:
> Kayne McGladrey wrote on Mon, Jul 01, 2002 at 09:54:32PM -0700 :
> > Hi,
> >
> > Here's that output.  I appreciate the continuing help.
>
> np
>
> Back to basics.  What is in /var/lib/nfs/xtab?  Is it what you expected?
> If you run 'exportfs -r' does it stay the same?  I don't expect this to
> solve the problem, just making sure it's consistent.
>
> What is the suid bit set on that directory?
>
> Put the user in the same groups on both machines.
>
> Are you running quotas?
>
> What filesystem is /home?
>
> If it comes down to it, I suggest you:
> 1) make a directory in / and make it owned by you
> 2) put a symlink in your home dir if you like that points to it
> 3) export THAT directory
>
> You know you do have another option.  You can start a samba server on
> one machine share the directory.  Then she can use samba to mount the
> directory from the other linux box.  Always an option...
>
> Blue skies... Todd




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] NFS Permissions on Mandrake 8.2

2002-07-01 Thread Todd Lyons

Kayne McGladrey wrote on Mon, Jul 01, 2002 at 09:54:32PM -0700 :
> Hi,
> 
> Here's that output.  I appreciate the continuing help.

np

Back to basics.  What is in /var/lib/nfs/xtab?  Is it what you expected?
If you run 'exportfs -r' does it stay the same?  I don't expect this to
solve the problem, just making sure it's consistent.

What is the suid bit set on that directory?

Put the user in the same groups on both machines.

Are you running quotas?

What filesystem is /home?

If it comes down to it, I suggest you:
1) make a directory in / and make it owned by you
2) put a symlink in your home dir if you like that points to it
3) export THAT directory

You know you do have another option.  You can start a samba server on
one machine share the directory.  Then she can use samba to mount the
directory from the other linux box.  Always an option...

Blue skies...   Todd
-- 
  Todd Lyons -- MandrakeSoft, Inc.   http://www.mandrakesoft.com/
UNIX was not designed to stop you from doing stupid things, because 
  that would also stop you from doing clever things. -- Doug Gwyn
   Cooker Version mandrake-release-8.3-0.2mdk Kernel 2.4.18-20mdk



msg55951/pgp0.pgp
Description: PGP signature


Re: [expert] NFS Permissions on Mandrake 8.2

2002-07-01 Thread Kayne McGladrey

Hi,

Here's that output.  I appreciate the continuing help.

$ id jennifer
uid=502(jennifer) gid=502(jennifer) 
groups=502(jennifer),100(users),501(kmcgladr)

On Monday 01 July 2002 07:47 pm, you wrote:
> Kayne McGladrey wrote on Mon, Jul 01, 2002 at 07:34:53PM -0700 :
> > Hello,
> >
> > Here's more command output - thanks for the help thus far.  This is
> > output from the server.
> >
> > $ su - jennifer
> > (password)
>
> Run 'id jennifer'.  I want to see what groups are there.
>
> And your /home being 755 nullifies the fears that I had about the /home
> being too restrictive.
>
> Blue skies... Todd



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] NFS Permissions on Mandrake 8.2

2002-07-01 Thread Todd Lyons

Kayne McGladrey wrote on Mon, Jul 01, 2002 at 07:34:53PM -0700 :
> Hello,
> 
> Here's more command output - thanks for the help thus far.  This is output 
> from the server.
> 
> $ su - jennifer
> (password)

Run 'id jennifer'.  I want to see what groups are there.

And your /home being 755 nullifies the fears that I had about the /home
being too restrictive.

Blue skies...   Todd
-- 
  Todd Lyons -- MandrakeSoft, Inc.   http://www.mandrakesoft.com/
UNIX was not designed to stop you from doing stupid things, because 
  that would also stop you from doing clever things. -- Doug Gwyn
   Cooker Version mandrake-release-8.3-0.2mdk Kernel 2.4.18-20mdk



msg55942/pgp0.pgp
Description: PGP signature


Re: [expert] NFS Permissions on Mandrake 8.2

2002-07-01 Thread Kayne McGladrey

Hello,

Here's more command output - thanks for the help thus far.  This is output 
from the server.

$ su - jennifer
(password)

$ vdir -d /home
drwxr-xr-x5 root root 4096 Jun 30 11:48 /home

$ vdir -d /home/kmcgladr
drwxr-xr-x   48 kmcgladr kmcgladr 4096 Jul  1 19:28 /home/kmcgladr/

$ vdir -d /home/kmcgladr/images
drwxrws---9 kmcgladr kmcgladr 4096 Apr 12 17:25 /home/kmcgladr/images/

$ cat /home/kmcgladr/images/photosite/header.inc



  Kayne McGladrey Photography
  
  


Back

$ cat /home/kmcgladr/images/2000/master.txt
Action
Animals
Artsy
Bicycle
Buildings
Camping
Cats
Caves
Clouds
Concerts
Family
Flowers
Forest
Friends
Hiking
Jennifer
Kayne
Landmarks
Landscapes
Lomo
Mountains
Panorama
Snow
Snowboards
Sports
Summer
Travel
Water
Winter

$ exit

On Monday 01 July 2002 06:58 pm, you wrote:
> Kayne McGladrey wrote on Mon, Jul 01, 2002 at 06:47:15AM -0700 :
> > Thanks for responding.  Here's the command output - I hope that it helps
> > to make sense of this:
> >
> > $su jennifer
> > (password)
>
> Try 'su - jennifer'
>
> > $vdir home
> > $vdir /home/kmcgladr
> > $vdir /home/kmcgladr/images
> >
> > >   vdir -d /home
> > >   vdir -d /home/kmcgladr
> > >   vdir -d /home/kmcgladr/images
>
> Do it with the -d.  I want to see directory permissions rather than the
> permissions of the files/subdirs inside the directory.  I'm mostly
> curious about the permissions of /home itself.  If the permissions are
> 700, then it affects the rest of the directories underneath it.
>
> Second, as user jennifer, try to cat some of the files.  The permissions
> that I am seeing, it should not allow you.
>
> Blue skies... Todd



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] NFS Permissions on Mandrake 8.2

2002-07-01 Thread Todd Lyons

Kayne McGladrey wrote on Mon, Jul 01, 2002 at 06:47:15AM -0700 :
> Thanks for responding.  Here's the command output - I hope that it helps to 
> make sense of this:
> 
> $su jennifer
> (password)

Try 'su - jennifer'

> $vdir home
> $vdir /home/kmcgladr
> $vdir /home/kmcgladr/images
> >   vdir -d /home
> >   vdir -d /home/kmcgladr
> >   vdir -d /home/kmcgladr/images

Do it with the -d.  I want to see directory permissions rather than the
permissions of the files/subdirs inside the directory.  I'm mostly
curious about the permissions of /home itself.  If the permissions are
700, then it affects the rest of the directories underneath it.

Second, as user jennifer, try to cat some of the files.  The permissions
that I am seeing, it should not allow you.

Blue skies...   Todd
-- 
  Todd Lyons -- MandrakeSoft, Inc.   http://www.mandrakesoft.com/
UNIX was not designed to stop you from doing stupid things, because 
  that would also stop you from doing clever things. -- Doug Gwyn
   Cooker Version mandrake-release-8.3-0.2mdk Kernel 2.4.18-20mdk



msg55935/pgp0.pgp
Description: PGP signature


Re: [expert] NFS Permissions on Mandrake 8.2

2002-07-01 Thread Kayne McGladrey

Thanks for responding.  Here's the command output - I hope that it helps to 
make sense of this:

$su jennifer
(password)

$cd images

$ls
2000/  2001/  2002/  lost+found/  photosite/  win98/

$vdir home
total 12
drwxr-xr-x3 iusr iusr 4096 Jun 29 07:36 iusr
drwxr-xr-x3 jennifer jennifer 4096 Jul  1 06:42 jennifer
drwxr-xr-x   48 kmcgladr kmcgladr 4096 Jul  1 06:42 kmcgladr

$vdir /home/kmcgladr
total 11476
drwxr-xr-x3 kmcgladr kmcgladr 4096 Jun 29 22:02 Desktop
drwxr-xr-x   13 kmcgladr kmcgladr 4096 Jun 23 19:35 Documents
drwxr-xr-x2 kmcgladr kmcgladr 4096 Jun 23 19:36 ebooks
drwxr-xr-x3 root root 4096 Jun 23 19:13 home
drwxrws---9 kmcgladr kmcgladr 4096 Apr 12 17:25 images
drwxr-xr-x7 kmcgladr kmcgladr 4096 Jun 28 21:44 incoming
drwx--3 kmcgladr kmcgladr 4096 Jul  1 06:41 Mail
drwxr-xr-x2 kmcgladr kmcgladr 4096 Jun 23 19:39 maps
drwxr-xr-x   58 kmcgladr kmcgladr 4096 Jun 30 08:07 mp3
-rw-r--r--1 kmcgladr kmcgladr  647 Jun 29 21:03 plugin131_02.trace
drwxr-xr-x2 kmcgladr kmcgladr 4096 Jun 23 19:40 pwcpp
drwxr-xr-x3 kmcgladr kmcgladr 4096 Jun 23 19:40 recipedatabase
drwxr-xr-x3 kmcgladr kmcgladr 4096 Jun 23 19:00 staroffice6.0
-rw-rw-r--1 kmcgladr kmcgladr   152514 Mar  4 19:31 syphon\ filter\
walkthrough.txt
drwx--2 kmcgladr kmcgladr 4096 Jun 23 20:29 temp
drwx--2 kmcgladr kmcgladr 4096 Jun 27 21:28 tmp
drwx--2 kmcgladr kmcgladr 4096 Jun 23 20:29 users
drwxr-xr-x3 root root 4096 Jun 23 19:19 vmware
-rw-r--r--1 kmcgladr kmcgladr 11503466 Jun 23 20:04 
VMware-workstation-3.1.1-1790.i386.rpm

$vdir /home/kmcgladr/images
total 36
drwxrws---   14 kmcgladr kmcgladr 4096 Jun  2 16:11 2000
drwxrws---   12 kmcgladr kmcgladr 4096 Feb 21 12:22 2001
drwxrws---6 kmcgladr kmcgladr 4096 Jun 30 11:16 2002
drwxr-xr-x2 kmcgladr kmcgladr16384 Nov 16  2001 lost+found
drwxrws---   11 kmcgladr kmcgladr 4096 Jun 12 06:37 photosite
drwxrws---4 kmcgladr kmcgladr 4096 Feb 18 08:32 win98

$exit


On Sunday 30 June 2002 12:52 pm, you wrote:
> Kayne McGladrey wrote on Sun, Jun 30, 2002 at 12:42:05PM -0700 :
> > -= Client =-
> > $su
> > #mount pickman:/home/kmcgladr/images
> > (no error message)
> > #exit
> > $cd images
> > $bash: cd: images: Permission denied
>
> On the server, su to the user and see if that user can cd into the
> directory on the the server.  The reason I think this is your problem is
> because you are exporting /home/kmcgladr/images.  Give us the output on
> the server of the following commands:
>   vdir -d /home
>   vdir -d /home/kmcgladr
>   vdir -d /home/kmcgladr/images
>
> Blue skies... Todd



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] NFS Permissions on Mandrake 8.2

2002-06-30 Thread Todd Lyons

Kayne McGladrey wrote on Sun, Jun 30, 2002 at 12:42:05PM -0700 :
> -= Client =-
> $su
> #mount pickman:/home/kmcgladr/images
> (no error message)
> #exit
> $cd images
> $bash: cd: images: Permission denied

On the server, su to the user and see if that user can cd into the
directory on the the server.  The reason I think this is your problem is
because you are exporting /home/kmcgladr/images.  Give us the output on
the server of the following commands:
  vdir -d /home
  vdir -d /home/kmcgladr
  vdir -d /home/kmcgladr/images

Blue skies...   Todd
-- 
  Todd Lyons -- MandrakeSoft, Inc.   http://www.mandrakesoft.com/
UNIX was not designed to stop you from doing stupid things, because 
  that would also stop you from doing clever things. -- Doug Gwyn
   Cooker Version mandrake-release-8.3-0.2mdk Kernel 2.4.18-20mdk



msg55902/pgp0.pgp
Description: PGP signature