0

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?

4
  • 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, 2011 at 18:25
  • use chsh(1) to change the login shell of user's accounts
    – knittl
    Sep 20, 2011 at 18:26
  • Also, probably better suited for unix.stackexchange.com/faq
    – cledoux
    Sep 20, 2011 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. Sep 20, 2011 at 19:08

2 Answers 2

4

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.

3

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.

Not the answer you're looking for? Browse other questions tagged .