- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- File /etc/shells
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
Forums
Discussions
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
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
06-11-2002 11:14 AM
06-11-2002 11:14 AM
File /etc/shells
I want to known about the feature of the file shells in /etc. What kind of problems it has with FTP ?. Because, if it exists in /etc, the proccess of FTP is denied.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2002 11:17 AM
06-11-2002 11:17 AM
Re: File /etc/shells
"ftpd authenticates users according to three rules:
+ The user name must be in the password data base, /etc/passwd,
and not have a null password. The client must provide the
correct password for the user before any file operations can
be performed.
+ The user name must not appear in the file /etc/ftpd/ftpusers
(see ftpusers(4)).
+ The user must have a standard shell returned by
getusershell().
"
check the shell specified in the passwd file for the login ID being used, and make sure that it's one listed in /etc/shells.
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2002 11:17 AM
06-11-2002 11:17 AM
Re: File /etc/shells
Hope this helps
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2002 11:17 AM
06-11-2002 11:17 AM
Re: File /etc/shells
Go thro this forum question:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x24905220af9bd5118ff10090279cd0f9,00.html
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.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2002 11:19 AM
06-11-2002 11:19 AM
Re: File /etc/shells
Do "man shells" for info on /etc/shells. ftp access is not denied if this file exists. However if you have an ftp user whose shell is configured as /usr/sbin/false this shell should exist in /etc/shells.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2002 11:21 AM
06-11-2002 11:21 AM
Re: File /etc/shells
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh
If ftp fails when /etc/shells is present, then the user's shell is not defined in the file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2002 11:22 AM
06-11-2002 11:22 AM
Re: File /etc/shells
/etc/shells is an ASCII file containing a list of legal shells on the system. Each shell is listed in the file by its absolute path name.
Lines or portions of lines beginning with # are assumed to be comments and are ignored. Blank lines are also ignored.
You can look at this too :
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90682/B2355-90682_top.html&con=/hpux/onlinedocs/B2355-90682/00/03/344-con.html&toc=/hpux/onlinedocs/B2355-90682/00/03/344-toc.html&searchterms=/etc/shells&queryid=20020611-122954
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2002 06:34 AM
06-12-2002 06:34 AM
Re: File /etc/shells
If /etc/shells does not exist, the defaults are (see the getusershell(3C) manual page):
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh
If /etc/shells exists, it must list *all* the shells, i.e. *also* the defaults.
I.e. specific examples:
/etc/shells does not exist: /usr/bin/sh is a valid shell.
/etc/shells contains "/usr/bin/bash": /usr/bin/bash is a valid shell, but (for example) /usr/bin/sh is *not* a valid shell (even if it is default if /etc/shells does *not* exist).
I hope this solves your problem.