Go Premium for a chance to win a PS4. Enter to Win


FTP password different from Telnet password?

Posted on 2000-03-02
Medium Priority
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 www.sunfreeware.com?  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 200 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.
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

886 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