Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

root runs "touch" on NFS mounted volume

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Feb 6, 2002
1,851
IL
Hi,

On AIX 4.3.3 machines we NFS mount volume vol1 of machine mach1 on machine mach2.

If I run "touch /vol1/kkk" from mach2 (as root),the file owner is "nobody".

1.Is there any way to touch the file on a remote volume so that the file is created with owner "root" ?

2.Can a non-root user touch files on a remote volume so that the file will get that user owner (not "nobody") ? "Long live king Moshiach !"
h
 
Sounds like the way you've got the NFS share configured. Could you post the smitty screen with the details of the NFS share?

Off the top of my head, it's a security matter. root on the client machine may not necessarily be root on the server machine, so the server machine protects itself by remapping incoming requests by uid 0 (root) to "nobody". This prevents potentially untrusted machines from creating root-owned data on the server machine, which is good if you've got a more or less open share (which yes, there can be call for).

There's a line in the smitty panel that you can specify a list of machines that are allowed "root" access to the NFS share - uid 0 stays uid 0 instead of getting mapped to "nobody".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top