mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
dfg
erwe
This commit is contained in:
1 parent
aebb6eaf18
commit
ade44a373a
1 file changed
+8
-5
@@ -1,4 +1,7 @@
|
|||||||
# base
|
# asking for password for fstab entry
|
||||||
|
read -s -p "Enter password: " PASSWORD
|
||||||
|
|
||||||
|
# installed needed package
|
||||||
apt update
|
apt update
|
||||||
apt-get -y install \
|
apt-get -y install \
|
||||||
samba-common-bin \
|
samba-common-bin \
|
||||||
@@ -17,8 +20,8 @@ mkdir nasmedia
|
|||||||
mkdir naspublic
|
mkdir naspublic
|
||||||
|
|
||||||
# Echo the command below into the file /etc/fstab
|
# Echo the command below into the file /etc/fstab
|
||||||
echo '//nas/public /media/naspublic cifs vers=2.0,username=admin,password=(enterhere),file_mode=0777,dir_mode=0777,_netdev,auto 0 0
|
echo '//nas/public /media/naspublic cifs vers=2.0,username=admin,password=$PASSWORD,file_mode=0777,dir_mode=0777,_netdev,auto 0 0
|
||||||
//nas/DownloadedMedia /media/nasdownloadedmedia cifs vers=2.0,username=admin,password=(Enterhere),file_mode=0777,dir_mode=0777,_netdev,auto 0 0' | sudo tee -a /etc/fstab
|
//nas/DownloadedMedia /media/nasdownloadedmedia cifs vers=2.0,username=admin,password=$PASSWORD,file_mode=0777,dir_mode=0777,_netdev,auto 0 0' | sudo tee -a /etc/fstab
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Mount the file systems
|
||||||
|
mount -a
|
||||||
Reference in new issue
Block a user