- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: FTP does not work.
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
04-14-2008 09:08 PM
04-14-2008 09:08 PM
FTP does not work.
We have HPUX server.
The default shell for users in NIS is set to /usr/bin/csh. ., they are not able to do FTP. They can logon and continue with their work,but ftp does not work.
When I check at log, I see the message as 'BAD SHELL'.
However if I change it back to /sbin/sh., everything looks okay.
Do I have to make changes to make ftp work with csh.
#cat shells
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/bin/tcsh
/usr/local/bin/tcsh
/opt/tcsh/bin/tcsh
/bin/csh
/bin/sh
/bin/ksh
/usr/bin/false
/bin/false
Cheers,
Abhinesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2008 09:59 PM
04-14-2008 09:59 PM
Re: FTP does not work.
[...]
+ The user must have a standard shell returned by
getusershell().
[...]
"man getusershell":
[...]
getusershell() Returns a pointer to the first legal user
shell as defined in the file /etc/shells (see
shells(4)). 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.
The file is left open so that the next call
returns the next shell. A null pointer (0)
is returned on EOF or error.
[...]
So, I'd look at /etc/shells.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2008 10:23 PM
04-14-2008 10:23 PM
Re: FTP does not work.
This problem is with all the users or with only a bunch of user.
If it is with only some users i think ur answer lies in
http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1208239186565+28353475&threadId=1055096
else we need more information,
ur user have csh as default shell , he is running ftp from csh or how???
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2008 11:55 PM
04-14-2008 11:55 PM
Re: FTP does not work.
1. is this user is listed in /etc/passwd or nis passwd file or passwd file same or nis and normal user
what is the working shell of the user in /etc/passwd file
please provide the out put of
grep username /etc/passwd
ypcat passwd | grep username
Regards
Safar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2008 01:17 AM
04-15-2008 01:17 AM
Re: FTP does not work.
ypcat passwd | grep ath
ath*:cod*:522:20:Ath*:/home1/ath*:/usr/bin/csh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2008 01:26 AM
04-15-2008 01:26 AM
Re: FTP does not work.
grep ath /etc/passwd
if possible create one more test user in nis with korn shell or bshell and try the ftp
let me investigate this issue mean time try this option
Regards
safar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2008 01:28 AM
04-15-2008 01:28 AM
Re: FTP does not work.
ath*:cod*:522:20:Ath*:/home1/ath*:/usr/bin/csh
Should we ask why you have a "*" in the name and home directory fields?
Is this some NIS special?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2008 01:33 AM
04-15-2008 01:33 AM
Re: FTP does not work.
ath*:cod*:522:20:Ath*:/home1/ath*:/usr/bin/csh
Should we ask why you have a "*" in the name and home directory fields?
Is this some NIS special?
I am sorry.
athor:cod*(Passwd Hash Masked):522:20:AthorBrown:/home1/athor:/usr/bin/csh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2008 07:20 PM
04-15-2008 07:20 PM
Re: FTP does not work.
This is not nis special account is different in Nis and normal passwd, either you can remove user author from normal and user and keep only NIS, no need of two user
Regards
safar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2008 09:45 PM
04-15-2008 09:45 PM
Re: FTP does not work.
Adding CSH to /etc/shells to hosts worked. Before this I was making shells entry only to NIS server., When I make an entry to all the hosts it works.
Cheers,
Abhinesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2008 11:00 PM
04-15-2008 11:00 PM
Re: FTP does not work.
your out put was not clear, from your out put showing that an entry in /usr/bin/csh but you did not tell there is no entry of /usr/bin/csh in /etc/shell of the other server, nis user does not have cshell /etc/shell that is the reason it was not working
Regards
Safar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2008 12:50 AM
04-16-2008 12:50 AM