Skip to content

Instantly share code, notes, and snippets.

@rtfmoz
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtfmoz/6b058023bb419c76c60c to your computer and use it in GitHub Desktop.
Save rtfmoz/6b058023bb419c76c60c to your computer and use it in GitHub Desktop.
QNAP ProFTPD Testing - User Home Directories
---=== CONFIGURATION ===---
[/etc/config] # cat /etc/config/uLinux.conf
[System]
Model = TS-412
Internal Model = TS-419
Server comment =
Version = 4.1.1
Build Number = 20141003
... etc
[FTP]
ServerName = ProFTPD
Enable = True
Port = 21
MaxInstances = 30
User = guest
Group = guest
DefaultRoot = ~
MaxAnonymous = 30
AllowAnonymous = False
Unicode = 0
CharsetRemote = 999
SSL MODE = 1
Passive Enabled = 1
Bandwidth Enabled = 0
Max connection per account = 10
EnableUserWanIp = FALSE
WanIp =
[/etc/config] # cat /etc/config/proftpd.conf
ServerName "ProFTPD"
ServerType standalone
DefaultServer on
RootLogin on
Port 21
MaxInstances 30
User guest
Group guest
DefaultRoot ~
Umask 000
ShowSymlinks off
AllowOverwrite on
TimesGMT off
UseReverseDNS off
WtmpLog off
AllowStoreRestart on
TransferLog NONE
UseReverseDNS off
IdentLookups off
DisplayLogin /etc/config/welcome.msg
... etc
[/etc/config] # more /etc/passwd
admin:x:0:0:administrator:/share/homes/admin:/bin/sh
guest:x:65534:65534:guest:/share/homes/guest:/bin/sh
httpdusr:x:99:0:Apache httpd user:/tmp:/bin/sh
TimeMachine:x:100:65534:TM Backup User:/share/homes/TimeMachine:/bin/sh
mypress:x:500:100:Linux User,,,:/share/Web/kevin:/bin/sh
---=== TESTING ===---
Both mypress and admin user logins.
PROFTPD Debug output (-d 1)
- mod_tls/2.2.2: compiled using OpenSSL version 'OpenSSL 1.0.1h 5 Jun 2014' headers, but linked to OpenSSL version 'OpenSSL 1.0.1i 6 Aug 2014' library
- NAS buf=guest name=guest
QNAS - mod_tls/2.2.2: passphrase locked into memory
QNAS - mod_lang/0.9: unable to scan the localised files in '/usr/local/share/locale': No such file or directory
QNAS - QNAP SIGHUP signals installed
QNAS - QNAP SIGUSR* signals installed
QNAS - notice: 'ProFTPD' (0.0.0.0:21) already bound to 'ProFTPD'
QNAS - bindings.c:173: notice: unable to create ipbind 'QNAS': Address already in use
QNAS - ProFTPD 1.3.2e (maint) (built Wed Sep 24 16:48:37 CST 2014) standalone mode STARTUP
QNAS - Qgenetate_fifo_name(/share/.proftpd.fifo/confr-15814)
QNAS - Qgenetate_fifo_name(/share/.proftpd.fifo/confw-15814)
QNAS - Qgenetate_fifo_name(/share/.proftpd.fifo/rpcr-15814)
QNAS - Qgenetate_fifo_name(/share/.proftpd.fifo/rpcw-15814)
QNAS (192.168.0.21[192.168.0.21]) - FTP session opened.
QNAS (192.168.0.21[192.168.0.21]) - [mypress]
QNAS (192.168.0.21[192.168.0.21]) - [mypressure]
QNAS (192.168.0.21[192.168.0.21]) - NAS buf=mypress name=mypress
QNAS (192.168.0.21[192.168.0.21]) - NAS buf= name=
QNAS (192.168.0.21[192.168.0.21]) - NAS buf= name=
QNAS (192.168.0.21[192.168.0.21]) - notice: unable to use '~/' [resolved to '']: No such file or directory
QNAS (192.168.0.21[192.168.0.21]) - New pw_dir [~/]
QNAS (192.168.0.21[192.168.0.21]) - NAS user=mypress
QNAS (192.168.0.21[192.168.0.21]) - NAS chkpwd and permission success !!
QNAS (192.168.0.21[192.168.0.21]) - Create USER mypress 's Home
QNAS (192.168.0.21[192.168.0.21]) - Get_Private_Profile_String (security: USER, workgroup: WORKGROUP)
QNAS (192.168.0.21[192.168.0.21]) - user: mypress, type: 0
QNAS (192.168.0.21[192.168.0.21]) - NAS buf=mypress name=mypress
QNAS (192.168.0.21[192.168.0.21]) - NAS buf=mypress name=mypress
QNAS (192.168.0.21[192.168.0.21]) - NAS buf=mypress name=mypress
QNAS (192.168.0.21[192.168.0.21]) - NAS buf=mypress name=mypress
QNAS (192.168.0.21[192.168.0.21]) - Preparing to chroot to directory '/share/MD0_DATA/Web/kevin'
QNAS (192.168.0.21[192.168.0.21]) - shm_add_user(mypress, 192.168.0.21) ret 0
QNAS (192.168.0.21[192.168.0.21]) - fsio_chroot_path=(nil)
QNAS (192.168.0.21[192.168.0.21]) - Call chroot(/share/MD0_DATA/Web/kevin)
QNAS (192.168.0.21[192.168.0.21]) - Environment successfully chroot()ed
QNAS (192.168.0.21[192.168.0.21]) - SendConnToLogEngine(mypress, 192.168.0.21, CONN_ACTION_LOGIN_SUCC) return 0
QNAS (192.168.0.21[192.168.0.21]) - mod_cap/1.0: capabilities '= cap_net_bind_service+ep'
QNAS (192.168.0.21[192.168.0.21]) - NVR::auth_post_pass::(0, 1)
QNAS (192.168.0.21[192.168.0.21]) - USER mypress: Login successful.
QNAS (192.168.0.21[192.168.0.21]) - []
QNAS (192.168.0.21[192.168.0.21]) - []
QNAS (192.168.0.21[192.168.0.21]) - []
QNAS (192.168.0.21[192.168.0.21]) - []
QNAS (192.168.0.21[192.168.0.21]) - FTP session closed.
QNAS - Qgenetate_fifo_name(/share/.proftpd.fifo/confr-15832)
QNAS - Qgenetate_fifo_name(/share/.proftpd.fifo/confw-15832)
QNAS - Qgenetate_fifo_name(/share/.proftpd.fifo/rpcr-15832)
QNAS - Qgenetate_fifo_name(/share/.proftpd.fifo/rpcw-15832)
QNAS (192.168.0.21[192.168.0.21]) - FTP session opened.
QNAS (192.168.0.21[192.168.0.21]) - [admin]
QNAS (192.168.0.21[192.168.0.21]) - [chr1st1el1ves]
QNAS (192.168.0.21[192.168.0.21]) - NAS buf=admin name=admin
QNAS (192.168.0.21[192.168.0.21]) - NAS buf= name=
QNAS (192.168.0.21[192.168.0.21]) - NAS buf= name=
QNAS (192.168.0.21[192.168.0.21]) - notice: unable to use '~/' [resolved to '']: No such file or directory
QNAS (192.168.0.21[192.168.0.21]) - New pw_dir [~/]
QNAS (192.168.0.21[192.168.0.21]) - NAS user=admin
QNAS (192.168.0.21[192.168.0.21]) - NAS chkpwd and permission success !!
QNAS (192.168.0.21[192.168.0.21]) - Create USER admin 's Home
QNAS (192.168.0.21[192.168.0.21]) - ROOT FTP login successful.
QNAS (192.168.0.21[192.168.0.21]) - Get_Private_Profile_String (security: USER, workgroup: WORKGROUP)
QNAS (192.168.0.21[192.168.0.21]) - user: admin, type: 0
QNAS (192.168.0.21[192.168.0.21]) - NAS buf=admin name=admin
QNAS (192.168.0.21[192.168.0.21]) - NAS buf=admin name=admin
QNAS (192.168.0.21[192.168.0.21]) - NAS buf=admin name=admin
QNAS (192.168.0.21[192.168.0.21]) - NAS buf=admin name=admin
QNAS (192.168.0.21[192.168.0.21]) - Preparing to chroot to directory '/share/MD0_DATA/homes/admin'
QNAS (192.168.0.21[192.168.0.21]) - shm_add_user(admin, 192.168.0.21) ret 0
QNAS (192.168.0.21[192.168.0.21]) - fsio_chroot_path=(nil)
QNAS (192.168.0.21[192.168.0.21]) - Call chroot(/share/MD0_DATA/homes/admin)
QNAS (192.168.0.21[192.168.0.21]) - Environment successfully chroot()ed
QNAS (192.168.0.21[192.168.0.21]) - SendConnToLogEngine(admin, 192.168.0.21, CONN_ACTION_LOGIN_SUCC) return 0
QNAS (192.168.0.21[192.168.0.21]) - mod_cap/1.0: capabilities '= cap_net_bind_service+ep'
QNAS (192.168.0.21[192.168.0.21]) - NVR::auth_post_pass::(0, 1)
QNAS (192.168.0.21[192.168.0.21]) - USER admin: Login successful.
QNAS (192.168.0.21[192.168.0.21]) - []
QNAS (192.168.0.21[192.168.0.21]) - []
QNAS (192.168.0.21[192.168.0.21]) - []
QNAS (192.168.0.21[192.168.0.21]) - []
QNAS (192.168.0.21[192.168.0.21]) - FTP session closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment