LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-21-2010, 07:52 PM   #1
dvdljns
Member
 
Registered: Sep 2003
Posts: 210

Rep: Reputation: 30
problems with hidden password


I am trying to setup proftpd but think I have security issues with linux
[error]
webserver.albanysite.com - mod_lang/0.8: binding to text domain 'proftpd' using locale path '/usr/share/locale'
webserver.albanysite.com - opening scoreboard '/var/run/proftpd/proftpd.scoreboard'
webserver.albanysite.com - ProFTPD 1.3.1 (stable) (built Tue Oct 27 10:09:08 UTC 2009) standalone mode STARTUP
webserver.albanysite.com - no matching vhost found for ::ffff:192.168.1.151#21, using DefaultServer 'ProFTPD Anonymous Server'
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - FTP session requested from unknown class
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - performing module session initializations
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - opening scoreboard '/var/run/proftpd/proftpd.scoreboard'
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - performing ident lookup
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - ident lookup returned 'UNKNOWN'
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - connected - local : ::ffff:192.168.1.151:21
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - connected - remote : ::ffff:192.168.1.1:1676
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - FTP session opened.
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching PRE_CMD command 'USER ftp' to mod_core
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching PRE_CMD command 'USER ftp' to mod_core
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching PRE_CMD command 'USER ftp' to mod_delay
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching PRE_CMD command 'USER ftp' to mod_auth
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching CMD command 'USER ftp' to mod_auth
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching POST_CMD command 'USER ftp' to mod_delay
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching LOG_CMD command 'USER ftp' to mod_log
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_delay
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_auth
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching CMD command 'PASS (hidden)' to mod_auth
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - USER ftp (Login failed): Invalid shell: '/bin/false'
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching POST_CMD_ERR command 'PASS (hidden)' to mod_delay
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod_log
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod_auth
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - FTP session closed.
webserver.albanysite.com - no matching vhost found for ::ffff:192.168.1.151#21, using DefaultServer 'ProFTPD Anonymous Server'
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - FTP session requested from unknown class
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - performing module session initializations
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - opening scoreboard '/var/run/proftpd/proftpd.scoreboard'
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - performing ident lookup
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - ident lookup returned 'UNKNOWN'
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - connected - local : ::ffff:192.168.1.151:21
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - connected - remote : ::ffff:192.168.1.1:1728
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - FTP session opened.
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching PRE_CMD command 'USER anonymous' to mod_core
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching PRE_CMD command 'USER anonymous' to mod_core
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching PRE_CMD command 'USER anonymous' to mod_delay
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching PRE_CMD command 'USER anonymous' to mod_auth
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching CMD command 'USER anonymous' to mod_auth
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching POST_CMD command 'USER anonymous' to mod_delay
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching LOG_CMD command 'USER anonymous' to mod_log
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_delay
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_auth
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching CMD command 'PASS (hidden)' to mod_auth
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - USER ftp (Login failed): Invalid shell: '/bin/false'
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching POST_CMD_ERR command 'PASS (hidden)' to mod_delay
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod_log
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod_auth
webserver.albanysite.com (DD-WRT.albanysite.com[::ffff:192.168.1.1]) - FTP session closed.

[/error]
 
Old 08-21-2010, 08:24 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
So what's your question?

Invalid shell: '/bin/false'
 
1 members found this post helpful.
Old 08-22-2010, 12:25 AM   #3
dvdljns
Member
 
Registered: Sep 2003
Posts: 210

Original Poster
Rep: Reputation: 30
my question was How do I fix this. The invalid shell error is there because of my attempts to fix the errors The post and pre errors to mods. But I decided after the post that I had messed it up enough to justify a complete reload.
 
Old 08-22-2010, 03:55 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
Quote:
Originally Posted by dvdljns View Post
I am trying to setup proftpd but think I have security issues with linux
Also there's nothing here that even suggests problems with SE Linux.
 
1 members found this post helpful.
Old 08-22-2010, 08:46 AM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
The only error I see there is the invalid shell one, which you can fix by giving the user a real shell.
 
1 members found this post helpful.
Old 08-23-2010, 12:19 PM   #6
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
@dvdljns:

As mentioned, /bin/false is being reported as an invalid shell (likely so because it's not listed in /etc/shells). Instead, use /sbin/nologin if you're trying to prevent shell sessions but allow ftp sessions.

See the manpages for chsh(1).

Last edited by anomie; 08-23-2010 at 12:20 PM.
 
1 members found this post helpful.
Old 08-26-2010, 05:08 PM   #7
dvdljns
Member
 
Registered: Sep 2003
Posts: 210

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by anomie View Post
@dvdljns:

As mentioned, /bin/false is being reported as an invalid shell (likely so because it's not listed in /etc/shells). Instead, use /sbin/nologin if you're trying to prevent shell sessions but allow ftp sessions.

See the manpages for chsh(1).

Ok, thanks. but these are not errors??
dispatching POST_CMD_ERR command 'PASS (hidden)' to mod_delay
 
Old 08-26-2010, 05:31 PM   #8
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
I don't think so. It just looks like internal proftpd (module) chatter. Is it possible you turned up the logging level pretty high (e.g. debug)?
 
1 members found this post helpful.
Old 08-26-2010, 06:17 PM   #9
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
DD-WRT user eh? nice

yep looks pretty innocuous to me except of course the shell thing which would be found in /etc/passwd, setting the shell to /sbin/nologin
Code:
'PASS (hidden)'
not an issue, you woudnt expect every password entered to be logged now would ya? that would be a huge security issue

Last edited by frieza; 08-26-2010 at 06:19 PM.
 
1 members found this post helpful.
Old 08-26-2010, 07:23 PM   #10
dvdljns
Member
 
Registered: Sep 2003
Posts: 210

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by frieza View Post
DD-WRT user eh? nice

yep looks pretty innocuous to me except of course the shell thing which would be found in /etc/passwd, setting the shell to /sbin/nologin
Code:
'PASS (hidden)'
not an issue, you woudnt expect every password entered to be logged now would ya? that would be a huge security issue
This is why I thought it was an error.
Code:
POST_CMD_ERR
To the newbie it looks like an error and yes I was running d6 or something. I removed all lines that reffered to modules just in case. the problem turned out to be the fact that even though linux or proftpd created both an ftp user and an a group called no group it did not add user ftp to no group. I also added a user anonymous which I do not think I needed to do since it is used as an elias. This is a learning machine so I am stripping off everything I can (i.e. selinux) and getting everything working then adding stuff back. That way I have less stuff that can cause problems and I only have to learn about one thing at a time. At least thats the theory. once I get ftp working right I will install amp and wordpress. then maybe dns. I want to install all the different servers I can to learn how to build, install config and trouble shoot them then I will learn how to harden linux. I found an article with redneck directions on how to repackage a linux machine that will include all the changed config files so I have a chance of learning to build machines with the excact setup I want. It is a lot of reading but I do not allways understand the articles which is where expearment and posting comes in.
Thanks for your help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Password blocked by hidden field, but in plain text when I view source abefroman Linux - Security 4 09-15-2009 11:21 AM
hidden email password alibar Slackware 7 04-27-2007 06:34 AM
Problems with WEP encryption and hidden networks.... alienhunter3 Linux - Wireless Networking 2 07-29-2006 09:57 AM
Keeping password/config file hidden techrolla Linux - General 3 11-06-2004 05:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration