useradd: unable to open password file 解决办法 useradd: error opening group file解决办法
2013-07-08 16:31
393 查看
转载自: http://hi.baidu.com/binbin_1988/item/cdb117dad817faf8ca0c3941
一、故障报错:useradd: unable to open password file或者useradd: error opening group file
解决:现象:
root用户用useradd加个普通用户提示:useradd: unable to open password file。
普通用户su root提示:密码错(我可以肯定密码是对了)。解决办法:
1.首先检查下面四个文件是否加了权限保护
[root@203 etc]# lsattr /etc/passwd
------------- /etc/passwd
[root@203 etc]# lsattr /etc/shadow
----i-------- /etc/shadow
[root@203 etc]# lsattr /etc/gshadow
------------- /etc/gshadow
[root@203 etc]# lsattr /etc/group
----i-------- /etc/group
从结果来看/etc/shadow 和 /etc/group都加了保护。下一步就是去除保护
2.删除文件保护
[root@203 etc]# chattr -i /etc/shadow
[root@203 etc]# lsattr /etc/shadow
------------- /etc/shadow
[root@203 etc]# chattr -i /etc/group
[root@203 etc]# lsattr /etc/group
------------- /etc/group
3.添加用户试试
[root@203 etc]# useradd huangf
[root@203 etc]# passwd huangf
Changing password for user huangf.
New UNIX password:
BAD PASSWORD: it is too simplistic/systematic
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
添加用户成功了!!!!!
一、故障报错:useradd: unable to open password file或者useradd: error opening group file
解决:现象:
root用户用useradd加个普通用户提示:useradd: unable to open password file。
普通用户su root提示:密码错(我可以肯定密码是对了)。解决办法:
1.首先检查下面四个文件是否加了权限保护
[root@203 etc]# lsattr /etc/passwd
------------- /etc/passwd
[root@203 etc]# lsattr /etc/shadow
----i-------- /etc/shadow
[root@203 etc]# lsattr /etc/gshadow
------------- /etc/gshadow
[root@203 etc]# lsattr /etc/group
----i-------- /etc/group
从结果来看/etc/shadow 和 /etc/group都加了保护。下一步就是去除保护
2.删除文件保护
[root@203 etc]# chattr -i /etc/shadow
[root@203 etc]# lsattr /etc/shadow
------------- /etc/shadow
[root@203 etc]# chattr -i /etc/group
[root@203 etc]# lsattr /etc/group
------------- /etc/group
3.添加用户试试
[root@203 etc]# useradd huangf
[root@203 etc]# passwd huangf
Changing password for user huangf.
New UNIX password:
BAD PASSWORD: it is too simplistic/systematic
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
添加用户成功了!!!!!
相关文章推荐
- useradd: unable to open password file 解决办法
- sqlite3.OperationalError: unable to open database file 解决办法
- LOGCAT里面出现UNABLE TO OPEN LOG DEVICE ‘/DEV/LOG/MAIN': NO SUCH FILE OR DIRECTORY 的解决办法
- eclipse、android开发 logcat出现 Unable to open log device ‘/dev/log/main’: No such file or directory 解决办法
- eclipse、android开发 logcat出现 Unable to open log device ‘/dev/log/main’: No such file or directory 解决办法
- C++ builder 6 编译时提示Unable to open file 'DCLUSR.LIB' 之解决办法
- 关于useradd: unable to open password file的问题
- sqlite3.OperationalError: unable to open database file 解决办法
- C++ builder 6 编译时提示Unable to open file 'DCLUSR.LIB' 之解决办法
- useradd: unable to open password file
- OPW-00001: Unable to open password-file (10gR2)
- modelsim10.4仿真错误Error: (vlog-7) Failed to open design unit file "XXXXX" in read mode解决办法
- IAR Unable to open file '<dir>\<filename>.xcl' 问题解决
- Flask sqlite3.OperationalError: unable to open database file解决方法
- 解决sqllite的'unable to open database file'错误
- 三星i9100 CM9 rom Unable to open log device '/dev/log/main'的解决办法
- malformed or corrupted AST file: 'Unable to load module XXXXX 解决办法.
- weblogic应用,前端页面无法启动,报找不到页面,重启服务报“Unable to obtain file lock but will retry”的解决办法
- Eclipse编译JNI时提示"Fatal: Unable to open makefile"解决办法
- ORA-31640: unable to open dump file 问题解决