Change prefix of samba home user shares
This commit is contained in:
parent
7509d24245
commit
e02566eca1
1 changed files with 2 additions and 3 deletions
|
@ -8,7 +8,7 @@
|
||||||
# CONFIG
|
# CONFIG
|
||||||
################################
|
################################
|
||||||
# remove files from this line to the end
|
# 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
|
# restore this line
|
||||||
cat >> /etc/samba/smb.conf <<EOF
|
cat >> /etc/samba/smb.conf <<EOF
|
||||||
|
@ -35,10 +35,9 @@ EOF
|
||||||
[ -d "$DIR" ] || { echo -e "INFO: directory $DIR does not exist."; }
|
[ -d "$DIR" ] || { echo -e "INFO: directory $DIR does not exist."; }
|
||||||
|
|
||||||
cat >> /etc/samba/smb.conf <<EOF
|
cat >> /etc/samba/smb.conf <<EOF
|
||||||
[ncp-$user]
|
[home-$user]
|
||||||
path = $DIR
|
path = $DIR
|
||||||
writeable = yes
|
writeable = yes
|
||||||
; browseable = yes
|
|
||||||
valid users = $user
|
valid users = $user
|
||||||
force user = www-data
|
force user = www-data
|
||||||
force group = www-data
|
force group = www-data
|
||||||
|
|
Loading…
Reference in a new issue