Unix Technical Forum

exports

This is a discussion on exports within the HP-UX Operating System forums, part of the Unix Operating Systems category; --> having a little issue exporting a dir. to a remote box. I trying to force the uid to map ...


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 07:05 PM
c0re
 
Posts: n/a
Default exports

having a little issue exporting a dir. to a remote box. I trying to
force the uid to map the remote box uid.

Can this be done with anonuid and anongid?

#/etc/exports
/test foo2(rw,all_squash,anonuid=221,anonuid=221)

which on the remote box (foo2) the 221 uid and gid map to foouser. but
when i login root on the remote box and mount the export it show as the
foo uid and gid.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 07:05 PM
Kevin Collins
 
Posts: n/a
Default Re: exports

In article <1113922540.957637.234400@z14g2000cwz.googlegroups .com>, c0re wrote:
> having a little issue exporting a dir. to a remote box. I trying to
> force the uid to map the remote box uid.
>
> Can this be done with anonuid and anongid?
>
> #/etc/exports
> /test foo2(rw,all_squash,anonuid=221,anonuid=221)
>
> which on the remote box (foo2) the 221 uid and gid map to foouser. but
> when i login root on the remote box and mount the export it show as the
> foo uid and gid.


You are posting Linux format /etc/exports in comp.sys.hp.hpux, which is not a
Linux newsgroup.

The anonuid/anongid are the UID and GID to use for anonymous (typically root)
access. There is no way to map UID and GID that I am aware of - you need to
define the same UID/GID to the same user name on each host.

Kevin


--
Unix Guy Consulting, LLC
Unix and Linux Automation, Shell, Perl and CGI scripting
http://www.unix-guy.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 07:05 PM
Mikko Nahkola
 
Posts: n/a
Default Re: exports

In article <slrnd6apo8.plv.spamtotrash@halo.unix-guy.com>, Kevin Collins wrote:
> In article <1113922540.957637.234400@z14g2000cwz.googlegroups .com>, c0re wrote:
>> having a little issue exporting a dir. to a remote box. I trying to
>> force the uid to map the remote box uid.
>>
>> Can this be done with anonuid and anongid?
>>
>> #/etc/exports
>> /test foo2(rw,all_squash,anonuid=221,anonuid=221)
>>
>> which on the remote box (foo2) the 221 uid and gid map to foouser. but
>> when i login root on the remote box and mount the export it show as the
>> foo uid and gid.

>
> You are posting Linux format /etc/exports in comp.sys.hp.hpux, which is not a
> Linux newsgroup.
>
> The anonuid/anongid are the UID and GID to use for anonymous (typically root)
> access. There is no way to map UID and GID that I am aware of - you need to
> define the same UID/GID to the same user name on each host.


Well, _technically_ it just might be possible to tweak an NFS server to
do that. At least if your server happens to run Linux... check the
ClusterNFS project on SourceForge. It doesn't seem to do quite what you
want, but it does some other weird stuff based on remote address and
UID and such.

That said, do remember to check the NFS file locking too if you really
plan to run a HP-UX NFS client and a Linux NFS server. There are a
couple of pitfalls there.


--
Mikko Nahkola <mnahkola@trein.ntc.nokia.com>
#include <disclaimer.h>
#Not speaking for my employer. No warranty. YMMV.
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:41 PM.


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