Solved

Shell changes and FTP

Posted on 2002-03-14
2
203 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 60 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

Industry Leaders: 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

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…
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 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…
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…

749 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