Mount QNAP shares into Ubuntu hiding user/pass

FTP Server, File Server, DDNS, SAMBA, AFP, NFS
Post Reply
Tonatiuh
Starting out
Posts: 15
Joined: Tue Jul 17, 2018 10:49 am

Mount QNAP shares into Ubuntu hiding user/pass

Post by Tonatiuh »

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
Mousetick
Experience counts
Posts: 1081
Joined: Thu Aug 24, 2017 10:28 pm

Re: Mount QNAP shares into Ubuntu hiding user/pass

Post by Mousetick »

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.
Post Reply

Return to “File Sharing”