- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Guest FTP account not logging (chrooted)
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 06:47 AM
08-10-2005 06:47 AM
Guest FTP account not logging (chrooted)
I've searched here and do not see the same issue on anyone's post. I have setup a guest user through ftpaccess. I have logging turned on. Currently, I only allow the guest class.
The problem I am having is that, while the transfers are being logged okay into xferlog, the commands do not get logged into syslog for chrooted accounts. Works fine for real accounts when I allow them in. Anyone seen this before? I assume it has something to do with the chrooting, but am not sure.
For edification, below is my ftpaccess file currently:
#class all real,guest,anonymous *
class all guest *
limit all 10 Any /etc/msgs/msg.dead
readme README* login
readme README* cwd=*
message /welcome.msg login
message .message cwd=*
guestgroup sapsys
guestuser dsdr2ftp
compress yes all
tar yes all
log commands real,guest,anonymous
log transfers anonymous,real,guest inbound,outbound
shutdown /etc/shutmsg
#email user@hostname
Here is my inetd.conf ftp line:
ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -l -a /etc/ftpd/ftpaccess
The account is as follows:
dsdr2ftp:x:13504:11500:FTP ID for ascential:/datafiles/DR2/DATASTAGE/./:/usr/bin/false
Again, the account works fine - chroot is good, ls and the needed libraries are there. I just cannot get the commands for the guest accounts logged to syslog for some reason.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 01:32 PM
08-10-2005 01:32 PM
Re: Guest FTP account not logging (chrooted)
FTP commands should be logged into syslog with local5.info level so double check your syslog.conf to make sure this is not redirected elsewhere.
One other minor thing is that you don't need the name of ftpaccess file in inetd.conf.
ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -l -a /etc/ftpd/ftpaccess
should be
ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -l -a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 10:02 PM
08-10-2005 10:02 PM
Re: Guest FTP account not logging (chrooted)
As you want to log command for all users you could comment log commands entry in ftpaccess file and you could change the ftpd entry in inetd.conf to:
ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -l -a -L
Regards,
Borislav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 10:04 PM
08-10-2005 10:04 PM
Re: Guest FTP account not logging (chrooted)
inetd -c
command after.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 12:02 AM
08-11-2005 12:02 AM
Re: Guest FTP account not logging (chrooted)
Using the ftpd -l -a -L in inetd doesn't make any difference, because once ftpaccess comes into play those logging arguments are ignored. Commenting out logging in the ftpaccess file, combined with the above ftpd switches, just has the net affect of not logging anything. (I did try it, though.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 12:06 AM
08-11-2005 12:06 AM
Re: Guest FTP account not logging (chrooted)
@(#)B11.23_LR
#
# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
mail.debug /var/adm/syslog/mail.log
*.info;mail.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root
*.emerg *
Remember, commands are logging fine for real accounts, just not chrooted guest accounts. I would think that would indicate that syslog is getting the log messages correctly. Unless the logging level changes when the guest account is logged in (that would seem odd).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 02:39 PM
08-11-2005 02:39 PM
Re: Guest FTP account not logging (chrooted)
When you connect to your server via ftp and login to chrooted account, there should be a ftpd process running. When you run lsof on the PID of ftpd you should see line with FIFO. That is syslog named pipe file (/dev/log).
ftpd 12847 root 3u FIFO 0x4218a3c8 0t0 2214
# ll /dev/log
prw-rw-rw- 1 root root 0 Aug 12 02:35 log
Now you can trace ftpd with tusc.
# tusc -fv -s write
Examine the output for writes to the file descriptor from lsof output above (FD 3 in my listing).
write(3, "< 1 7 5 > A u g 1 2 0 2 : 3 ".., 2048) ..... = 2048
Maybe that way you can get some clue as to why it's not logging ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2005 01:10 AM
08-12-2005 01:10 AM