- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ftp question
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
10-21-2004 03:26 AM
10-21-2004 03:26 AM
ftp question
What´s the diference between use /usr/bin/sh and /bin/sh?
Why ftp did not work with /bin/sh ?
i don´t find information about the restriction of ftp using /sin/sh.
i hope do you undertand the question.
than
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2004 03:29 AM
10-21-2004 03:29 AM
Re: ftp question
Check the file
# cat /etc/shells
add the shells you would like to use for your user.
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2004 03:31 AM
10-21-2004 03:31 AM
Re: ftp question
If it is not there, then you will not be able to use FTP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2004 03:40 AM
10-21-2004 03:40 AM
Re: ftp question
can /etc/shells
whereis sh
based on this, try to to set on /etc/passwd file.
use vipw / vi to edit the shell or chsh command to change shell.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2004 03:51 AM
10-21-2004 03:51 AM
Re: ftp question
The man ftpd said this
ftpd authenticates users according to three rules:
+ The user must have a standard shell returned by getusershell().
Wich one is the standar shell /usr/bin/sh or /bin/sh? and Why?
Maybe, i´m requesting too much..thank....so much
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2004 03:58 AM
10-21-2004 03:58 AM
Re: ftp question
# ls -la /etc/shells
-rw-r--r-- 1 root sys 96 Aug 21 2003 /etc/shells
most commen used are the:
/sbin/sh for root (usr is not mounted in single user mode)
for normal users:
/usr/bin/sh
/usr/bin/ksh
/usr/bin/csh
Best regards,
Robert-Jan
Ps, No you are not requesting to mutch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2004 04:00 AM
10-21-2004 04:00 AM
Re: ftp question
check and see if you a /etc/shells file. There is a possibility /etc/shells file exist and /usr/bin/sh is there, whereas /bin/sh is not available. Add /bin/sh in that file and then try.
Do "man shells" for more info.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2004 04:05 AM
10-21-2004 04:05 AM
Re: ftp question
man shells -- man page
cat shells -- contents of that file.
If you set the correct shell path only, user ftp execution on that shell.
whereis sh / locate sh will give location sh
which sh too.
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2004 05:16 AM
10-21-2004 05:16 AM
Re: ftp question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2004 05:22 AM
10-21-2004 05:22 AM
Re: ftp question
If you don't have a /etc/shells file, create it using vi,
vi /etc/shells
Add each shells that you are using in a seperate line, save it and exit.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2004 06:48 AM
10-21-2004 06:48 AM
Re: ftp question
There is no /etc/shells file by default in HP-UX. That means that ftpd (the server daemon) will use getusershell to determine the validity of the shell. From the man page for getusershell:
"If /etc/shells does not exist or is not readable, 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
as if they were contained in /etc/shells."
As you can see, /bin/sh is not there. Change all your users to use /usr/bin/sh, the correct location for the POSIX shell. /sbin/sh is also the POSIX shell but with archived libraries so it will also run in single user mode. Otherwise, /sbun/sh and /usr/bin/sh are the same.
NOTE: Every user can change their own shell with the command: chsh as in:
chsh my_login /usr/bin/sh
This command changes the passwd file without using vi.
Bill Hassell, sysadmin