51 lines
1 KiB
Python
51 lines
1 KiB
Python
from django.utils.translation import ugettext_lazy as _
|
|
|
|
from orchestra.settings import Setting
|
|
|
|
|
|
SYSTEMUSERS_SHELLS = Setting('SYSTEMUSERS_SHELLS', (
|
|
('/dev/null', _("No shell, FTP only")),
|
|
('/bin/rssh', _("No shell, SFTP/RSYNC only")),
|
|
('/bin/bash', "/bin/bash"),
|
|
('/bin/sh', "/bin/sh"),
|
|
),
|
|
validators=[Setting.validate_choices]
|
|
)
|
|
|
|
|
|
SYSTEMUSERS_DEFAULT_SHELL = Setting('SYSTEMUSERS_DEFAULT_SHELL', '/dev/null',
|
|
choices=SYSTEMUSERS_SHELLS
|
|
)
|
|
|
|
|
|
SYSTEMUSERS_DISABLED_SHELLS = Setting('SYSTEMUSERS_DISABLED_SHELLS',
|
|
default=(
|
|
'/dev/null',
|
|
'/bin/rssh',
|
|
),
|
|
)
|
|
|
|
|
|
SYSTEMUSERS_HOME = Setting('SYSTEMUSERS_HOME',
|
|
'/home/%(user)s'
|
|
)
|
|
|
|
|
|
SYSTEMUSERS_FTP_LOG_PATH = Setting('SYSTEMUSERS_FTP_LOG_PATH',
|
|
'/var/log/vsftpd.log'
|
|
)
|
|
|
|
|
|
SYSTEMUSERS_MAIL_LOG_PATH = Setting('SYSTEMUSERS_MAIL_LOG_PATH',
|
|
'/var/log/exim4/mainlog'
|
|
)
|
|
|
|
SYSTEMUSERS_DEFAULT_GROUP_MEMBERS = Setting('SYSTEMUSERS_DEFAULT_GROUP_MEMBERS',
|
|
('www-data',)
|
|
)
|
|
|
|
|
|
SYSTEMUSERS_MOVE_ON_DELETE_PATH = Setting('SYSTEMUSERS_MOVE_ON_DELETE_PATH',
|
|
''
|
|
)
|