- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: userid can telnet to server, but cannot access...
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
07-20-2004 12:42 AM
07-20-2004 12:42 AM
I have one user who can access a prod server using a userid, but this same userid will not work through the application WS_FTP. The user reports that WS_FTP cannot authenticate their account. This was working about 1 or 2 weeks ago.
Here are the log messages:
pam_acct_mgmt:Account is disabled - see Acct. Admin.
ftpd[xxxxx]:User XXXX: Login incorrect
ftp[xxxxx]: FTP session closed
inetd[xxxxx]"ftp/tcp:connection from unknown (xx.xx.xx.xx)
ftpd[xxxxx]:PAM_ERROR_MSG: Acct is disabled-See Acct Admin
ftpd[xxxxx]:FTP LOGIN REFUSED bad shell) from xx.xx.xx.xx
My question, is it possible to successfully login via telnet with a userid, and then cannot run WS_FTP with the same userid?
Thanks for all of your help!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2004 12:45 AM
07-20-2004 12:45 AM
SolutionLOGIN REFUSED bad shell
This means that the users shell is not present in the file /etc/shells
The file only affects FTP logins, which is why they are still able to telnet to the server. Just add their shell to the file - check the last field of their entry in /etc/passwd to see which shell they're using.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2004 03:28 AM
07-20-2004 03:28 AM
Re: userid can telnet to server, but cannot access through application
You say "The file only affects FTP logins". You mean /etc/shells is used for FTP logins only?
In the one production server, there are no /etc/shells file. Strange! But the test and development server have the /etc/shells file. Is this a security issue or is there a security issue with /etc/shells?
If I wanted to just add a shells file, I just create a file and save it as shells, right? Root has to be the owner and what about permissions.
I believe you are right, that the logs show bad shell as the problem, no /etc/shells. But I was surprised /etc/shells was not there!
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2004 03:42 AM
07-20-2004 03:42 AM
Re: userid can telnet to server, but cannot access through application
It's not a security issue if the file doesn't exist (as a default, this file does not exist on the system). Permissions should be 644, owned by root, with a group of sys.
If the file doesn't exist, the following shells have FTP capability (from the man page for getusershell).
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh
If you create the file, you need to make sure that these are all added in addition to the shell of your user with the problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2004 04:05 AM
07-20-2004 04:05 AM
Re: userid can telnet to server, but cannot access through application
Ok, I'd like to ask you this question. I recently FTPed a file from one server to this server in question, and this server does not have the /etc/shells file. How was I able to ftp to this server?
Other users (two of them) were reported to be having problems with using WS_FTP from their computer (Windows box) to the server. Does WS_FTP require the /etc/shells file?
Exactly what is the difference from FTPing to the server from a computer as compared to FTPing from a HP box to another HP box?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2004 04:18 AM
07-20-2004 04:18 AM
Re: userid can telnet to server, but cannot access through application
Bill Hassell, sysadmin