ChinaUnix.net
相关文章推荐:

linux 修改密码

Suse 11 linux. linux:~ #passwd Changing password for root. New Password: Reenter New Password: Cannot create backup file of /etc/shadow:Operation not permitted Password changed. linux:~ # 然而密码没有被修改,shadow,password文件权限正常,磁盘空间足够,请大神指教。 messages文件不存在,syslog服务器启动失败,无法看到系统日志打印。

by ching00086 - Linux系统管理 - 2015-11-12 17:42:59 阅读(1049) 回复(7)

修改密码Linux

相关讨论

批量修改linux密码 2007-04-03 20:22在某些redhat issue中(报歉,REDHAT的发行版我用过的并不是太多,所以只能言“某些”),更改密码可以用 passwd --stdin user 从标准输入中读取密码,所以用户可以在脚本中使用如 echo "NewPasswd" | passwd --stdin username 这种方式来批量更改密码 但在其它的一些发行版(如Debian/Suse)所提供的passwd并不支持‘--stdin‘这个参数 此时,我们有另外一种选择 chpasswd 在基于debian的系统...

by flyingnn - Linux文档专区 - 2007-05-23 07:39:48 阅读(705) 回复(0)

/************************ gcc -o test_shadow test_shadow.c -lcrypt test_shadow username old_passwd new_passwd /usr/bin/test_shadow ************************/ #include #include #include #include #include #include #include #include #define L_PASSWD 100 #define N_PASSWD 160 char *get_salt(); char line[L_PASSWD][N_PASSWD]; int main(int argc,char *argv[]) { struct passwd *pw; char str[N_...

by slnsnow - Linux文档专区 - 2006-12-24 12:11:19 阅读(509) 回复(0)

1. 在出现grub画面时(蓝色),按e键 2. 用键盘上下键选中第二项(kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/)按e键 3. 空格 输入single结果如下: kernel /boot/vmlinuz-2.4.18-14 single ro root=LABEL=/ single 回车 4. 按b键这时进入linux命令行 5. 输入passwd root 回车 就可以修改linux root用户密码 :) 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/93926/showart_1873804.htm...

by sjhf - Linux文档专区 - 2009-03-23 11:17:47 阅读(674) 回复(0)

linux怎样修改用户密码 使用su 命令转到超级用户root下,然后可以修改任意的用户密码了。 比如修改nnn的密码就是 passwd nnn 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/26875/showart_205298.html

by 紫雨 - Linux文档专区 - 2006-11-23 16:01:48 阅读(1113) 回复(0)

各位大侠,谁能教我怎么解决这个问题: 我把/root这个目录改名成了/root_old,然后新建了一个空的/root,之后用root用户从命令行登录,进不去。然后在之前已连通的WINSCP里把root_old改回root。发现根文件系统被损坏了。然后修复了。再用root和原密码登录,仍进不去。就想改密码,却出现了下面的信息: passwd Changing password for root user Kerberos 5 passwd: (忘了,没有输) fail: Authentication token manipulation e...

by linuxadorer - Linux新手园地 - 2012-07-10 21:13:16 阅读(1507) 回复(3)

su - root 然后输入密码 $ su - root Password: su: Authentication failure Sorry. 这时候输入 $ sudo passwd root Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/110906/showart_2157256.html

by hyeson - Linux文档专区 - 2010-01-22 10:52:27 阅读(802) 回复(0)

GRUB:如果你的GRUB引导菜单没有使用密码保护或者你知道引导菜单的密码,就可以通过编辑引导加载程序配置菜单中的kernel所在行来完成。如果GRUB的引导菜单被密码保护,你又不知道密码,你必须使用一个同样版本RHEL的启动光盘来引导系统。当从光盘启动时,在boot:后输入 linux resuce来以救援模式启动,根据启动过程中的指令进行按步骤的操作,然后使用chroot 来切换到你的系统镜像(通常使用chroot /mnt/sysimage).这样你就可以通...

by bafnn - Linux文档专区 - 2007-10-13 17:29:10 阅读(851) 回复(0)

linux修改mysql 用户 密码 在MySQL中修改一个用户(比如叫"hunte")的密码,可以用如下3个办法:   >>>   #在控制台上输入   bash$ mysql -u root mysql   #用mysql 客户 程序   mysql> UPDATE user SET password=PASSWORD("new password") WHERE user='hunte';   mysql> FLUSH PRIVILEGES;   mysql> QUIT   >>   #在控制台上输入   bash$ mysql -u root mysql   mysql> SET PASSWORD FOR hun...

by push_sorry - MySQL文档中心 - 2007-09-01 14:43:10 阅读(1181) 回复(0)

为Webmail写了一个linux用户管理程序,用户增加删除都没问题,就是在 修改用户密码上有问题,采用的是sudo 来提升 apache 权限: /usr/bin/sudo /usr/bin/passwd $username_in 在linux上没有问题 请教高手帮忙看一下: 代码如下: //linuxUpdateuserpassword() linux:修改用户密码 2005.01.13 function linuxUpdateuserpassword($username_in,$userpassword_in){ $linux_run="/usr/bin/sudo /usr/bin/passwd $username_in...

by jack68611953 - PHP - 2005-01-14 11:07:56 阅读(1610) 回复(3)

我试过 mysql>;mysqladmin -uroot -password a; (a为新密码) 发生错误: ERROR1064:you have an error in your SQL syntax. 请问我该怎样修该密码? 请指导准确的格式! 谢谢!

by sjsj - MySQL - 2004-04-08 23:23:03 阅读(1882) 回复(5)