- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: FTP---- Which shell use?
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
Discussions
Discussions
Discussions
Forums
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
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
тАО08-13-2001 06:55 PM
тАО08-13-2001 06:55 PM
FTP---- Which shell use?
My question:
How to find out the default shell defined by the ftp server?
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2001 07:16 PM
тАО08-13-2001 07:16 PM
Re: FTP---- Which shell use?
By default the ftp server generates a shell
based on /usr/bin/sh.
Check out the man page on 'ftp' for further
information.
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2001 07:40 PM
тАО08-13-2001 07:40 PM
Re: FTP---- Which shell use?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2001 08:20 PM
тАО08-13-2001 08:20 PM
Re: FTP---- Which shell use?
Depending on what options you use with 'ftp' you can also use 'csh'. Have a look at the man page for the 'chsh' command. This utility has the ability to change the shell.
Regards
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2001 08:25 PM
тАО08-13-2001 08:25 PM
Re: FTP---- Which shell use?
man 4 shells tells us that /etc/shells is basically a file which lists all the shells in the system. When a user ftps using a shell not listed in the /etc/shells then ftp access is denied.
If you are referring to the shell which is invoked when you run !cmd within a ftp session, then by default ftp starts up /usr/bin/sh if $SHELL is undefined.
-HTH
I am Ru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2001 09:09 PM
тАО08-13-2001 09:09 PM
Re: FTP---- Which shell use?
I have made a trial:
First I was rejected when my default shell is /bin/ksh
when I changed my shell to /usr/bin/ksh, I can perform ftp to that HP server.
surely I did not create the file /etc/shells.
Who defined the shell /usr/bin/ksh?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2001 10:12 PM
тАО08-13-2001 10:12 PM
Re: FTP---- Which shell use?
In the password file all shells have a full
path. i.e. /usr/bin/sh /usr/bin/ksh etc.
that's why your first attempt was rejected as
an incorrect shell. You don't need to create
a /etc/shells file unless you wish to restrict
some of the shells being used on your system.
The /usr/bin/ksh shell comes from the password
file. e.g.
informix:bqQwdeywfzkuc:220:200:Informix User,,,:/home/informix:/usr/bin/ksh
Hope this explains things
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2001 11:00 PM
тАО08-13-2001 11:00 PM
Re: FTP---- Which shell use?
When I was rejected, I had a line:myname:x:20142:1200::/home/myname:/bin/ksh
in /etc/passwd file. when I change that line to :
ricklee:x:20142:1200:Rick,Lee:/home/ricklee:/usr/bin/ksh
I got it.
I mean in the destinated box, which file define the ftp user make use of /usr/bin/ksh
but no others?
How to change it if I want to perf?
Thanks a lot!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2001 12:32 AM
тАО08-14-2001 12:32 AM
Re: FTP---- Which shell use?
If you have a look you will see that the
correct path to the shells is /usr/bin/ksh
etc.
The default shell for this user should be
/usr/bin/ksh if that is the shell defined
in /etc/passwd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2001 03:46 AM
тАО08-14-2001 03:46 AM
Re: FTP---- Which shell use?
The standard system shells are documented in section-3 of the man pages. If you look at 'man 3 getusershell' you will find that if /etc/shells doesn't exist or isn't readable, then 'getusershell()' returns the
following standard system shells:
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2001 03:49 AM
тАО08-14-2001 03:49 AM
Re: FTP---- Which shell use?
From man ftpd:
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().
See man ftpd and getusershell.
Regards.