Reset password through web console

本文详细介绍了在AIX系统中通过多种方法重置账户密码的过程,并提供了SSH密钥的生成与配置步骤。此外还分享了解决登录失败问题的经验。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I have a web console in AIX, but | (pipe stream), >> and > do not work. How can I reset my password for account xx. method 1

mkdir /home/xx/.ssh
ssh-keygen -t rsa -P password -f /home/xx/.ssh/id_rsa (ssh-keygen -t rsa -P '' -f /home/xx/.ssh/id_rsa not work since no passphase)
cp id_rsa.pub authorized_keys
chmod 600 /home/xx/.ssh/authorized_keys

chown -R xx:sms /home/xx/.ssh
chmod 700 /home/xx/.ssh

cat /home/xx/.ssh/id_rsa(then copy and paste in web console, save as id_rsa, then save as private key in putty)

method 2

rpm or download wget
prepare id_rsa, id_rsa.pub, authorized_keys
/home/xx/soft/usr/local/bin/wget -O /home/xx/.ssh/id_rsa http://10.13.135.40:8080/dh/keygen/id_rsa
/home/xx/soft/usr/local/bin/wget -O /home/xx/.ssh/id_rsa.pub http://10.13.135.40:8080/dh/keygen/id_rsa.pub
/home/xx/soft/usr/local/bin/wget -O /home/xx/.ssh/authorized_keys http://10.13.135.40:8080/dh/keygen/authorized_keys

chown -R xx:sms /home/xx/.ssh
chmod 700 /home/xx/.ssh

method 3 (fail in AIX)

echo "xx1234\nxx1234" | (passwd -stdin xx)
echo -e "xx1234\nxx1234" | (passwd -stdin xx) -- in Linux

method 4 (fail in AIX)

echo "xx:xx1234" | chpasswd -c

method 5

download expect package from http://www.oss4aix.org/download/RPMS/

rpm -ivh libpng-1.6.7-1.aix5.1.ppc.rpm
rpm -ivh zlib-1.2.8-1.aix5.1.ppc.rpm
rpm -ivh bzip2-1.0.6-1.aix5.1.ppc.rpm
rpm -ivh freetype2-2.5.2-1.aix5.1.ppc.rpm
rpm -ivh expat-2.1.0-1.aix5.1.ppc.rpm
rpm -ivh fontconfig-2.10.2-1.aix5.1.ppc.rpm
rpm -ivh tk-8.5.15-1.aix5.1.ppc.rpm
rpm -ivh tcl-8.5.15-1.aix5.1.ppc.rpm
rpm -ivh expect-5.45-1.aix5.1.ppc.rpm

write expect script /home/xx/chpass.sh

#!/usr/bin/expect
spawn passwd support
expect "*password*"
send "xx1234\n"
expect "*password*"
send "xx1234\n"
exit

Others

I try different account to login system, grant sudo right to this account, change the password using pwdadm and passwd, but when I login with putty, found that Access denied.
When I run su - user, found "3004-303 There have been too many unsuccessful login attempts; please see the system administrator", found the root cause, after google, easy two steps can sovle it.

  1. /usr/sbin/lsuser -a unsuccessful_login_count user
  2. /usr/bin/chsec -f /etc/security/lastlog -a unsuccessful_login_count=0 -s user

http://www.thesqlreport.com/?p=65
http://aix4admins.blogspot.hk/2012/06/user-login-process-login-process.html
http://hi.baidu.com/unixsec/item/fa155d8e16cb0cdf5e0ec157
pwdadm 命令

Ref

expect
expect-lite

转载于:https://my.oschina.net/l1z2g9/blog/188917

### 如何找回或重置 Kaspersky Security Center Web Console 登录密码 对于 Kaspersky Security Center (KSC),如果忘记了管理员账户的登录密码,可以通过特定的方法来重置该密码。以下是关于如何操作的具体说明: #### 方法一:通过数据库命令重置密码 在某些版本的 Kaspersky 安全产品中,可以直接访问其内部存储数据的位置并修改管理用户的密码。 1. **停止服务** 需要先暂停运行中的 Kaspersky Security Center 服务以防止冲突。 ```bash /etc/init.d/ksc stop ``` 2. **连接到嵌入式数据库** 使用 SQLite 或其他支持的工具打开 Kaspersky 数据库文件 `kdb` 文件路径通常位于 `/opt/kaspersky/sca/db/ksckdb.kdb` 中[^2]。 3. **执行 SQL 命令更新密码** 输入以下 SQL 查询语句设置新密码(假设默认用户名为 admin)。注意替换 `<new_password>` 字段为你希望的新密码字符串: ```sql UPDATE Users SET PasswordHash='$(echo -n "<new_password>" | sha256sum)' WHERE Name='admin'; COMMIT; EXIT; ``` 此处采用 SHA-256 散列算法加密明文口令后再存入表记录字段内[^3]。 4. **重启服务** 修改完成后重新启动 Kaspersky Security Center 来应用更改后的配置项。 ```bash /etc/init.d/ksc start ``` #### 方法二:利用恢复功能尝试自动修复 部分较新的 Kaspersky 版本提供了内置机制允许用户自行解决此类问题而无需手动干预底层结构。具体步骤如下所示: 1. 访问官方技术支持页面下载专用工具包链接地址; 2. 解压后按照指引文档逐步完成整个流程直至成功解锁目标账号权限为止; 以上两种方式均能有效处理忘记密码的情况,请根据实际环境选择合适方案实施操作前务必做好充分准备以免造成不可逆损害风险。 ```python import hashlib def reset_ksc_password(new_pass): hashed_pwd = hashlib.sha256(new_pass.encode()).hexdigest() return f"UPDATE Users SET PasswordHash='{hashed_pwd}' WHERE Name='admin';" print(reset_ksc_password('SecurePassw0rd')) ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值