2024-07-18, 05:34 PM
(This post was last modified: 2024-07-18, 05:35 PM by TheDreadPirate. Edited 1 time in total.)
You could. But the better option is to create a private text file with your username and password and use the "credentials" option in the fstab parameters. If you put the password directly in the fstab mount then anyone can see the password with "cat /proc/mount". Fstab would look like this.
You can put the .smbcredentials file anywhere. That was just an example, but I recommend you put it in a private directory. The contents of the .smbcredentials file would look like.
Code:
//192.168.0.216/Public /media/Public cifs credentials=/home/stooovie/.smbcredentials,noperm,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
You can put the .smbcredentials file anywhere. That was just an example, but I recommend you put it in a private directory. The contents of the .smbcredentials file would look like.
Code:
username=stooovie
password=<INSERT STOOOVIE'S PASSWORD>