LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-26-2003, 11:35 PM   #1
shishir
Member
 
Registered: Jul 2003
Location: bangalore . india
Distribution: openSUSE 10.3
Posts: 251

Rep: Reputation: 33
file owner on an NFS


Hi,
I would like to know if there is a way of specifying which user should be the owner of a file on an NFS that has write permissions for some other user.
I am asking this because :
when i touch a file on an NFS, it is created with the owner uid different from the real uid.

now the interesting thing that this causes is : when i try to change the timestamp on this file, it disallows the operation saying that i am not the owner of the file(fair enough,that does show when i do an ls -l, and the utime man page quite explicitly says this perm denied will happen if i am notthe owner of the file, even though i might have write perms in the directory )

but my question is why is this done?

i am not on linux, hence the general forum.

/edit
i understand that linux has a call setfsuid(2) to set the user id as an owner of a file on an NFS, is there anything similar available on any other *nix?
/edit

Last edited by shishir; 11-26-2003 at 11:38 PM.
 
Old 11-28-2003, 09:53 AM   #2
yowi
Member
 
Registered: Dec 2002
Location: Au
Distribution: Debian
Posts: 209

Rep: Reputation: 55
check the exports man page it's explained under User ID Mapping section.
 
Old 11-28-2003, 05:18 PM   #3
newpenguin
Member
 
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Rep: Reputation: 30
in practical environment NFS and NIS work together to avoid such things.

anyway i think its not a place to ask this question.
 
Old 11-28-2003, 05:53 PM   #4
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
...moved to the Linux - Networking forum
 
Old 11-30-2003, 11:09 PM   #5
shishir
Member
 
Registered: Jul 2003
Location: bangalore . india
Distribution: openSUSE 10.3
Posts: 251

Original Poster
Rep: Reputation: 33
thanks for putting the post at the right place...
and thanks for the inputs.

i have found out the reason for the problem i was facing,
seems there was some limitation in the implementation on the *nix
i am using. i dug into it and found that it was to be fixed in future releases.

thanks for the inputs.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File owner and File group locked - root deiphage Linux - Hardware 5 02-05-2005 01:30 PM
file and folder owner ship wisdom Linux - Software 2 12-24-2004 08:28 PM
how to i change file owner back to root ? glacier1985 Linux - Newbie 10 06-17-2004 09:20 PM
Getting the owner name of a file in C akin81 Programming 5 04-02-2004 03:36 PM
file permissions and file owner won't change Nadim Slackware 5 11-29-2003 06:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration