Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

FTP password different from Telnet password?

Posted on 2000-03-02
6
Medium Priority
?
220 Views
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?
0
Comment
Question by:cokeman_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 

Author Comment

by:cokeman_
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..
0
 

Author Comment

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

Accepted Solution

by:
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:

/sbin/sh
/bin/sh
/bin/csh
/bin/ksh
/bin/tcsh

See the man ftpd & man shells for details.
0
Independent Software Vendors: 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

by:cokeman_
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..
0
 
LVL 40

Expert Comment

by:jlevie
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).
0
 

Author Comment

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

Featured Post

Independent Software Vendors: 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!

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…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…
Suggested Courses

688 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