Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Proftpd from source in CentOS. #1750

Open
Aldi1990 opened this issue Nov 23, 2023 · 2 comments
Open

Install Proftpd from source in CentOS. #1750

Aldi1990 opened this issue Nov 23, 2023 · 2 comments

Comments

@Aldi1990
Copy link

Aldi1990 commented Nov 23, 2023

What I Did

I'm trying to install Proftpd from source on CentOS but I don't know where is the problem. I used below commands

wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.6.tar.gz
  tar -zxvf proftpd-1.3.6.tar.gz
  cd proftpd-1.3.6
  ./configure
  make
  make install
whereis proftpd
proftpd: /usr/local/sbin/proftpd /usr/local/etc/proftpd.conf /usr/local/lib/proftpd
vim /usr/lib/systemd/system/proftpd.service

[Unit]
Description = ProFTPD FTP Server
After = network.target nss-lookup.target local-fs.target remote-fs.target

[Service]
Type = forking
PIDFile = /run/proftpd/proftpd.pid
Environment = PROFTPD_OPTIONS=
EnvironmentFile = -/etc/sysconfig/proftpd
ExecStart = /usr/local/sbin/proftpd $PROFTPD_OPTIONS
ExecReload = /bin/kill -HUP $MAINPID

[Install]
WantedBy = multi-user.target

After when I sterted proftpd.service I receive first error fatal: Group: Unknown group 'nogroup' on line 30 of '/usr/local/etc/proftpd.conf, When I changed line 30 from nogroup to nobody next I received second error /run/proftpd/proftpd.pid (yet?) after start: No such file or directory then I created path /run/proftpd/ but an issue still exist. By the way I diabled selinux.

ProFTPD Version and Configuration

 Version: 1.3.6 (stable)
 Platform: LINUX [Linux 3.10.0-1160.102.1.el7.x86_64 x86_64]
 Built: Thu Nov 23 2023 10:02:01 EST
 Built With:
   configure

 CFLAGS: -g2 -O2 -Wall -fno-omit-frame-pointer
 LDFLAGS: -L$(top_srcdir)/lib  -rdynamic
 LIBS:  -L$(top_srcdir)/lib/libcap -lcap -lsupp -lcrypt -ldl

 Files:
   Configuration File:
     /usr/local/etc/proftpd.conf
   Pid File:
     /usr/local/var/proftpd.pid
   Scoreboard File:
     /usr/local/var/proftpd.scoreboard

 Info:
   + Max supported UID: 4294967295
   + Max supported GID: 4294967295

 Features:
   - Autoshadow support
   - Controls support
   - curses support
   - Developer support
   - DSO support
   + IPv6 support
   + Largefile support
   - Lastlog support
   - Memcache support
   - ncurses support
   - NLS support
   - Redis support
   - Sodium support
   - OpenSSL support
   - PCRE support
   - POSIX ACL support
   + Shadow file support
   + Sendfile support
   + Trace support
   + xattr support

 Tunable Options:
   PR_TUNABLE_BUFFER_SIZE = 1024
   PR_TUNABLE_DEFAULT_RCVBUFSZ = 8192
   PR_TUNABLE_DEFAULT_SNDBUFSZ = 8192
   PR_TUNABLE_ENV_MAX = 2048
   PR_TUNABLE_GLOBBING_MAX_MATCHES = 100000
   PR_TUNABLE_GLOBBING_MAX_RECURSION = 8
   PR_TUNABLE_HASH_TABLE_SIZE = 40
   PR_TUNABLE_LOGIN_MAX = 256
   PR_TUNABLE_NEW_POOL_SIZE = 512
   PR_TUNABLE_PATH_MAX = 4096
   PR_TUNABLE_SCOREBOARD_BUFFER_SIZE = 80
   PR_TUNABLE_SCOREBOARD_SCRUB_TIMER = 30
   PR_TUNABLE_SELECT_TIMEOUT = 30
   PR_TUNABLE_TIMEOUTIDENT = 10
   PR_TUNABLE_TIMEOUTIDLE = 600
   PR_TUNABLE_TIMEOUTLINGER = 10
   PR_TUNABLE_TIMEOUTLOGIN = 300
   PR_TUNABLE_TIMEOUTNOXFER = 300
   PR_TUNABLE_TIMEOUTSTALLED = 3600
   PR_TUNABLE_XFER_SCOREBOARD_UPDATES = 10

