- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ftpd: FTP LOGIN REFUSED (bad shell)
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
09-04-2001 01:17 PM
09-04-2001 01:17 PM
now that i got ksh back after a "fat fingers" incident, i may as well post the "root of the problem" that i was trying to resolve. i have a linux box running ypserv as the master server for my network. my hp boxes are nis clients and are getting the host, passwd, netgroup maps from the master.
i can log in and out of each box, however, whenever i try ftp, i get the following error in /var/adm/syslog/syslog.log:
....FTP LOGIN REFUSED (bad shell)..etc...
i thought this was happening b/c in my passwd map, i have the login shells set to /bin/ksh (which is where most of the boxes on my network have ksh). however, i'm noticing now that /bin is a symlink to /usr/bin on my hp boxes.
has anyone else experienced this? does ftpd not like symlinking? again, thanks in advance for your assistance.
regards,
edwin "fingers on a diet" rivera
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2001 01:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2001 01:29 PM
09-04-2001 01:29 PM
Re: ftpd: FTP LOGIN REFUSED (bad shell)
I just answered your question in the other thread but rksh and ksh have the same inode and i believe they behave differently based on how they are invoked.
As far as getting bad shell for ftp, make sure the shell of the user you are logging in as is defined in /etc/shells.
Eg: if /bin/ksh is the shell the user is loggin in as make sure /etc/shells contains /bin/ksh.
I normally add /bin/sh,/sbin/sh,/bin/ksh and /bin/posix/sh as well to the /etc/shells
-Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2001 01:32 PM
09-04-2001 01:32 PM
Re: ftpd: FTP LOGIN REFUSED (bad shell)
i didn't know HP-UX used /etc/shells. i had to create the file and populate it. works like a charm now.
gracias,
edwin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2001 01:35 PM
09-04-2001 01:35 PM
Re: ftpd: FTP LOGIN REFUSED (bad shell)
-edwin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2001 01:36 PM
09-04-2001 01:36 PM
Re: ftpd: FTP LOGIN REFUSED (bad shell)
The /bin directory is a holdover from HP-UX pre-10.x filesystems. It is actually a "transition" link to /usr/bin. In the strictest sense, it should not be used. Instead, one should specify /usr/bin. The same is true for the transition link /lib which points to /usr/lib.
In the absence of /etc/shells, valid login shells default to the following list:
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh
If you specify /usr/bin/ksh [preferred over /bin/ksh] I think your problem will disappear.
...JRF...