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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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. |
| |||
| 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 |
| ||||
| 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. |
| Thread Tools | |
| Display Modes | |
|
|