Unix administration - nfs question

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > April 2006 > nfs question





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author nfs question
rogv24@yahoo.com

2006-04-11, 10:00 am

I set up a nfs to share a directory to other servers. How can I
restrict others from accessing this directory? Users do have root
access to these servers and I don't want them to access the shared
directory.
thanks.

Doug Freyburger

2006-04-27, 7:56 am

rogv24@yahoo.com wrote:
>
> I set up a nfs to share a directory to other servers. How can I
> restrict others from accessing this directory?


NIS netgroups, ACLs.

> Users do have root
> access to these servers and I don't want them to access the shared
> directory.


It is not possible to restrict access from anyone with root access.
Nothing you can do will work because everything you can do will
have a workaround by them. Turn your NFS access back off and
no one will be able to access the data.

--==[ bman ]==--

2006-04-27, 7:56 am

Not true. You can prevent a root user from accessing/modifying content
a mounted NFS share from a remote server with the following:

- on HPUX: use 'access' directive
- on Linux: use 'root_squash or no_root_squash

Remote root access operation on mounted NFS shares is disabled by
default. You have to explicitly enable it via /etc/exports. Finally,
NFS relies heavily on UIDs and GIDs. I can go around your security by
creating an account on a remote system with an UID or GID that owns
files/dirs on the mounted share. Short of exporting read-only, there
is not much you can do.

man exports is your friend.

Doug Freyburger

2006-04-27, 7:56 am

--==[ bman ]==-- wrote:
>
> Not true. You can prevent a root user from accessing/modifying content
> a mounted NFS share from a remote server with the following:


This is UseNet. Please learn to quote context.

> - on HPUX: use 'access' directive
> - on Linux: use 'root_squash or no_root_squash
>
> Remote root access operation on mounted NFS shares is disabled by
> default. You have to explicitly enable it via /etc/exports. Finally,
> NFS relies heavily on UIDs and GIDs. I can go around your security by
> creating an account on a remote system with an UID or GID that owns
> files/dirs on the mounted share. Short of exporting read-only, there
> is not much you can do.
>
> man exports is your friend.


Here's my statement that was called not true:
[vbcol=seagreen]

It remains true. It access is given to user "dfreybur" on the client
host, but that users doesn't exist on that host or never logs in,
anyone with the root password can create "dfreybur" or give it a
local password. Bingo, access.

There's more access in the world than access *as* root. Anyone
with the root password can use any granted access as that user.

--==[ bman ]==--

2006-04-27, 7:57 am

"It is not possible to restrict access from anyone with root access.
Nothing you can do will work because everything you can do will
have a workaround by them. " - point taken if we are talking about
using root gain indirect access to NFS share (like creating a user with
exported UID).

However, root itself cannot access/modify/write if directives described
in my post are used. I assume that a "basic" trust is established
between the server and a client for this type of opertaions otherwise,
this whole converstation is pointless.

You would not export vital information via NFS from your system to a
client with a questionable reputation, would you?

Doug Freyburger

2006-04-27, 7:57 am

--==[ bman ]==-- wrote:
>
> "It is not possible to restrict access from anyone with root access.
> Nothing you can do will work because everything you can do will
> have a workaround by them. " - point taken if we are talking about
> using root gain indirect access to NFS share (like creating a user with
> exported UID).
>
> However, root itself cannot access/modify/write if directives described
> in my post are used. I assume that a "basic" trust is established
> between the server and a client for this type of opertaions otherwise,
> this whole converstation is pointless.
>
> You would not export vital information via NFS from your system to a
> client with a questionable reputation, would you?


As someone who formerly had a security clearance color me
paranoid - Everyone has a questionable reputation. I know I
can't lock down my systems enough to keep out the most
determined cracker so neither can anyone else. Assuming a
basic trust isn't as automatic to me as it is to some. I figure
root's going to be abused eventually.

There's also the question of how "vital" is defined. /etc is vital
on the local system, application data is vital on the business
level. One I'm not giving out over NFS the other I am.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com