Solved

FTP password different from Telnet password?

Posted on 2000-03-02
6
215 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_
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 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:

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

See the man ftpd & man shells for details.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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…
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.

919 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