AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 119526
Accepted
Brian Knoblauch
Brian Knoblauch
Asked: 2010-03-06 06:00:25 +0800 CST2010-03-06 06:00:25 +0800 CST 2010-03-06 06:00:25 +0800 CST

为什么SMC在启动时失败?

  • 772

试图从我们的一台服务器中删除用户,但我似乎动不动就被挫败...

SMC 拒绝加载用户列表(在 UserContent 的 listAll 方法中出现 NoClassDefFoundError 失败)。

vipw 只是返回“vipw:/etc/passwd 文件忙”。

我是目前系统上唯一的用户(这是我们的备份 SRSS 框),即使在重新启动后这两个都失败了。不幸的是,我目前没有控制台访问权限(或者我会尝试单用户模式)。当然,即使初始化模式 S 工作并让我完成这项任务,它也不能解决根本问题。

想法?

solaris passwd
  • 2 2 个回答
  • 150 Views

2 个回答

  • Voted
  1. rytis
    2010-03-06T06:06:09+08:002010-03-06T06:06:09+08:00

    检查fuser /etc/passwd哪个进程正在使用它并杀死它。显然要确保终止该进程是安全的。

    • 1
  2. Best Answer
    Brian Knoblauch
    2010-03-06T08:10:30+08:002010-03-06T08:10:30+08:00

    在以下位置找到解决方案(实际上是解决方法)(至少对于 SMC,仍然被 vipw 问题困扰): http://forums.sun.com/thread.jspa?messageID= 10266935

    rogerfujii 说:

    Sigh. They broke the classpath somewhere. This is not the correct fix, but will get you by if
     you need it to work (don't really understand what is supposed to get loaded where, so I stuck
     it at the end of the process):
    
     Edit /usr/sadm/lib/smc/bin/smc
    
     Add this line:
    
     L10NJARS="${L10NJARS} ${JARPATH}/../../VCommon.jar ${JARPATH}/../../usermgr/*.jar"
    
     just before the "for jar in ${L10NJARS}; do" line.
    
     (this is the smallest "fix", as it takes advantage of the shell expansion to deal with all the usermgr stuff).
    
     Save. You want to keep the original around and put it back when/if sun ever gets around to fixing this,
     just in case the fix doesn't include this file.
    
    • 1

相关问题

  • 从现有目录创建 zfs 的正确方法?

  • 在 Solaris lp 或 lpr 上打印

  • 如何将 ZFS ACL 从一个文件克隆到另一个文件?

  • Solaris DNS

  • 在 solaris 10 上为 mysql 设置 max_allowed_pa​​cket

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    从 IP 地址解析主机名

    • 8 个回答
  • Marko Smith

    如何按大小对 du -h 输出进行排序

    • 30 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    MikeN 在 Nginx 中,如何在维护子域的同时将所有 http 请求重写为 https? 2009-09-22 06:04:43 +0800 CST
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    0x89 bash中的双方括号和单方括号有什么区别? 2009-08-10 13:11:51 +0800 CST
  • Martin Hope
    Kyle Brandt IPv4 子网如何工作? 2009-08-05 06:05:31 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve