Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NFS why rights & owner are changed ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Gil galad
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2004
Posts: 94
Location: Switzerland

PostPosted: Fri Oct 15, 2004 3:41 pm    Post subject: NFS why rights & owner are changed ? Reply with quote

Hello!
For my home network, I've a gentoo server with both smb and nfs. My problem is when I make a copy to the server from my laptop (gentoo as well) the rights are changed to 777 and owner to root. I can delete/rename/move,etc the file, but it's impossible to "chmod". And this for both smb or nfs. I use a Fat32 partition an the server.
Thanks!
Back to top
View user's profile Send private message
Cosmin
Guru
Guru


Joined: 18 Dec 2003
Posts: 447
Location: Bucharest, Romania

PostPosted: Fri Oct 15, 2004 4:26 pm    Post subject: Reply with quote

Well, the fat fs doesn't have uid or guid, so it will be mounted under the root's ownership :) Absolutely NOTHING you can do about... If you are exporting the files over smb/nfs/whatever, why did you chose fat(32)? It really doesn't matter for the client machine, but for the server, yes.
[EDIT]
BTW, this problem is not specific to nfs/smb/etc. Just try to create a file (being logged on the server) on the fat partition and check the ownership.
Back to top
View user's profile Send private message
Gil galad
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2004
Posts: 94
Location: Switzerland

PostPosted: Fri Oct 15, 2004 7:22 pm    Post subject: Reply with quote

Thanks you for your responce. I thought that was the problem. Anybody know if it's possible to convert fat32 to any linux file system (reiserfs or xfs if possible) without format and lost all data? I think not but it cost nothing to ask ;)
Back to top
View user's profile Send private message
Cosmin
Guru
Guru


Joined: 18 Dec 2003
Posts: 447
Location: Bucharest, Romania

PostPosted: Mon Oct 18, 2004 8:07 am    Post subject: Reply with quote

I don't know of any program that can do this trick :( Sorry... And I would question the utility of such a program... Maybe other people disagree...
Back to top
View user's profile Send private message
Gil galad
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2004
Posts: 94
Location: Switzerland

PostPosted: Mon Oct 18, 2004 10:15 am    Post subject: Reply with quote

Yes, of course, the utility of such program are not very important. So I've done "mkreiserfs".
But know, when I copy something to my home server, the owner is changed to "ftp". For sur, it's normal because my name is not on the server. But, can I simply "adduser" with my name on the server?
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Mon Oct 18, 2004 11:33 am    Post subject: Reply with quote

The numeric userid must be the same for you to see the same text both places. So you'll have to add a new user with a specific numeric userid.
Back to top
View user's profile Send private message
Cosmin
Guru
Guru


Joined: 18 Dec 2003
Posts: 447
Location: Bucharest, Romania

PostPosted: Mon Oct 18, 2004 12:40 pm    Post subject: Reply with quote

Gil galad wrote:
Yes, of course, the utility of such program are not very important. So I've done "mkreiserfs".
But know, when I copy something to my home server, the owner is changed to "ftp". For sur, it's normal because my name is not on the server. But, can I simply "adduser" with my name on the server?
The user gets changed to "ftp" so I'd guess you are using some sort of FTP server to u/d your files. If this is so, then the process is a little bit different. If you connect using an anonymous account, the files are created with a default user ownership, usually 'ftp' (as this is the account the server runs from). But you can create a user on the server (with adduser, as you previously stated) and use this user to login. You will be in your home dir and the ownership will be yours.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum