Solved

Shell changes and FTP

Posted on 2002-03-14
2
199 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
2 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 60 total points
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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 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…
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