Author Topic: NFS and chown  (Read 37049 times)

0 Members and 1 Guest are viewing this topic.

Offline telix

  • Jr. Member
  • **
  • Posts: 1
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
NFS and chown
« on: September 21, 2017, 06:30:10 am »
Hi forumers

I would like to connect by NFS one linux to another but with users rights.
For example:

but how to copy on the second linux all user accounts and when I share by NFS have user rights (chown).
for example
/home/pub/telix on both machines with the same UID and when filesystem send file or directory on remote machine have user and group what is create on main machine.
Normally by NFS I have user nobady and group nogroup, but I would like to have permission and rights every user on both machines.
Is it possible to create ?


Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: NFS and chown
« Reply #1 on: September 21, 2017, 03:05:11 pm »
I'm not sure exactly what you're trying to achieve, but the answer is nearly always to use groups to achieve permissions for multiple users.


If you want to give john and jane permissions to write to the share, on the server create a group 'john&jane' and add them both to it .. the set the share to allow writing only by anyone in the 'john&jane' group.
« Last Edit: September 21, 2017, 03:07:08 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.

The Linux Community Forum

Re: NFS and chown
« Reply #1 on: September 21, 2017, 03:05:11 pm »


SimplePortal 2.3.3 © 2008-2010, SimplePortal