From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] creating ssh account without directory browsing
Date: Sun, 22 Aug 2010 18:27:14 +0200 [thread overview]
Message-ID: <201008221827.14890.alan.mckinnon@gmail.com> (raw)
In-Reply-To: <4C70E194.2090904@googlemail.com>
Apparently, though unproven, at 10:36 on Sunday 22 August 2010, Tamer Higazi
did opine thusly:
> Hi people!
> For a project I need to create ssh accounts (based on shared keys) who
> would be loged in a specific directory. They should only be able to
> login in the desired directory, but not be able for outside browsing.
>
>
> for example:
>
> /work/
>
> but not / or any other scope.
>
> How would you guys accomplish that?!
Make that user's shell rbash.
In rbash the user cannot cd. There's a bunch of other stuff they also cannot
do. Check man bash near the end to make sure it satisfies your needs.
--
alan dot mckinnon at gmail dot com
next prev parent reply other threads:[~2010-08-22 16:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-22 8:36 [gentoo-user] creating ssh account without directory browsing Tamer Higazi
2010-08-22 9:27 ` Alex Schuster
2010-08-22 12:31 ` Giampiero Gabbiani
2010-08-22 14:49 ` Mick
2010-08-22 16:27 ` Alan McKinnon [this message]
2010-08-22 18:40 ` [gentoo-user] " Kalkin Sam
2010-08-29 10:34 ` Tamer Higazi
2010-09-05 16:55 ` Kalkin Sam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201008221827.14890.alan.mckinnon@gmail.com \
--to=alan.mckinnon@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox