Author Topic: NFS and chown  (Read 11969 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:
/home/pub

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 ?

Telix

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18002
  • Karma: 465
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • 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.

eg.

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.
pcnetspec.co.uk

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal