- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- to have /etc/shells or not?
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-24-2005 10:24 PM
07-24-2005 10:24 PM
to have /etc/shells or not?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2005 10:37 PM
07-24-2005 10:37 PM
Re: to have /etc/shells or not?
If it is NOT present, all programs that use it default to a standard list of shells.
I'm a tcsh user, so all my machines have /etc/shells present, because the tcsh is not present in any default path, certainly not in the location where my login shell is located
ftp is the best known /etc/shells user. Users with a login shell not present in either the default list or /etc/shells will not be able to use the machine through ftp.
I wasn't able to dig up the default list of supported shells. man ftpd didn't provide me with any hints
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2005 10:38 PM
07-24-2005 10:38 PM
Re: to have /etc/shells or not?
If you don't have /etc/shells, any shell can be used.
If you have /etc/shells, only shells defined there can be used. If you remove some of shells, then any scripts that makes reference to it, it won't work!
Pedro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2005 10:41 PM
07-24-2005 10:41 PM
Re: to have /etc/shells or not?
There won't be a service at risk as long as You first gather all shells that are set in /etc/passwd of the systems and use these to assemble Your /etc/shells.
(usually You won't have more than 5 or 6 shells in the whole enterprise, /bin/sh, /usr/bin/ksh, /usr/bin/csh, /usr/bin/tcsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2005 10:43 PM
07-24-2005 10:43 PM
Re: to have /etc/shells or not?
in the past I saw several ftp problems without /etc/shells. I saw messages like '530 connection refused'.
/etc/shells should contain all kind of shells in /etc/passwd, usually it is something like:
/bin/sh
/bin/ksh
/usr/bin/sh
/usr/bin/ksh
This just is an example for sh and ksh shells.
I don't see particular firewall or security problems, anyway you can configure it and you could put just the shells that you need.
HTH.
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2005 07:29 PM
07-25-2005 07:29 PM
Re: to have /etc/shells or not?
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh /usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh
As already mentioned some programs (such as ftpd) call getusershell() and will not allow login if user's login shell is not in the returned list.