QNAP TVS-1282T3
Ubuntu 20.04 Desktop
My /etc/fstab:
<MyQNAP>:/MyShare/ /mnt/MyQNAPShare nfs async,credentials=/etc/nas-credentials 0 0
My /etc/credentials:
user=myUser
password=myPasswd
Is there a way to mount this QNAP share hiding the password?
Regards
Mount QNAP shares into Ubuntu hiding user/pass
-
- Starting out
- Posts: 15
- Joined: Tue Jul 17, 2018 10:49 am
-
- Experience counts
- Posts: 1081
- Joined: Thu Aug 24, 2017 10:28 pm
Re: Mount QNAP shares into Ubuntu hiding user/pass
I don't understand what you're trying to do or what the problem is.
1. The mount options in fstab don't make sense. You can't use user/password authentication with NFS. Did you mean to use CIFS (aka SMB)?
2. The password is hidden in /etc/nas-credentials. If you don't want other users to see its contents, change the ownership and permissions of that file so that it's readable only by root.
1. The mount options in fstab don't make sense. You can't use user/password authentication with NFS. Did you mean to use CIFS (aka SMB)?
2. The password is hidden in /etc/nas-credentials. If you don't want other users to see its contents, change the ownership and permissions of that file so that it's readable only by root.