Re: rsync + ssh + rbash

From: Alessandro Selli (adoro.lo.spam@libero.it)
Date: 01/29/03


From: Alessandro Selli <adoro.lo.spam@libero.it>
Date: Wed, 29 Jan 2003 12:14:58 +0100

Il giorno Wed, 29 Jan 2003, Erwan cosė ha scritto:

|From: Erwan <erwanpianezza@my-deja.com>
|Date: 29 Jan 2003 03:04:17 -0800
|Subject: rsync + ssh + rbash
|
|Hi, I am trying to connect a user with rsync + shh
|
|it works fine when the user has a /bin/bash shell
|
|but I would like to restrict the shell to its home, so I tried the
|following rbash shell
|
|#!/bin/bash
|/bin/bash --restricted
|

  The correct way to do this, is creating a /bin/rbash symlink to /bin/bash
and setting that, /bin/rbash, as the users' shell.

  Sandro

-- 
Bellum se ipsum alet
       La guerra nutre se stessa
Livio, Ab urbe condita, XXXIV,9


Relevant Pages

  • Re: rbash
    ... |The users have rbash. ... bash to have a full bash ... a specific directory, say /usr/restricted/bin/, and their PATH environment be ... Restricted shell users will not be able to change ...
    (comp.os.linux.security)
  • Re: Restricted Shells or Menu Based Shells
    ... > Can anyone recommend a good restricted or menu based shell? ... Perhaps bash -r, or "rbash"? ... I know pine is a bit of a ...
    (Focus-Linux)
  • RE: How to bypass /etc/passwds shell
    ... > rbash gives the user a restricted shell, ... "CATS," he said eventually, "CATS ARE NICE." ...
    (Focus-Linux)
  • Re: Restricted SSH access
    ... Firstly the shell in /etc doesn't include an argument setting so you want ... to run /bin/rbash (and link bash to rbash) ... but putty refuses to log on with rbash console. ... Check what the rules are for ssh and shell names, ...
    (Fedora)
  • Restricted Shells
    ... of the restricted shells on *NIX systems. ... restricted shells (rbash, rksh) ... command is executed from the shell and it is found ... Then execute the following: ...
    (Bugtraq)