2014-09-30 09:49:07 +00:00
|
|
|
from django.conf import settings
|
|
|
|
|
|
|
|
from django.utils.translation import ugettext, ugettext_lazy as _
|
|
|
|
|
|
|
|
|
2014-10-01 16:42:40 +00:00
|
|
|
SYSTEMUSERS_SHELLS = getattr(settings, 'SYSTEMUSERS_SHELLS', (
|
2014-10-02 15:58:27 +00:00
|
|
|
('/dev/null', _("No shell, FTP only")),
|
|
|
|
('/bin/rssh', _("No shell, SFTP/RSYNC only")),
|
2014-09-30 10:20:11 +00:00
|
|
|
('/bin/bash', "/bin/bash"),
|
|
|
|
('/bin/sh', "/bin/sh"),
|
2014-09-30 09:49:07 +00:00
|
|
|
))
|
|
|
|
|
2014-11-14 14:38:06 +00:00
|
|
|
|
2015-03-31 12:39:08 +00:00
|
|
|
SYSTEMUSERS_DEFAULT_SHELL = getattr(settings, 'SYSTEMUSERS_DEFAULT_SHELL',
|
|
|
|
'/dev/null'
|
|
|
|
)
|
2014-10-01 16:42:40 +00:00
|
|
|
|
|
|
|
|
2014-11-14 14:38:06 +00:00
|
|
|
SYSTEMUSERS_DISABLED_SHELLS = getattr(settings, 'SYSTEMUSERS_DISABLED_SHELLS', (
|
|
|
|
'/dev/null',
|
|
|
|
'/bin/rssh',
|
|
|
|
))
|
|
|
|
|
|
|
|
|
2015-03-31 12:39:08 +00:00
|
|
|
SYSTEMUSERS_HOME = getattr(settings, 'SYSTEMUSERS_HOME',
|
|
|
|
'/home/%(user)s'
|
|
|
|
)
|
2014-10-01 16:42:40 +00:00
|
|
|
|
|
|
|
|
2015-03-31 12:39:08 +00:00
|
|
|
SYSTEMUSERS_FTP_LOG_PATH = getattr(settings, 'SYSTEMUSERS_FTP_LOG_PATH',
|
|
|
|
'/var/log/vsftpd.log'
|
|
|
|
)
|
2014-10-24 14:19:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
SYSTEMUSERS_DEFAULT_GROUP_MEMBERS = getattr(settings, 'SYSTEMUSERS_DEFAULT_GROUP_MEMBERS',
|
2015-03-31 12:39:08 +00:00
|
|
|
('www-data',)
|
|
|
|
)
|