LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   sshd_config allowusers allowgroups (https://www.linuxquestions.org/questions/linux-software-2/sshd_config-allowusers-allowgroups-574162/)

wolfipa 08-02-2007 04:59 AM

sshd_config allowusers allowgroups
 
Hi there,

i want to setup more security for ssh server and just started playing around with the configuration file.
I added the definitions AllowUsers & AllowGroups to that file specifying a certain user and a group.
The tricky thing of it is, that i added a user to the configuration which is not member of the configured group:

sshd_config:
AllowUsers abcd
AllowGroups admin

Now the problem is that the system doesn't allow login to the server with the error message:
User wxyz not allowed because not listed in AllowUsers --> but wxyz is member of admin group

Any idea? Is this normal behavior?

Greets

w3bd3vil 08-02-2007 05:34 AM

this works like this,
cat /etc/group
Quote:

admin:x:504:omair3
loc3l:x:505:omair1
cat /etc/ssh/sshd_config
Quote:

AllowUsers omair1 omair3
AllowGroups admin
in this case omair3 will only be allowed to login.
I hope you get the idea.

wolfipa 08-02-2007 05:59 AM

ok. thanks for the info. i understand now that both work together

Maybe you can help me with another issue:
I've setup key authentication for remote users which works fine.

Is there a way to send notifications to somebody who tries to login? I'm using the banner function - but this information is sent to everybody.

any idea? thanks in advance!


All times are GMT -5. The time now is 01:03 AM.