Pure-FTPd: Add full name (syntax) when creating a new virtual user

Written by - 0 comments

Published on - Listed in Linux

Are you asking yourself, which argument is used to set the "full name" in pure-ftpd?
The full name is shown in in the pure-pw list command and is helpful for a description:

pure-pw list
global              /srv/www/websites/./                Global View
web1                /srv/www/websites/web1/./           web1.example.com
web2                /srv/www/websites/web2/./           web2.example.com
web3                /srv/www/websites/web3/./           web3.example.com

Of course you have checked the man page, but it only describes this:

       pure-pw useradd login [-f passwd_file] [-F puredb_file] -u uid [-g gid]
                       -D/-d home_directory [-c gecos]
                       [-t download_bandwidth] [-T upload_bandwidth]
                       [-n max number_of_files] [-N max_Mbytes]
                       [-q upload_ratio] [-Q download_ratio]
                       [-r /[,/]...] [-R /[,/]...]
                       [-i /[,/]...] [-I /[,/]...]
                       [-y ]
                       [-z -] [-m]

As stupid as it sounds, but I couldn't find any document defining which parameter is used for the full name.
I only found the following hint on the official pure-ftpd documentation for Virtual Users:

Once virtual users have been created, you can edit their info. For instance
you can add bandwidth throttling, change quotas, add their full name, update
ratio, etc.

This description can cause some confusion, because you can actually add "full name" during the creation, not only after a virtual user has already been created.

After just try'n'err, I found out that the magic parameter is [-c] which was probably named for "comment", although pure-ftpd calls it "full name". So with -c the full name can be set during creation:

pure-pw useradd web4 -u ftpuser -g ftpgroup -m -d /srv/www/websites/web4/ -c "web4.example.com"

This can be verified with the pure-pw show command:

pure-pw show web4
Login              : web4
Password           : $2a$07$IIyR6Stseeq2TmQ8V8vGLu/dAs0N8Rt9z0zSpSpY5oS.7hu7y7v/6
UID                : 1000 (ftpuser)
GID                : 1001 (ftpgroup)
Directory          : /srv/www/websites/web4/./
Full name          : web4.example.com

Add a comment

Show form to leave a comment

Comments (newest first)

No comments yet.

RSS feed

Blog Tags:

  AWS   Android   Ansible   Apache   Apple   Atlassian   BSD   Backup   Bash   Bluecoat   CMS   Chef   Cloud   Coding   Consul   Containers   CouchDB   DB   DNS   Database   Databases   Docker   ELK   Elasticsearch   Filebeat   FreeBSD   Galera   Git   GlusterFS   Grafana   Graphics   HAProxy   HTML   Hacks   Hardware   Icinga   Icingaweb   Icingaweb2   Influx   Internet   Java   KVM   Kibana   Kodi   Kubernetes   LVM   LXC   Linux   Logstash   Mac   Macintosh   Mail   MariaDB   Minio   MongoDB   Monitoring   Multimedia   MySQL   NFS   Nagios   Network   Nginx   OSSEC   OTRS   Office   PGSQL   PHP   Perl   Personal   PostgreSQL   Postgres   PowerDNS   Proxmox   Proxy   Python   Rancher   Rant   Redis   Roundcube   SSL   Samba   Seafile   Security   Shell   SmartOS   Solaris   Surveillance   Systemd   TLS   Tomcat   Ubuntu   Unix   VMWare   VMware   Varnish   Virtualization   Windows   Wireless   Wordpress   Wyse   ZFS   Zoneminder   

Update cookies preferences