FTP password different from Telnet password?

Posted on 2000-03-02
Last Modified: 2013-12-16
I just installed Solaris 7 (intel), and I added the gcc, gzip and tcsh binary packages.  I changed the root's shell to /usr/local/tcsh from /usr/bin/sh and now, I can't FTP into my machine with root.  Either the password's changed or FTP as root's been disabled.  I can still telnet into the machine.  Any suggestions how to get the FTP access back?
Question by:cokeman_
  • 4
  • 2

Author Comment

ID: 2578477
I also get a

se: Command not found

when I telnet in..

Is there a place where I can go to get the tcsh source files other than  I can't connect to that site right now since it's timing out..

Author Comment

ID: 2578481
Ignore the "se: Command not found" problem -- somehow the .cshrc file had "se" in it.. go figure..
LVL 40

Accepted Solution

jlevie earned 50 total points
ID: 2578613
First a word of caution. Changing root's shell is extremely dangerous unless you've taken the precaution of building a copy of the shell statically linked and place that copy in /sbin. If / /usr are separate and you have any significant problem with /usr so that it won't mount, you have no shell. Even if / & /usr are combined, any problem with shared libraries will leave you with no root shell. Either of these scenarios means that you have to boot off of the installation CD to fix the problem. We call this "The Dreaded Root Shell Disease"

Okay ftp stopped working because tcsh isn't one of the shells that in.ftpd knows about. Fix it by creating /etc/shells with at least the following in it:


See the man ftpd & man shells for details.
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center


Author Comment

ID: 2580445
Regarding building the copy of the shell in /sbin, I assume it won't be enough to copy the tcsh binary over there.. what would I have to do?

oh, I haven't had the chance to try the /etc/shells thing, but I'm pretty sure it'll work..
LVL 40

Expert Comment

ID: 2580608
Right, more than likely just putting the tcsh binary in /sbin won't suffice. It's probably beeen built with shared libraraies, which you can check by "ldd /bin/tcsh". You'd have to get the tcsh sources and compile it youself, forcing static linking. Since I don't use tcsh, I can't tell you exactly what it would take to coerce the build process for tcsh to produce a static version. With bash, which I do use, it's a configure option (--enable-static-link).

Author Comment

ID: 2581513
Thanks for the ftp answer, and the extra info too =)

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question