samba.sh / README.md try to clarify the share users argument...
This commit is contained in:
parent
a02e294ae6
commit
db6583b997
@ -36,6 +36,7 @@ OR set local storage:
|
|||||||
required arg: "<name>;<comment>;</path>"
|
required arg: "<name>;<comment>;</path>"
|
||||||
<name> is how it's called for clients
|
<name> is how it's called for clients
|
||||||
<path> path to share
|
<path> path to share
|
||||||
|
NOTE: for the default values, just leave blank
|
||||||
[browseable] default:'yes' or 'no'
|
[browseable] default:'yes' or 'no'
|
||||||
[readonly] default:'yes' or 'no'
|
[readonly] default:'yes' or 'no'
|
||||||
[guest] allowed default:'yes' or 'no'
|
[guest] allowed default:'yes' or 'no'
|
||||||
|
3
samba.sh
3
samba.sh
@ -46,7 +46,7 @@ share() { local share="$1" path="$2" browse=${3:-yes} ro=${4:-yes}\
|
|||||||
echo " browseable = $browse" >> $file
|
echo " browseable = $browse" >> $file
|
||||||
echo " read only = $ro" >> $file
|
echo " read only = $ro" >> $file
|
||||||
echo " guest ok = $guest" >> $file
|
echo " guest ok = $guest" >> $file
|
||||||
[[ ${users:-""} ]] &&
|
[[ ${users:-""} && ! ${users:-""} =~ all ]] &&
|
||||||
echo " valid users = $(tr ',' ' ' <<< $users)" >> $file
|
echo " valid users = $(tr ',' ' ' <<< $users)" >> $file
|
||||||
echo -e "" >> $file
|
echo -e "" >> $file
|
||||||
}
|
}
|
||||||
@ -88,6 +88,7 @@ Options (fields in '[]' are optional, '<>' are required):
|
|||||||
required arg: \"<name>;<comment>;</path>\"
|
required arg: \"<name>;<comment>;</path>\"
|
||||||
<name> is how it's called for clients
|
<name> is how it's called for clients
|
||||||
<path> path to share
|
<path> path to share
|
||||||
|
NOTE: for the default value, just leave blank
|
||||||
[browseable] default:'yes' or 'no'
|
[browseable] default:'yes' or 'no'
|
||||||
[readonly] default:'yes' or 'no'
|
[readonly] default:'yes' or 'no'
|
||||||
[guest] allowed default:'yes' or 'no'
|
[guest] allowed default:'yes' or 'no'
|
||||||
|
Loading…
Reference in New Issue
Block a user