Operating System - HP-UX
1837856 Members
3097 Online
110122 Solutions
New Discussion

uid on nfs mounted folders

 
SOLVED
Go to solution
Mark Vollmers
Esteemed Contributor

uid on nfs mounted folders

Hi, all.

I have some folders (on NT) that I have mounted as directories on the UNIX server. They are in the /etc/fstab and all is well. My problem is that the UID assigned for the folders is 65534 (for the GID as well). I can move files to and from them, but Ignite is flipping out, since

"File 'engpro1/temp' has uid 65534. Pax does not correctly support files with uid larger than 60k"

If I make a new file, it has my uid and gid. The same holds true to folders. I don't know where it pulled these numbers from, but can I force them to something else (ideally, my uid if I am logged in on engpro1 (the NT machine)? We have a program called Diskacess, that lets us log in and validate to the server and share the folders with UNIX. Thanks.

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: uid on nfs mounted folders

Hi Mark:

Those are uid's are gid's of the NFS anonymous user. The OS can't match the file / group so it has to do something. Most Windows NFS packages allow you to set up some sort of mapping between NT users and UNIX users.

Clay
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: uid on nfs mounted folders

Hi Mark,

I suppose you would feel better if I explain where the 65534 comes from. You should have an emtry in your passwd file of nobody with a uid of -2 and a group file entry of nogroup with a gid of -2.

65534 (fffe hex) is the unsigned 16-bit integer equivalent of -2 in 16-bit two's-complement representation.

Hope this clears it up, Clay
If it ain't broke, I can fix that.
Victor_5
Trusted Contributor

Re: uid on nfs mounted folders

By default file systems exported by NFS server are exported with no root access. Then root on the NFS client is treated as nobody user. And all files and directories created by this root are owned by nobody user. You can see nobody in /etc/passwd with uid=-2, and see nogroup in /etc/group with gid=-2, 65534 is for anonymous users.

You can check /etc/exports, you will see a line like this:
/mount_point -anon=65534



Mark Vollmers
Esteemed Contributor

Re: uid on nfs mounted folders

Thanks for clearing that up for me, guys. I found the window I need on the Windows side to change it, so I'll have to sit down and do that. It also makes a little more sense as to what the number is. It's so much fun working in hex. :) Thanks, guys.

mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"