免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 3013 | 回复: 20
打印 上一主题 下一主题

请教:用root用户登录,进入不了系统,其他用户却可以 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-03-17 16:03 |只看该作者 |倒序浏览
请问:SUN E3500主机,操作系统solaris8,用root用户登录,进入不了系统,其他用户却可以,我用root用户登录,系统就长时间停留在
login:root
passwd:
这个状态。
还望高手指点迷津!先行谢过!

论坛徽章:
0
2 [报告]
发表于 2006-03-17 16:11 |只看该作者
检查一下/ etc/default/login
或者shell是不是有问题

论坛徽章:
0
3 [报告]
发表于 2006-03-17 16:14 |只看该作者
原帖由 sundown 于 2006-3-17 16:11 发表
检查一下/ etc/default/login
或者shell是不是有问题



谢谢,我这就看看

论坛徽章:
0
4 [报告]
发表于 2006-03-17 16:22 |只看该作者
我用其他用户登录,查看etc/default/login的信息如下:
ident "@(#)login.dfl  1.13    03/01/10 SMI"
#
# Copyright 1989-2002 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#

# Set the TZ environment variable of the shell.
#
#TIMEZONE=EST5EDT

# ULIMIT sets the file size limit for the login.  Units are disk blocks.
# The default of zero means no limit.
#
#ULIMIT=0

# If CONSOLE is set, root can only login on that device.
# Comment this line out to allow remote login by root.
#
#CONSOLE=/dev/console

# PASSREQ determines if login requires a password.
#
PASSREQ=YES

# ALTSHELL determines if the SHELL environment variable should be set
#
ALTSHELL=YES

# PATH sets the initial shell PATH variable
#
#PATH=/usr/bin:

# SUPATH sets the initial shell PATH variable for root
#
#SUPATH=/usr/sbin:/usr/bin

# TIMEOUT sets the number of seconds (between 0 and 900) to wait before
# abandoning a login session.
#
#TIMEOUT=300

# UMASK sets the initial shell file creation mode mask.  See umask(1).
#
#UMASK=022

# SYSLOG determines whether the syslog(3) LOG_AUTH facility should be used
# to log all root logins at level LOG_NOTICE and multiple failed login
# attempts at LOG_CRIT.
#
SYSLOG=YES

# SLEEPTIME controls the number of seconds that the command should
# wait before printing the "login incorrect" message when a
# bad password is provided.  The range is limited from
# 0 to 5 seconds.
#
#SLEEPTIME=4

# DISABLETIME  If present, and greater than zero, the number of seconds
# login will wait after RETRIES failed attempts or the PAM framework returns
# PAM_ABORT. Default is 20. Minimum is 0. No maximum is imposed.
#
#DISABLETIME=20

# RETRIES determines the number of failed logins that will be
# allowed before login exits.
#
#RETRIES=5
#
# The SYSLOG_FAILED_LOGINS variable is used to determine how many failed
# login attempts will be allowed by the system before a failed login
# message is logged, using the syslog(3) LOG_NOTICE facility.  For example,
# if the variable is set to 0, login will log -all- failed login attempts.
#
#SYSLOG_FAILED_LOGINS=5

论坛徽章:
0
5 [报告]
发表于 2006-03-17 16:29 |只看该作者
这样,有一个办法先简单的看一下,按照你目前的设置应该可以用超级用户telnet进去,试试看

论坛徽章:
0
6 [报告]
发表于 2006-03-17 17:22 |只看该作者
原帖由 sundown 于 2006-3-17 16:29 发表
这样,有一个办法先简单的看一下,按照你目前的设置应该可以用超级用户telnet进去,试试看


telnet 也不行啊

论坛徽章:
0
7 [报告]
发表于 2006-03-17 17:39 |只看该作者
su 可以吗?检查一下你的/etc/passwd和/etc/shadow中root用户的设置是不是有问题了.

论坛徽章:
0
8 [报告]
发表于 2006-03-17 17:41 |只看该作者
原帖由 风之幻想 于 2006-3-17 17:39 发表
su 可以吗?检查一下你的/etc/passwd和/etc/shadow中root用户的设置是不是有问题了.


好的,我这就看看

论坛徽章:
0
9 [报告]
发表于 2006-03-17 17:47 |只看该作者
查看/etc/passwd如下所示:
root:0:1:Super-User:/:/sbin/sh
查看/etc/shadow如下所示:
shadow: Permission denied
是不是shadow文件有什么问题了?我应该怎么做呢?谢谢指点

论坛徽章:
0
10 [报告]
发表于 2006-03-17 17:48 |只看该作者
你是用root用户进行操作的?先su 一下看看能到root吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP