远程telnet登陆系统时,报错:

telnet (app2)

telnetd: failed to write to /etc/utmp: A file cannot be larger than the value set by ulimit.
telnetd: failed to write to /var/adm/wtmp: A file cannot be larger than the value set by ulimit.
/dev/pts/1: 3004-004 You must "exec" login from the lowest login shell.
telnetd: failed to write to /etc/utmp: A file cannot be larger than the value set by ulimit.
                                                                                            telnetd: failed to write to /var/adm/wtmp: A file cannot be larger than the value set by ulimit.

 

原因是/etc/security/limits的参数有问题,通过ftp把/etc/security/limits下载下来进行检查:

 

default:
        fsize = -1
        core = 2097151
        cpu = -1
        data = -1
        rss = -1
        stack = 65536
        nofiles = 2000

root:
        fsize_hard = 0

daemon:

bin:

sys:

adm:

uucp:

guest:

nobody:

lpd:

pconsole:
        stack_hard = 131072
        data = 1280000
        data_hard = 1280000

esaadmin:
        stack = 393216
        stack_hard = 393216

oracle:
        stack = -1
        core = -1

dbra:
        fsize=-1
        data=-1
        rss=-1
        stack=-1
        nofiles=2000

 

开始无法确定是哪个参数有问题,于是将default下的参数改为-1:

stack = -1
nofiles = –1

通过ftp将文件传回系统后,系统仍然无法登陆。

 

再次修改参数,将以下部分删除:

root:
        fsize_hard = 0

通过ftp将limits文件传回系统后,系统登陆成功。

因此判断出是fsize_hard = 0达到限制。




Related posts

coded by nessus
分享:  DeliciousGReader鲜果豆瓣CSDN网摘
Trackback

only 1 comment untill now

  1. overcooled@mclemore.honeybees” rel=”nofollow”>.…

    ñïñ çà èíôó!…

Add your comment now

无觅相关文章插件