Re: Simple one - 65534 Owner Id's (349 Views)
Frequent Advisor
Posts: 97
Registered: ‎11-18-2001
Message 1 of 3 (349 Views)
Accepted Solution

Simple one - 65534 Owner Id's

When root creates a file in a mounted directory, the ownership is set to 65534 ( not root )...

I'm sure there's a simple fix?

Thanks in advance.
Honored Contributor
Posts: 6,350
Registered: ‎08-15-2001
Message 2 of 3 (349 Views)

Re: Simple one - 65534 Owner Id's

Hi Russ,

That should be an NFS mounted directory. You have to export the NFS mount with ' root' option otherwise root users will be treated as 'unknown' or nobodies. If you don't have a 'nobody' use on the system, then the files will get created using the id 65534.

You may be disappointed if you fail, but you are doomed if you don't try
Acclaimed Contributor
Posts: 17,825
Registered: ‎07-16-1998
Message 3 of 3 (349 Views)

Re: Simple one - 65534 Owner Id's

Well, that's the answer but it isn't the whole answer. The conventional NFS anonymous/nobody UID is actually -2 --- but's that's 65534.

65534 is the twos-complement of -2 expressed as a 16-bit number. To represent negative numbers, you first make the ones-complement (flip even bit in the value expressed as a postitive number). You then add 1 to this value to get the twos-complement.

In our case we want -2 so we first express 2 as a binary 16-bit number.

0000000000000010 = 2
Now the ones-complement (flip every bit)
Now the twos-complement by adding 1
1111111111111110 = 65534

And now you know the rest of the story.

If it ain't broke, I can fix that.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.