sharing folder using NFS for one linux user only

Currently reading
sharing folder using NFS for one linux user only

7
1
NAS
DS220j
Operating system
  1. Linux
  2. Windows
Mobile operating system
  1. Android
Hi everyone,

on my linux machine (Mageia) I would like one user (let's say, user1) to be able to access one directory on the NAS (DS220j).

This directory should be mountable by user1.

Do I need to define a user named user1 on the NAS (in DSM) ?

Or shall I create another user (e.g. user1_NAS) on the NAS control panel and use these credentials to allow user1 to access the directory ?

Basically I want only user1 to see and be able to access the directory on the NAS...

Thanks !!!
V
 
140
56
NAS
DS620slim, DS415+
Operating system
  1. Linux
  2. macOS
  3. Windows
Mobile operating system
  1. Android
  2. iOS
Yes, best to create a user on the nas, name is not important.
As you will manage the folder acces permissions via the user on the nas, it is best to create a name on the nas that is clear that this is the linux user.
You can use SMB as well, this is for most users a bit less complicated setup on both linux and nas end.
 
7
1
NAS
DS220j
Operating system
  1. Linux
  2. Windows
Mobile operating system
  1. Android
thank you EAZ for your reply.

It is important for me that only one given user on the linux machine gets access to the directory on the NAS.
I don't unterstand where I shall configure this in linux... (MAgeia)
 
140
56
NAS
DS620slim, DS415+
Operating system
  1. Linux
  2. macOS
  3. Windows
Mobile operating system
  1. Android
  2. iOS
Typically I mount smb via /etc/fstab, but this is a system setting, not user specific.
for user specific mounts use the tips as given here:
 

Shadow

Subscriber
672
234
NAS
DS216+II, DS118, DS718+
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. Windows
Mobile operating system
  1. Android
NFS uses machine based authentication, not user based authentication.
 
7
1
NAS
DS220j
Operating system
  1. Linux
  2. Windows
Mobile operating system
  1. Android
Ok, thanks for your reply.
But it must be possible to define user permissions.

How may I configure the NAS and the client machine (linux) so that user1 on the client machine is the only one with access to directory1 ??

thank you !!!
 
140
56
NAS
DS620slim, DS415+
Operating system
  1. Linux
  2. macOS
  3. Windows
Mobile operating system
  1. Android
  2. iOS
Last edited:
Use smb in stead of nfs,
Set the uid of the syno identical to the uid of the linux machine. (not very secure)
You need to cat the /etc/passwd file on your NAS and get the UID of the user. Then on the desktop change the user's UID to match the same as the synology one.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Top