1
0
Fork 0

Change prefix of samba home user shares

This commit is contained in:
Tobias Strobel 2021-09-12 15:28:10 +02:00
parent 7509d24245
commit e02566eca1
1 changed files with 2 additions and 3 deletions

View File

@ -8,7 +8,7 @@
# CONFIG
################################
# remove files from this line to the end
sed -i '/# NextCloudPi automatically/,/\$/d' /etc/samba/smb.conf
sed -i '/# NextCloud automatically/,/\$/d' /etc/samba/smb.conf
# restore this line
cat >> /etc/samba/smb.conf <<EOF
@ -35,10 +35,9 @@ EOF
[ -d "$DIR" ] || { echo -e "INFO: directory $DIR does not exist."; }
cat >> /etc/samba/smb.conf <<EOF
[ncp-$user]
[home-$user]
path = $DIR
writeable = yes
; browseable = yes
valid users = $user
force user = www-data
force group = www-data