Unix Technical Forum

NFS root access

This is a discussion on NFS root access within the comp.unix.solaris forums, part of the Solaris Operating System category; --> I've seen the man page for share_nfs, tried a couple of different things it suggests, and, yet, it still ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-13-2008, 01:25 PM
aaron@mcs-partners.com
 
Posts: n/a
Default NFS root access

I've seen the man page for share_nfs, tried a couple of different
things it suggests, and, yet, it still doesn't work the way I need it
to. I'm able to mount a filesystem from "server" on "gold2," and
create files, etc, but the files I create on the NFS partition are all
owned by "nobody" - no surprise there - and I can't "chown" them.
That's what's confusing: why can I create them in the first place, but
can't chown them?

Both systems are Solaris 10 Sparc hosts. No special PAM or other
security configuration; they're pretty much straight out of the box.

Here's the latest "share" incantation:

share -F nfs -o root=gold2 -d "backup volume" /backup_vol

I've also tried:

share -F nfs -o anon=0,root=gold2 -d "backup volume" /backup_vol
share -F nfs -o rw,root=gold2 -d "backup volume" /backup_vol
share -F nfs -o root=gold2,rw -d "backup volume" /backup_vol

And probably a couple others.

I'm not doing anything special in the "mount" command:

mount server:/backup_vol /backup_1tb

I umount & mount after each change in the share command on the server,
so it should be getting the correct parameters from the server each
time.

Like I said, I can create files & directories on the server just fine,
but they're all owned by nobody - at least as I look at the file
ownerships and permissions from "gold2"; they're owned by "root" when
I look at them on "server" - and I can't do much more than create and
delete them. I need to be able to set ownership & permissions.

If I had any hair, I'd be pulling it out about now, so I'd be much
obliged for any assistance.

Thanks,

Aaron
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-13-2008, 01:25 PM
Paul Colquhoun
 
Posts: n/a
Default Re: NFS root access

On Fri, 8 Feb 2008 18:27:02 -0800 (PST), aaron@mcs-partners.com <aaron@mcs-partners.com> wrote:
| I've seen the man page for share_nfs, tried a couple of different
| things it suggests, and, yet, it still doesn't work the way I need it
| to. I'm able to mount a filesystem from "server" on "gold2," and
| create files, etc, but the files I create on the NFS partition are all
| owned by "nobody" - no surprise there - and I can't "chown" them.
| That's what's confusing: why can I create them in the first place, but
| can't chown them?
|
| Both systems are Solaris 10 Sparc hosts. No special PAM or other
| security configuration; they're pretty much straight out of the box.
|
| Here's the latest "share" incantation:
|
| share -F nfs -o root=gold2 -d "backup volume" /backup_vol
|
| I've also tried:
|
| share -F nfs -o anon=0,root=gold2 -d "backup volume" /backup_vol
| share -F nfs -o rw,root=gold2 -d "backup volume" /backup_vol
| share -F nfs -o root=gold2,rw -d "backup volume" /backup_vol
|
| And probably a couple others.
|
| I'm not doing anything special in the "mount" command:
|
| mount server:/backup_vol /backup_1tb
|
| I umount & mount after each change in the share command on the server,
| so it should be getting the correct parameters from the server each
| time.
|
| Like I said, I can create files & directories on the server just fine,
| but they're all owned by nobody - at least as I look at the file
| ownerships and permissions from "gold2"; they're owned by "root" when
| I look at them on "server" - and I can't do much more than create and
| delete them. I need to be able to set ownership & permissions.
|
| If I had any hair, I'd be pulling it out about now, so I'd be much
| obliged for any assistance.


I think Solaris 10 defaults to NFSv4 for mounts. This uses TCP, and also
uses text username and group information, rather than numeric UID/GID.

This means that the machine 'server' needs a copy of the /etc/passwd &
/etc/group file so it can translate ownership correctly.

To test this, try explicitly using NFSv3 in the mount command on
'gold2'. Giving option '-o proto=udp' (I think) should do it.


--
Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/~paulcol
Asking for technical help in newsgroups? Read this first:
http://catb.org/~esr/faqs/smart-questions.html#intro
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-13-2008, 01:25 PM
Frank Cusack
 
Posts: n/a
Default Re: NFS root access

On Sat, 09 Feb 2008 06:49:04 GMT Paul Colquhoun <postmaster@andor.dropbear.id.au> wrote:
> I think Solaris 10 defaults to NFSv4 for mounts.


It does.

> This uses TCP,


Yes, it does.

> and also uses text username and group information, rather than
> numeric UID/GID.


No. Where did you get that from?

-frank
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:01 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com