On most modern Linux systems PAM (Pluggable Authentication Modules) is used. On systems that do not use PAM, the file /etc/usertty specifies additional access restrictions for specific users. If this file does not exist, no additional access restrictions are imposed. The file consists of a sequence of sections. There are three possible section types: CLASSES, GROUPS and USERS. A CLASSES section defines classes of ttys and hostname patterns, A GROUPS section defines allowed ttys and hosts on a per group basis, and a USERS section defines allowed ttys and hosts on a per user basis.
--------manpage
tfh120 于 2010-01-09 12:05:20发表:
好高深,学习!
tan-junyu 于 2010-01-09 11:46:23发表:
顶
一米短绳 于 2010-01-08 23:26:10发表:
恩,改access文件,终于遇上道儿上的兄弟了~~~
有些东西,说了不如不说。
《提问的智慧》没人关注,也就不多说啦~~嘻嘻。
还是自己慢慢修炼吧~~嘻嘻
jszj1983 于 2010-01-08 23:05:00发表:
我认为从pam里面改
hongyu315 于 2010-01-08 21:30:18发表:
没试过
xhdjlh 于 2010-01-08 16:05:40发表:
学习中!!
szfhx 于 2010-01-02 16:39:49发表:
楼主意不能在服务器 端登录!
mengjie213 于 2009-12-31 10:32:54发表:
我看明明是 2米长绳嘛,顶一个!
badgc 于 2009-12-31 07:01:47发表:
路过
shampoo 于 2009-12-30 23:51:49发表:
[i=s] 本帖最后由 shampoo 于 2009-12-30 23:57 编辑 [/i]
8# 一米短绳
呵呵,LZ或许想要把远端登录也挡下来,对吧?
不过,我觉得nologin不是个好主意。
【板凳】上的问题或许才是LZ要解决的,是么?
一米短绳 于 2009-12-30 23:09:09发表:
什么是“限制本机”? 扯。
On most modern Linux systems PAM (Pluggable Authentication Modules) is used. On systems that do not use PAM, the file /etc/usertty specifies additional access restrictions for specific users. If this file does not exist, no additional access restrictions are imposed. The file consists of a sequence of sections. There are three possible section types: CLASSES, GROUPS and USERS. A CLASSES section defines classes of ttys and hostname patterns, A GROUPS section defines allowed ttys and hosts on a per group basis, and a USERS section defines allowed ttys and hosts on a per user basis.
--------manpage
shampoo 于 2009-12-30 19:48:29发表:
行么?
LZ只要求【限制本机】呀!
一米短绳 于 2009-12-30 19:34:42发表:
在/etc/passwd中对应的账号的shell改为/bin/nologin
shampoo 于 2009-12-30 16:13:09发表:
似乎那是伺服器,对么?
建议改用fvwm试试。
shampoo 于 2009-12-30 16:11:57发表:
图形登录界面的用户按钮太多了,是么?
那就得说出你的界面是哪个?
看看有没人帮得上忙?
szfhx 于 2009-12-30 15:37:45发表:
本机登录界面很多出现用户,这些用户不用本机登录的,本机登录反而添乱
shampoo 于 2009-12-30 13:23:08发表:
我只做过限制远端登录,本机没试过。
应该是在同一个设定档吧?
在/etc下面搜搜看。