Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error removing and modifying users 1

Status
Not open for further replies.

dl0rd

Programmer
Jul 5, 2004
19
SE
Hi,

I'm going through a AIX(think its version 4.. not sure) box here and I want to remove some users and add some password policies on some of the users.

This is my problem. For some of the users I can modify and remove them without any problem using Smit or Terminal.

But for a couple of users I can't delete and I can't modify.

rmuser gives 3004-696 Error removing...

and chuser gives 3004-692.



pwdck -n gives me no result. usrck -n complains about no nofiles attribute and that I have to add this using chuser. But when I try to do this it fails as describe above.

Please, any help is appriciated.


Thanks!
 
nope, the NIS was the one that didn't work.
 
Then try:

Code:
chuser registry=files [i]baduser[/i]

then see if you can remove it.

Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
server:/ >chuser registry=files username
3004-698 Error committing changes to "username".

Seems like very few commands to modify users works, do you think it could be a corrupt file/db somewhere?
 
It looks like NIS is actually in use.

Does "ypwhich" return the name of another server?


Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
This might work, but there might be side effects.

Make a backup copy of /etc/security/user, then edit it to remove the "registry=NIS" line from the user in question.

Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
Thanks! Worked great!

What is that registry=NIS and why do you think it affected us the way it did?
 
registry=NIS means that information about that user is managed by an NIS server. chuser and rmuser only work with local users and were balking at the registry entry.

Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top