Operating System - HP-UX
1825657 Members
3973 Online
109686 Solutions
New Discussion

user with C shell cannot ftp to server

 
SOLVED
Go to solution
Fern H2O
Frequent Advisor

user with C shell cannot ftp to server

Hello,

I'm having trouble with one of my servers. It doesn't let users who use the C shell ftp. Now I've been reading alot of other peoples issues with this but it doesn't seem to apply to me.

1. ftp is in the inetd.conf
2. it doesn't have an /etc/shells file but neither do any of my other servers and they are working perfectly.
3. users who use the ksh and sh shells can ftp to it without any problems.
4. I don't have an inetd.sec file either but neither do any of my other servers.

If anyone can please help me out I would GREATLY appreciate it.

Oh and I believe this problem just arose because I've never gotten any complains before.

Thanks!!

P.S. syslog.log says: FTP LOGIN REFUSED and when a person with the C shell tries to ftp it says: 530 User sladm access denied...
6 REPLIES 6
Victor Fridyev
Honored Contributor
Solution

Re: user with C shell cannot ftp to server

Hi

Add to the file /etc/shells on the server the users shell /usr/bin/csh or /bin/csh or what he/she has in the /etc/passwd

HTH
Entities are not to be multiplied beyond necessity - RTFM
Jonathan Fife
Honored Contributor

Re: user with C shell cannot ftp to server

Does the csh executable still exist? Compare whereis csh with the path those users have in /etc/passwd.
Decay is inherent in all compounded things. Strive on with diligence
Fern H2O
Frequent Advisor

Re: user with C shell cannot ftp to server

Ok, first THANKS!!! You guys solved it. The problem was in fact a combination of both your replies.

1. I didn't have the shells file but I didn't think that was the problem since I also didn't have it on another server and that one worked fine.

2. I did whereis csh and it's in /usr/bin/csh BUT in /etc/passwd the users had it in /bin/csh.

So I realized that the other server worked (the one that didn't have the shells file) because it had the correct path /usr/bin/csh but this one didn't which is why it required the shells file.

Anyways, Thanks alot! Problem Solved!
patrick xi
Advisor

Re: user with C shell cannot ftp to server

I met same problem, I tried victor's proposal, (add to /etc/shells, if don't exist, create one) it's quite simple and really solved my problem.
Bill Hassell
Honored Contributor

Re: user with C shell cannot ftp to server

And this is a reminder to Linux (and other BSD flavors) users: there is *NO* /bin (or /LIB) directory in HP-UX (or Solaris for that matter). These directories were deprecated more than a decade ago with the V.4 filesystem layout.

However, because that change caused a lot of scripts and tools to fail, HP created transition links (man tlinstall) so that /bin and /lib references would continue to work. The links were designed to be temporary and for several releases, HP would caution users that these transition links would no longer be the default for new installations.

Yeah, it's been more than 10 years but EVERY sysadmin should be aware of the differences between SysV and BSD filesystem layout, at least for the two most critical filesystems, /bin and /lib.


Bill Hassell, sysadmin
Dennis Handly
Acclaimed Contributor

Re: user with C shell cannot ftp to server

>Bill: The links were designed to be temporary and for several releases, HP would caution users that these transition links would no longer be the default for new installations.

On 11.31, these links are now permanent, normal symlinks.