0
0
Fork 0
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:
Adrian Dvergsdal 2017-10-22 23:25:52 +02:00
parent f3212b3377
commit 59ad42f086
No known key found for this signature in database
GPG key ID: C1E9E2D9552A42D2

View file

@ -7,7 +7,7 @@ userConfPathLegacy="/etc/sftp-users.conf"
userConfFinalPath="/var/run/sftp/users.conf"
# 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}'
reUid='[[:digit:]]*'
reGid='[[:digit:]]*'