mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
Update setup-fstab.sh
This commit is contained in:
1 parent
c5aafa3b3b
commit
a8793ddf9b
1 file changed
+3
-3
@@ -38,13 +38,13 @@ mkdir naspublic-share2
|
||||
|
||||
# Echo the command below into the file /etc/fstab
|
||||
echo '# NAS Public Share
|
||||
//nas/Public /mnt/naspublic cifs credentials=/root/.smbcredentials,vers=2.0,file_mode=0777,dir_mode=0777,_netdev,x-systemd.automount,nofail 0 0
|
||||
//nas/public /mnt/naspublic cifs credentials=/root/.smbcredentials,vers=3.0,file_mode=0777,dir_mode=0777,_netdev,x-systemd.automount,nofail 0 0
|
||||
|
||||
# NAS Media Share
|
||||
//nas/media /mnt/nasmedia cifs credentials=/root/.smbcredentials,vers=2.0,file_mode=0777,dir_mode=0777,_netdev,x-systemd.automount,nofail 0 0
|
||||
//nas/media /mnt/nasmedia cifs credentials=/root/.smbcredentials,vers=3.0,file_mode=0777,dir_mode=0777,_netdev,x-systemd.automount,nofail 0 0
|
||||
|
||||
# NAS Public2 Share
|
||||
//nas/public2 /mnt/naspublic-share2 cifs credentials=/root/.smbcredentials,vers=2.0,file_mode=0777,dir_mode=0777,_netdev,x-systemd.automount,nofail 0 0' | sudo tee -a /etc/fstab
|
||||
//nas/public2 /mnt/naspublic-share2 cifs credentials=/root/.smbcredentials,vers=3.0,file_mode=0777,dir_mode=0777,_netdev,x-systemd.automount,nofail 0 0' | sudo tee -a /etc/fstab
|
||||
|
||||
# Mount the file systems
|
||||
mount -a
|
||||
Reference in new issue
Block a user