Operating System - HP-UX
1834127 Members
2106 Online
110064 Solutions
New Discussion

export hpux option root=machine not working on linux

 
BERTRAND_7
Frequent Advisor

export hpux option root=machine not working on linux

Hi Everyone,

From an HPUX 11.23 (vxfs) host, I export a directory (/hibackup) with the options -i -o root=HAC11
When I run the command exportfs, I get:
/hibackup -root=HAC11

I mount this directory on a linux Red hat AS 3 computer as:
mount har01:/hibackup /hibackup

As user root, on the linux host, I create a file:
touch /hibackup/test

The owner of the test files is:
- from the HPUX: nobody, nogroup
- from linux: 4294967294, 4294967294

What is missing in my settings to create root files from the linux host on the mounted directory.

Thanks for your help.

Bruno
5 REPLIES 5
Peter Godron
Honored Contributor

Re: export hpux option root=machine not working on linux

Bruno,
not sure about Linux, but:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1004753

You may want to look at -o anon= option
Peter Nikitka
Honored Contributor

Re: export hpux option root=machine not working on linux

Hi,

is your linux box really the host HAC11? The naming resolution must be setup in a way, that the server (har01 in your case) identifies the request exactly origination from that name!

Set the permissions of a directory /hibackup/testdir in a way that only root has write access and try to put files into this directory:
At har01:
mkdir /hibackup/testdir
chmod 755 /hibackup/testdir

At client:
touch /hibackup/testdir/testfile

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Dave Olker
Neighborhood Moderator

Re: export hpux option root=machine not working on linux

Hi Bruno,

Does the HP-UX system really resolve the IP address of the Linux client to the string "HAC11"? One thing that might be helpful would be to unmount the filesystem, turn on debug rpc.mountd logging (by sending a SIGUSR2 signal to the rpc.mountd daemon), re-mount the filesystem and turn off the debug rpc.mountd logging (another SIGUSR2 to rpc.mountd). The debug log file will tell you exactly how the server thinks the client is named.

If you have any problems collecting the logfile or interpreting the output let me know.

Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
BERTRAND_7
Frequent Advisor

Re: export hpux option root=machine not working on linux


Hi everyone,

Thanks for all the suggestions.

I check that user id for root where identical on both hosts and /etc/hosts files correctly mentionned each other.

I solved the problem by providing a '-o suid' option to the mount command on the linux box. Now the files created by root on the linux mounted directory are also known as root on the HPUX system.

Regards.

Bruno
BERTRAND_7
Frequent Advisor

Re: export hpux option root=machine not working on linux

See above