?
Solved

Shell changes and FTP

Posted on 2002-03-14
2
Medium Priority
?
206 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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

770 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