Update guest login for smb_config 0.4

This commit is contained in:
pvizeli
2017-04-18 10:35:21 +02:00
parent 992d77195a
commit 743b6ef888
4 changed files with 4 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
# Samba Config # Samba Config
Expose config to samba share. Expose HomeAssistant config to samba share.
## Options ## Options

View File

@@ -1,6 +1,6 @@
{ {
"name": "Samba Config", "name": "Samba Config",
"version": "0.3", "version": "0.4",
"slug": "smb_config", "slug": "smb_config",
"description": "Expose config with samba", "description": "Expose config with samba",
"startup": "after", "startup": "after",

View File

@@ -16,6 +16,7 @@ if [ $GUEST == "true" ]; then
echo " public = yes" >> /etc/smb.conf echo " public = yes" >> /etc/smb.conf
sed -i "s/#guest account/guest account/g" /etc/smb.conf sed -i "s/#guest account/guest account/g" /etc/smb.conf
sed -i "s/#map to guest/map to guest/g" /etc/smb.conf
else else
echo " valid users = $USERNAME" >> /etc/smb.conf echo " valid users = $USERNAME" >> /etc/smb.conf
echo " force user = root" >> /etc/smb.conf echo " force user = root" >> /etc/smb.conf

View File

@@ -7,6 +7,7 @@
disable spoolss = yes disable spoolss = yes
#guest account = root #guest account = root
#map to guest = Bad User
[config] [config]
browseable = yes browseable = yes