Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How to restrict the users' shell allowing to execute shell programs

I used to access this Ubuntu 8.04 server that had a very limited Shell. For instance you couldn't key up,down shell history, you couldn't tab guess commands, etc.

I would like to customized the Ssell inv for my users that ssh into my server, but how?

share|improve this question

migrated from Sep 20 '11 at 18:55

This question came from our site for professional and enthusiast programmers.

marked as duplicate by MikeyB, MDMarra, Michael Hampton, Ward, voretaq7 Aug 3 '12 at 16:01

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Your question seems unrelated to the first paragraph. In addition, you don't provide any details on your server or its setup. Unless your server is the Ubuntu 8.04 machine, but the way it's worded this doesn't sound like the case. – cledoux Sep 20 '11 at 18:25
use chsh(1) to change the login shell of user's accounts – knittl Sep 20 '11 at 18:26
Also, probably better suited for – cledoux Sep 20 '11 at 18:27
Do you want to set up fully functional shell for all your users who login by ssh? Set their shell to /bin/bash then. So they will get auto-completion, command history, etc. What's their current shell? You can see it in /etc/passwd file. – Dmitry Alexeyev Sep 20 '11 at 19:08

The terminology you are looking for is Restricted Shell. There are a number of ways to implement restrictions, depending on what you need. One easy approach is to run Bash in restricted mode.

share|improve this answer

The shell started by ssh is the users' login shell. It is set via the login shell entry of the passwd file/database (when you don't do anything fancy, it's in /etc/passwd and can be modified by chsh). The shell you describe sounds very much like the basic /bin/sh that is also used in script execution.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.