Solved

FTP password different from Telnet password?

Posted on 2000-03-02
6
214 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_
  • 4
  • 2
6 Comments
 

Author Comment

by:cokeman_
Comment Utility
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_
Comment Utility
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 50 total points
Comment Utility
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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:cokeman_
Comment Utility
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
Comment Utility
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_
Comment Utility
Thanks for the ftp answer, and the extra info too =)
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now