- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ftp is not working
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
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
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
09-27-2011 10:58 PM
09-27-2011 10:58 PM
Hi Gurus,
Today i faced the issue from a user telling that for him ftp is not working but for his collegues its wokring fine .. He tried to do ftp from his collegues PC also but didnt help ,... Till yesterday it was wokring . He is sure he didnt change anything in his account and from server side also we didnt make any chnages or any security policies also ...
From the syslog i got the below error
****** ftpd[24642]: FTP LOGIN REFUSED (shell not in /etc/shells) FROM ****[******], to67926
***** ftpd[27456]: FTP LOGIN REFUSED (shell not in /etc/shells) FROM ****[******], to67926
In my server there is not /etc/shells file
However i solved the issue in such a way that i asked for the log in details of his collegue for whom its wokring.
Then i found that the shells are differnet, so i changed the shell of that user and he confirmed that its working fine
My doubts are ,
1) why suddenly he was not able to do ftp,
2) since there is no /etc/shells file then there should not be any shell restriction for doing ftp
3) the action whihc i performed is correct or not ?
Please help me out on this
Regards
Laiju
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2011 11:36 PM
09-27-2011 11:36 PM
Re: ftp is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2011 11:42 PM
09-27-2011 11:42 PM
Re: ftp is not working
When /etc/shells does not exist, the system falls back to a factory-default list of standard shells. Run "man getusershell" to find the default list. If the user's shell was not exactly one of the listed standard shells, ftpd would not allow him to login, exactly as if /etc/shells existed and contained the default list.
The user might not remember the shell change... or if he left his terminal unattended while logged in, someone might have played a prank on him. Or worse: the user may have been tricked to change the shell by executing a malicious script, whose stated purpose was something different and supposedly useful.
What was the user's shell set to when he had the problem? Whatever it was, it obviously behaved similarly enough to the user's default shell to not be noticed. It might have been a malicious program, intended to stay undetected and spy on the user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2011 12:13 AM
09-28-2011 12:13 AM
SolutionHi MK,
Thanks a lot for your answer .
When the problem was happening his shell was /bin/sh.. This shell is not listed is getusershell...
Shell of the user for whom the it was working is /usr/bin/sh which is listed in getusershell...
Thanks a lot for your answer ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2011 08:07 AM
09-28-2011 08:07 AM
Re: ftp is not working
>When the problem was happening his shell was /bin/sh.. This shell is not listed is getusershell...
The same thing happened with me years ago. I have /bin/ksh so it works over NIS to Linux.
And of course it worked on one system and not another, due to a missing /etc/shells.