Solved

Shell changes and FTP

Posted on 2002-03-14
2
202 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
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
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…

860 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