Napp-it and ProFTPD problems [OmniOS]

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

nle

Member
Oct 24, 2012
204
11
18
Hi, I have some problems using the proftpd addon.

Does this look correct (near the end of add-on install, everything up to this point looks normal).
Code:
make && make install;

please wait some minutes..
In file included from pr_fnmatch.c:256:0:
pr_fnmatch_loop.c: In function 'internal_fnmatch':
pr_fnmatch_loop.c:75:7: warning: variable 'is_seqval' set but not used [-Wunused-but-set-variable]
netaddr.c:1529:12: warning: 'netaddr_get_dnsstr_gethostbyname' defined but not used [-Wunused-function]
auth.c: In function 'pr_auth_get_anon_config':
auth.c:1106:40: warning: variable 'anon_c' set but not used [-Wunused-but-set-variable]
mod_auth.c: In function 'auth_count_scoreboard':
mod_auth.c:1608:9: warning: variable 'origuser' set but not used [-Wunused-but-set-variable]
mod_auth.c:1607:26: warning: variable 'anon_config' set but not used [-Wunused-but-set-variable]


----------------
proftpd log\n$r
----------------


----------------
load manifest /opt/local/share/smf/proftpd/manifest.xml
----------------
svccfg: Taking "initial" snapshot for svc:/pkgsrc/proftpd:default.
svccfg: Taking "last-import" snapshot for svc:/pkgsrc/proftpd:default.
svccfg: Refreshed svc:/pkgsrc/proftpd:default.
svccfg: Successful import.
I am a bit unsure if it went okay or not, but as far as I can see it's only warnings.

Anyhow, in napp-it the config file was empty, so I tried to find a default config to start (removed the anonymous login part).

Code:
# This is a basic ProFTPD configuration file (rename it to 
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName			"ProFTPD Default Installation"
ServerType			standalone
DefaultServer			on

# Port 21 is the standard FTP port.
Port				21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask				022

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances			30

# Set the user and group under which the server will run.
User				nobody
Group				nogroup

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~

# Normally, we want files to be overwriteable.
<Directory />
  AllowOverwrite		on
</Directory>
When I try to start the service I get:

Code:
/var/web-gui/_log/tftpd.conf must contain -s /folder
Any help on this? Thank you! :)
 

gea

Well-Known Member
Dec 31, 2010
3,163
1,195
113
DE
Seems like you tried to start tftpd service.
This is a different service than proftp

With the upcoming napp-it 0.9e proftpd is supported on a per ZFS filesystem base.
Until then, you must configure proftpd manually per config file (like on any other Unix/Linux machine)

see The ProFTPD Project: Project Documentation
 

nle

Member
Oct 24, 2012
204
11
18
I got it working now. Thank you! :)

Had to go looking for the .conf file, but found it in /opt/local/etc/.

Do you have any suggestion for how to best add an ProFTPD only user? I'm planning to use the FTP locally as a way for our printer to save scans, and would prefer not use a user who has any other access (I'm not that trusting of printer software). I have allready jailed ProFTPD to a scan directory.

EDIT:
I got it working. I used AllowUsers in sshd_config, and also did not provide the new user with a shell. I read this blogpost.
 
Last edited: