Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Shell changes and FTP

Posted on 2002-03-14
2
Medium Priority
?
207 Views
Last Modified: 2013-12-27
I want to change the shell of one of my users from csh to bash like I have for root.  But, when I change their default to bash they can no longer FTP into the system.  Any idea why this might be happening?
0
Comment
Question by:chopkc
[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
2 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 180 total points
ID: 6866329
You need to add bash to /etc/shells. That file might not exist, in which case you'll need to create it. Then enter that path-to and shells of all shells that users might have, something like:

/bin/csh
/bin/ksh
/bin/sh
/bin/bash

If you are using bash for root's shell make sure that root is using a staticly linked copy out of /sbin. Otherwise you could run into serious problems if there is a problem with the system that keeps a dynamically linked copy of bash from running in single user mode. If don't have a copy of bash that doesn't use dynamic libs then you can, as a failsafe, create a clone of the root user account and specify /sbin/sh for the shell. I routinely do that, even with a static bash, and name the user toor. The account isn't usable for a lot of root tasks because the login name isn't root, but it suffices for single user repair mode if root can't log in.
0
 
LVL 5

Expert Comment

by:Nisus091197
ID: 6915598
jlevie is correct.  Creating a /etc/shells file with one shell per line will do the job.

Regards, Nisus
http://www.omnimodo.com
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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.:
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.
Suggested Courses

610 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