mirror of
https://github.com/atmoz/sftp.git
synced 2024-11-17 12:51:33 -05:00
Less stricter username regex (but still POSIX)
For more info See this answer: https://serverfault.com/a/578264 Relevant issue: https://github.com/atmoz/sftp/issues/94
This commit is contained in:
parent
f3212b3377
commit
59ad42f086
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ userConfPathLegacy="/etc/sftp-users.conf"
|
||||||
userConfFinalPath="/var/run/sftp/users.conf"
|
userConfFinalPath="/var/run/sftp/users.conf"
|
||||||
|
|
||||||
# Extended regular expression (ERE) for arguments
|
# Extended regular expression (ERE) for arguments
|
||||||
reUser='[a-z_][a-z0-9._-]{0,31}'
|
reUser='[A-Za-z0-9._][A-Za-z0-9._-]{0,31}' # POSIX.1-2008
|
||||||
rePass='[^:]{0,255}'
|
rePass='[^:]{0,255}'
|
||||||
reUid='[[:digit:]]*'
|
reUid='[[:digit:]]*'
|
||||||
reGid='[[:digit:]]*'
|
reGid='[[:digit:]]*'
|
||||||
|
|
Loading…
Reference in a new issue