Re: Can an Account be Locked out for ssh but allow su?

2008-10-09 Thread Jeremy Hooks
Personally I prefer AllowUsers, as that denies all users except those
specifically allowed.  Deny/AllowGroups are useful too.

2008/10/8 Martin McCormick <[EMAIL PROTECTED]>

> Henrik Hudson writes:
> > Check the sshd_config man page for AllowUsers and DenyUsers directives.
>
> Many thanks. DenyUsers did the trick.
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> [EMAIL PROTECTED]"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can an Account be Locked out for ssh but allow su?

2008-10-08 Thread Martin McCormick
Henrik Hudson writes:
> Check the sshd_config man page for AllowUsers and DenyUsers directives. 

Many thanks. DenyUsers did the trick.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can an Account be Locked out for ssh but allow su?

2008-10-08 Thread Henrik Hudson
On Wednesday 08 October 2008, Martin McCormick <[EMAIL PROTECTED]> 
sent a missive stating: 
>   Is there a way to configure an account such that one can
> su - this-account from another login on the system, but not ssh
> directly in to it from the outside, similar to the way root
> works if you set the terminal type in /etc/ttys to insecure?

Check the sshd_config man page for AllowUsers and DenyUsers directives. THis 
should do what you want.

Henrik
-- 
Henrik Hudson
[EMAIL PROTECTED]
--
"God, root, what is difference?" Pitr; UF (http://www.userfriendly.org/)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"