在切换用户时,密码没有输错,但始终无法成功地切换,还报出身份验证失败的错误,下面是具体解决方案: 在终端上输入指令sudo passwd root 此时输入你的密码 重复再次输入你的密码 再次用su指令切换用户就可以了…
参考:ubuntu下su: Authentication failure的解决办法(su和su - root的区别)…
Ubuntu下使用 su 切换到超级用户时候遇到下面的问题 su: Authentication failure 解决办法: $ sudo passwd root Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully…
$ su - rootPassword: su: Authentication failureSorry. 这时候输入 $ sudo passwd rootEnter new UNIX password: Retype new UNIX password: passwd: password updated successfully 这时候就可以进入根目录了.…
linux下删除大量文件提示参数过长解决办法:在当前目录下rm -rf * 在linux中删除大量文件时,直接用rm会出现:-bash: /bin/rm: 参数列表过长的错误. 这时可以用find命令来结合使用. 删除当前目录下文件名或文件夹名中包含name字段的文件: find . -name "name*" | xargs rm -rf 假如文件名或文件夹名中包含空格: find . -name "name*" -print0 | xargs -0 rm -rf…
su命令不能切换root,提示su: Authentication failure,只要你sudo passwd root过一次之后,下次再su的时候只要输入密码就可以成功登录了.…
今天在一台新服务器下切换用户的时候出现“This account is currently not available”错误上网检索了一 下发现是用户的shell禁止登录的问题 解决办法:比如我是 su elasticsearch的时候出现的问题用cat看看 apache的帐号信息# cat /etc/passwd | grep apache发现它的shell是“/sbin /nologin”,需要改成“/bin/bash”# vi /etc/passwd修改完毕后,保存退出 这 样再 su e…
su命令不能切换root,提示su: Authentication failure 原因是 没有设置过 root密码 sudo passwd root 会提示输入密码 重新输入密码 下次再su的时候只要输入密码就可以成功登录了 su…
0x01 使用命令[su username] 这种方法能切换普通用户和root用户 0x02 从普通用户切换到root用户,还可以使用命令[sudo su] 0x03 su 是switch user的缩写,即切换用户. 在终端输入[exit]或[logout]或使用快捷方式[Ctrl+D]可以退回到原来的用户. 在切换用户时,如果想在切换用户之后使用新用户的工作环境,可以在su和username之间加-,例如:[su - root] $表示普通用户 #表示root用户 详情见:http://ze…
Using su The  su  command allows users to open a terminal window, and from that terminal start a sub shell in which the user has another identity. To perform administrative tasks, for instance, you can log in with a normal user account and type  su …