Hi,

On 4/21/05, S. K. Goel <[EMAIL PROTECTED]> wrote:
> Hi List,
> 
> I want to give telnet access to some specified users and  ssh access to
> some other users, Is there is any file like telnet.allow / ssh.allow, So
> that I can defined the same user wise.

http://www.onsight.com/faq/ssh/manpages/sshd1_man.html

DenyGroups
    This keyword can be followed by any number of group name
patterns,separated by spaces. If specified, login is disallowed if
usersprimary group name name matches any of the patterns.

DenyUsers
    This keyword can be followed by any number of user name patterns
or [EMAIL PROTECTED] patterns, separated by spaces. Host name may be either
thedns name or the ip address. If specified, login is disallowed as
userswhose name matches any of the patterns.

In your /etc/ssh/sshd_config
add the following line at the end. (Make sure, you take a backup of
your original sshd_config file)

DenyUsers userName

Then restart ssh server & "userName" will not be able to log-in.

-- 
regards,
makuchaku
---
http://makuchaku.blogspot.com
Linux... Life... Freedom...

_______________________________________________
ilugd mailinglist -- [email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/[email protected]/

Reply via email to