Mombu the GNU Linux Forum sponsored links

Go Back   Mombu the GNU Linux Forum > GNU_Linux > NFS use
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 16th July 20:57
steve
External User
 
Posts: 1
Default NFS use



Hi,

I don't understand one point on NFS.

I have 2 machines : A (server) B (Local machine)
In both case, I have created a user called 'user1'

I Mount the server on the local machine

local machine:
mkdir /mnt/backupuser1
chown user1 /mnt/backuser1
chgrp user1 /mnt/backuser1
chown 700 /mnt/backuser1

*On the server, I have
RW,no_root_Squash on the /home/user1

If I mount the folder :
mount 192.***.xx.xx:/home/user1 /mnt/backupuser1 -> fine

But any folder created on /mnt/backuser1 WILL NEVER BE FROM user1, but a
number 507 (for instance)

Why User1, who wants to write into a folder owned by user1, cannot
create files BELONGING TO user1 ????

thanks for your help

Steve
  Reply With Quote


  sponsored links


2 16th July 20:57
johnny rebel
External User
 
Posts: 1
Default NFS use



Hey,

From what I understand from what you are saying, it is probably that
user1 has a different uid/gui on each system. See your /etc/passwd and
the third/fourth fields. These should be the same. This is part of the
reason a lot of systems implementing NFS, also implement NIS!

JR.

--

Bill will have to take Linux from my cold, dead flippers.

-Tux.
  Reply With Quote
3 16th July 20:57
steve
External User
 
Posts: 1
Default NFS use


Hi Johnny,

Thank you for your reply.
I've created another user : user2 with the same name, same password, same ID
I don't use any NIS server (I just try to inmplement it.. it doesn't
work. I will investigate)

But the only problem is that:
*Owner, group are OK
* But on the server, rights are 700
If I create a file or folder, from the local machine. it will be 744 ????

Any idea why ??

Cheers
  Reply With Quote
4 16th July 20:57
johnny rebel
External User
 
Posts: 1
Default NFS use


No problems!

Hum. Can't say for sure, but check the umask of each user on each
system. (type in 'umask'). That may be it. Other than that, check 'man
5 exports' for export options that may revolve around this. But, a
umask of 0022 will actually give 644 for files, and 755 for directories.
It does sound like your umask has been changed.

JR.


--

Bill will have to take Linux from my cold, dead flippers.

-Tux.
  Reply With Quote
5 16th July 20:57
steve
External User
 
Posts: 1
Default NFS use


I found it.
When I created the user with the right Id, it create the group with the
wrong Id.
the deal is to create the group first with the correct ID and to create
the user ID with the ID
then -> OK !!

Thanks again!
  Reply With Quote
6 17th July 05:27
johnny rebel
External User
 
Posts: 1
Default NFS use


Ah, so it was back to my original statement - have similar uid/gid
between systems. Is that what you mean by 'the right id'? I typically
break away from the RH model (new gid for every user) and put all users
in gid-100, users. Makes it a bit easier to share files.

JR.


--

Bill will have to take Linux from my cold, dead flippers.

-Tux.
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666