Skip to content

Commit

Permalink
document the umask setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfdelnero committed Nov 2, 2024
1 parent 69cb60c commit 87a3f4a
Showing 1 changed file with 40 additions and 11 deletions.
51 changes: 40 additions & 11 deletions conf/umtprd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 87a3f4a

Please sign in to comment.