Unix Technical Forum

Re: sshd per-user config?

This is a discussion on Re: sshd per-user config? within the lucky.openbsd.tech forums, part of the OpenBSD category; --> On Sat, May 27, 2006 at 10:28:00AM +0000, Thorsten Glaser wrote: > Hello, > > I wonder whether it's ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > lucky.openbsd.tech

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-22-2008, 12:29 PM
Darren Tucker
 
Posts: n/a
Default Re: sshd per-user config?

On Sat, May 27, 2006 at 10:28:00AM +0000, Thorsten Glaser wrote:
> Hello,
>
> I wonder whether it's possible to have a per-user configuration
> for sshd (embedded in sshd_config(5) if possible), where you can,
> for example, have the following:
>
> Users *
> PermitEmptyPasswords no
> AllowTcpForwarding yes
> Users anoncvs anonwhatever yetanotherservice
> PermitEmptyPasswords yes
> AllowTcpForwarding no


Right now, you can do some of those things (eg disabling port forwarding)
through key restrictions, but you can't do it for the general case.

There's work going on (slowly :-) to add that kind of thing via a "Match"
directive. See: http://bugzilla.mindrot.org/show_bug.cgi?id=match

There's a patch against -portable (I also have the equivalent one against
OpenBSD which I will dig up and attach).

The Match directive overrides the default. With it, your example would be
implemented as:

PermitEmptyPasswords no
AllowTcpForwarding yes
Match User anoncvs,anonwhatever,yetanotherservice
PermitEmptyPasswords yes
AllowTcpForwarding no

--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:37 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com