vsftpd userlist options added
svn path=/nixos/trunk/; revision=14648
This commit is contained in:
parent
7b7a29b201
commit
1220a6da39
@ -309,7 +309,8 @@ let
|
|||||||
(import ../upstart-jobs/vsftpd.nix {
|
(import ../upstart-jobs/vsftpd.nix {
|
||||||
inherit (pkgs) vsftpd;
|
inherit (pkgs) vsftpd;
|
||||||
inherit (config.services.vsftpd) anonymousUser localUsers
|
inherit (config.services.vsftpd) anonymousUser localUsers
|
||||||
writeEnable anonymousUploadEnable anonymousMkdirEnable;
|
writeEnable anonymousUploadEnable anonymousMkdirEnable
|
||||||
|
chrootlocaluser userlistenable userlistdeny;
|
||||||
})
|
})
|
||||||
|
|
||||||
# X Font Server
|
# X Font Server
|
||||||
|
@ -4,7 +4,14 @@
|
|||||||
server string = %h
|
server string = %h
|
||||||
comment = Samba
|
comment = Samba
|
||||||
local master = no
|
local master = no
|
||||||
[default]
|
|
||||||
path = /home/smbd
|
#[default]
|
||||||
|
# path = /home/smbd
|
||||||
|
# read only = no
|
||||||
|
# guest ok = yes
|
||||||
|
|
||||||
|
[raidbackup]
|
||||||
|
path = /home/raidbackup
|
||||||
read only = no
|
read only = no
|
||||||
guest ok = yes
|
guest ok = no
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{ vsftpd, anonymousUser, localUsers
|
{ vsftpd, anonymousUser, localUsers
|
||||||
, anonymousUploadEnable, anonymousMkdirEnable, writeEnable
|
, anonymousUploadEnable, anonymousMkdirEnable, writeEnable
|
||||||
|
, chrootlocaluser, userlistenable, userlistdeny
|
||||||
}:
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -70,6 +71,27 @@ else
|
|||||||
"
|
"
|
||||||
anon_mkdir_write_enable=NO"
|
anon_mkdir_write_enable=NO"
|
||||||
) +
|
) +
|
||||||
|
(if chrootlocaluser then
|
||||||
|
"
|
||||||
|
chroot_local_user=YES"
|
||||||
|
else
|
||||||
|
"
|
||||||
|
chroot_local_user=NO"
|
||||||
|
) +
|
||||||
|
(if userlistenable then
|
||||||
|
"
|
||||||
|
userlist_enable=YES"
|
||||||
|
else
|
||||||
|
"
|
||||||
|
userlist_enable=NO"
|
||||||
|
) +
|
||||||
|
(if userlistdeny then
|
||||||
|
"
|
||||||
|
userlist_deny=YES"
|
||||||
|
else
|
||||||
|
"
|
||||||
|
userlist_deny=NO"
|
||||||
|
) +
|
||||||
"
|
"
|
||||||
background=NO
|
background=NO
|
||||||
listen=YES
|
listen=YES
|
||||||
|
Loading…
x
Reference in New Issue
Block a user