NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
aeth
Apr 10, 2018Aspirant
Creating secure Linux shares
This week I purchased a ReadyNAS (firmware 6.9.3) for use in our university research group. We have several users on Windows, Mac and Linux. I enabled SMB and NFS. The Windows and Mac users are able ...
- Apr 11, 2018
This works with my ReadyNAS
mount -t cifs -o username=<user>,password=<password> //<NAS-IP-Address>/<share name> /mnt
aeth
Apr 11, 2018Aspirant
Thanks for the response. I did figure out that I could restrict access via IP, but this isn't really what I want to do.
On Windows or Mac, the first time they enter user credentials, a directory is created for that user within the ReadyNAS /home/ directory. I would like to see similar behavior for Linux, but the SMB instructions in the Netgear FAQs are very outdated; they still ask to use code like:
mount -t smb ...
but smb has been deprecated for cifs for a long time, and the provided syntax for username and password doesn't work.
Are you able to show me how to use smb/cifs on a modern Linux system to get behavior similar to Windows/Mac with user-controlled access?
StephenB
Apr 11, 2018Guru - Experienced User
This works with my ReadyNAS
mount -t cifs -o username=<user>,password=<password> //<NAS-IP-Address>/<share name> /mnt
- aethApr 11, 2018Aspirant
I got this to work for accessing shared folders, thanks a lot! Tried something similar before but must have had some syntax error.
Still haven't figured out how to access a given user's folder inside the Home directory, but that's less important.
- StephenBApr 12, 2018Guru - Experienced User
aeth wrote:
Still haven't figured out how to access a given user's folder inside the Home directory, but that's less important.
The same command should work, using <user> as the sharename. Home isn't part of the path.
mount -t cifs -o username=<user>,password=<password> //<NAS-IP-Address>/<user> /mnt
- aethApr 12, 2018Aspirant
This also worked perfectly! I feel like I tried this before, but clearly was doing something wrong. Thank you very much for your help, everything now working as hoped.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!