[root@localhost proftpd-1.3.6]#
[root@localhost proftpd-1.3.6]# proftpd -V
Compile-time Settings:
 Version: 1.3.6 (stable)
 Platform: LINUX [Linux 3.10.0-1160.102.1.el7.x86_64 x86_64]
 Built: Thu Nov 23 2023 10:02:01 EST
 Built With:
   configure

 CFLAGS: -g2 -O2 -Wall -fno-omit-frame-pointer
 LDFLAGS: -L$(top_srcdir)/lib  -rdynamic
 LIBS:  -L$(top_srcdir)/lib/libcap -lcap -lsupp -lcrypt -ldl

 Files:
   Configuration File:
     /usr/local/etc/proftpd.conf
   Pid File:
     /usr/local/var/proftpd.pid
   Scoreboard File:
     /usr/local/var/proftpd.scoreboard

 Info:
   + Max supported UID: 4294967295
   + Max supported GID: 4294967295

 Features:
   - Autoshadow support
   - Controls support
   - curses support
   - Developer support
   - DSO support
   + IPv6 support
   + Largefile support
   - Lastlog support
   - Memcache support
   - ncurses support
   - NLS support
   - Redis support
   - Sodium support
   - OpenSSL support
   - PCRE support
   - POSIX ACL support
   + Shadow file support
   + Sendfile support
   + Trace support
   + xattr support

 Tunable Options:
   PR_TUNABLE_BUFFER_SIZE = 1024
   PR_TUNABLE_DEFAULT_RCVBUFSZ = 8192
   PR_TUNABLE_DEFAULT_SNDBUFSZ = 8192
   PR_TUNABLE_ENV_MAX = 2048
   PR_TUNABLE_GLOBBING_MAX_MATCHES = 100000
   PR_TUNABLE_GLOBBING_MAX_RECURSION = 8
   PR_TUNABLE_HASH_TABLE_SIZE = 40
   PR_TUNABLE_LOGIN_MAX = 256
   PR_TUNABLE_NEW_POOL_SIZE = 512
   PR_TUNABLE_PATH_MAX = 4096
   PR_TUNABLE_SCOREBOARD_BUFFER_SIZE = 80
   PR_TUNABLE_SCOREBOARD_SCRUB_TIMER = 30
   PR_TUNABLE_SELECT_TIMEOUT = 30
   PR_TUNABLE_TIMEOUTIDENT = 10
   PR_TUNABLE_TIMEOUTIDLE = 600
   PR_TUNABLE_TIMEOUTLINGER = 10
   PR_TUNABLE_TIMEOUTLOGIN = 300
   PR_TUNABLE_TIMEOUTNOXFER = 300
   PR_TUNABLE_TIMEOUTSTALLED = 3600
   PR_TUNABLE_XFER_SCOREBOARD_UPDATES = 10
@Castaglia
Copy link
Member

What does your proftpd.conf look like?

@Aldi1990
Copy link
Author

Aldi1990 commented Nov 27, 2023

My proftpd.conf looks like below

# 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

# Don't use IPv6 support by default.
UseIPv6                         off

# 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                           nobody

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

# Normally, we want files to be overwriteable.
AllowOverwrite          on

# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
  DenyAll
</Limit>

# A basic anonymous configuration, no upload directories.  If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous ~ftp>
  User                          ftp
  Group                         ftp

  # We want clients to be able to login with "anonymous" as well as "ftp"
  UserAlias                     anonymous ftp

  # Limit the maximum number of anonymous logins
  MaxClients                    10

  # We want 'welcome.msg' displayed at login, and '.message' displayed
  # in each newly chdired directory.
  DisplayLogin                  welcome.msg
  DisplayChdir                  .message

  # Limit WRITE everywhere in the anonymous chroot
  <Limit WRITE>
    DenyAll
  </Limit>
</Anonymous>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants