2026-03-12 21:01:38
This commit is contained in:
9
tiddlywiki/My private cloud - NAS share on Linux.txt
Executable file
9
tiddlywiki/My private cloud - NAS share on Linux.txt
Executable file
@@ -0,0 +1,9 @@
|
||||
yum install -y cifs-utils.x86_64
|
||||
mkdir -p /mnt/yavin4
|
||||
echo "//192.168.0.9/share /mnt/yavin4 cifs vers=2.0,uid=smbuser,gid=smbuser,file_mode=0775,dir_mode=0775,credentials=/root/.smbcred 0 0" >> /etc/fstab
|
||||
groupadd smbuser
|
||||
useradd smbuser -G smbuser -g smbuser
|
||||
echo "username=vpl" > /root/.smbcred
|
||||
echo "password=*****" >> /root/.smbcred
|
||||
mount -a
|
||||
df -h
|
||||
Reference in New Issue
Block a user