- 论坛徽章:
- 0
|
我按lz的操作步骤.
[root@www samba]# cp /etc/passwd /etc/passwd.bak <奉劝lz该配置文件的时候back一下,有时候会有很大的帮助>
[root@www samba]# cp /etc/shadow /etc/shadow.bak
[root@www samba]# vim /etc/passwd <删除了test 用户>
[root@www samba]# system-config-users
Traceback (most recent call last):
File "/usr/share/system-config-users/system-config-users.py", line 46, in <module>
mainWindow.mainWindow()
File "/usr/share/system-config-users/mainWindow.py", line 238, in __init__
self.userWin = userWindow.userWindow(self, self.userStore, self.groupTreeView, xml, selinuxEnabled)
File "/usr/share/system-config-users/userWindow.py", line 68, in __init__
uidNumber, gidNumber = userGroupFind.find_uid_gid (self.parent.ADMIN, self.parent.preferences)
File "/usr/share/system-config-users/userGroupFind.py", line 48, in find_uid_gid
uidNumbers = map (lambda x: x[libuser.UIDNUMBER][0], filter (lambda x: x[libuser.USERNAME][0] not in high_uid_ignore, lu_admin.enumerateUsersFull ()))
File "/usr/share/system-config-users/userGroupFind.py", line 48, in <lambda>
uidNumbers = map (lambda x: x[libuser.UIDNUMBER][0], filter (lambda x: x[libuser.USERNAME][0] not in high_uid_ignore, lu_admin.enumerateUsersFull ()))
KeyError: 'no such attribute defined for this entity'
[root@www samba]# rm /etc/shadow
rm:是否删除 普通文件 “/etc/shadow”? y
[root@www samba]# pwconv
[root@www samba]# system-config-users <正常>不知道lz这里报什么错误
lz是在运行system-config-users出错,并不是配置samba用户出错
在查看我的samba用户
[root@www bin]# ./pdbedit -L
root:0:root
Abel:500:Abel,,work
DEAN-08$:4294967295 EAN-08$
test:4294967295:
[root@www bin]# |
|