diff --git a/conf/umtprd.conf b/conf/umtprd.conf index 7c527c4..e24ba8e 100644 --- a/conf/umtprd.conf +++ b/conf/umtprd.conf @@ -9,14 +9,51 @@ loop_on_disconnect 0 # Force the default UID/GID to use for each storage file operations. -# Note : When no default UID/GID are specified the umtprd process UID/GID +# Note : When no default UID/GID are specified the umtprd process UID/GID # are used instead. #default_uid 33 + +## group: mtp #default_gid 33 +# +# umask value for uploaded folders and files +# +# Uncomment the umask command line if you want to +# override the system default umask value for +# the uploaded folders and files. +# +# umask format description : +# +# umask 022 +# ugo +# +# u : user/owner part of mask +# g : group part of mask +# o : others/not-in-group part of mask +# +# Octal digit definition in umask command : +# +# 0 : Any permission may be set. (Read, Write, eXecute) +# 1 : Setting of execute permission is prohibited. (Read and Write) +# 2 : Setting of write permission is prohibited. (Read and eXecute) +# 3 : Setting of write and execute permissions is prohibited. (Read only) +# 4 : Setting of read permission is prohibited. (Write and eXecute) +# 5 : Setting of read and execute permissions is prohibited. (Write only) +# 6 : Setting of read and write permissions is prohibited. (eXecute only) +# 7 : All permissions are prohibited from being set. (No permission) +# + +# Example : +# User : Read, Write, eXecute. (0) +# Group : Read, eXecute but no Write. (2) +# Others : Read, eXecute but no Write, (2) + +#umask 022 + # Storage command : Create add a storage entry point. Up to 16 entry points supported -# Syntax : storage "PATH" "NAME" "OPTIONS" +# Syntax : storage "PATH" "NAME" "OPTIONS" # Possible store options : # "rw" = read/write access # "ro" = read only @@ -36,14 +73,6 @@ storage "/" "lockable root folder" "rw,locked" storage "/home/user" "user folder" "rw,locked,uid=33,gid=33" -# -# Uncomment the following line if you want to -# override the system default umask value for -# the uploaded files. -# - -#umask 022 - # Set the USB manufacturer string manufacturer "Viveris Technologies" @@ -87,7 +116,7 @@ usb_dev_version 0x3008 # user un-plugged a non-battery-powered device too soon when there are still buffered data # stayed in the RAM -# sync_when_close 0x0 +# sync_when_close 0x0 # # Internal buffers size