- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Anonymous FTP Invalid 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
02-01-2010 11:29 PM
02-01-2010 11:29 PM
Anonymous FTP Invalid Shell
Appreciate your help and directions here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2010 02:20 AM
02-02-2010 02:20 AM
Re: Anonymous FTP Invalid Shell
I would just use the "/usr/bin/false" shell for FTP anonymous Login User on HP-UX.
e.g:
# cat /etc/passwd
ftp:*:500:guest:anonymous ftp:/home/ftp:/usr/bin/false
Hope it helps.
Cheers
- Thomas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2010 03:28 AM
02-02-2010 03:28 AM
Re: Anonymous FTP Invalid Shell
Thanks for your response. Is there anyway, I can get a list of such invalid shell, which people uses across the accounts, as best practices?
Regards
Balki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2010 03:32 AM
02-02-2010 03:32 AM
Re: Anonymous FTP Invalid Shell
There is no such list availlable.
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 06:08 AM
02-03-2010 06:08 AM
Re: Anonymous FTP Invalid Shell
use that /usr/bin/false shell for the ftp user, it's a 'best practice'. Anyway, here is a list of shells:
# cat /etc/shells
/bin/ksh
/bin/csh
/bin/sh
/sbin/sh
/usr/bin/ksh
/usr/bin/csh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/true
/usr/bin/false
/bin/tcsh
/usr/bin/tcsh
#
Or you could use /usr/bin/true also, the remote connection will disconnect immediately. The difference is the exit status at the end.
I have also seen /usr/bin/date as a shell. The result was a 'key' account, which gave the date back and disconnected right after the date command terminated. If you want to check this out on one of your test machine, do not forget to add /usr/bin/date to /etc/shells.
But, for the ftp user, stick to the best practice and choose /usr/bin/false for its shell.
Unix operates with beer.