twbsd.org
 
  Select Language: Home  SmbFTPD Forum 
SmbFTPD
Forum -> SmbFTPD
Umask参数设置为000后,smbftpd服务无法启动
wangjf -
您好:

[root@euler05 smbftpd]# cat smbftpd.conf
ServerName      XDFS
ShowProgramVersion      Yes
Port    21
Umask   000
DebugMode       Yes
LogCommand      Yes
DoWtmpLog       Yes
PassiveModePortRange    49152-65534
RequireValidShell       No
EmptyPasswdLogin        No
DefaultMode     SMB
ShareConfPath   /etc/smbftpd/smbftpd_share.conf
ShowSymlinks    Yes
ShowDotFiles    Yes
AnonymousLogin  No
AnonymousOnly   No
AnonymousReadOnly       No
TransferLog     /var/log/smbftpd/smbftpd.log
SecurityPolicy  nosecure
SupportUTF8Client       Yes
CharsetEncoding CP936
UsingUTF8FileSystem     Yes

[root@euler05 smbftpd]# systemctl restart smbftpd.service
Job for smbftpd.service failed because the control process exited with error code.
See "systemctl status smbftpd.service" and "journalctl -xeu smbftpd.service" for details.

[root@euler05 smbftpd]# systemctl status smbftpd.service
× smbftpd.service - SmbFTPD daemon
     Loaded: loaded (/usr/lib/systemd/system/smbftpd.service; disabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Mon 2025-07-07 16:38:23 CST; 6s ago

Jul 07 16:38:23 euler05 systemd[1]: Starting SmbFTPD daemon...
Jul 07 16:38:23 euler05 systemd[1]: smbftpd.service: Control process exited, code=exited, status=1/FAILURE
Jul 07 16:38:23 euler05 systemd[1]: smbftpd.service: Failed with result 'exit-code'.
Jul 07 16:38:23 euler05 systemd[1]: Failed to start SmbFTPD daemon.

Copyright © 2002-2025 Alex Wang from www.twbsd.org. All rights reserved.