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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't delete the user from command line

Status
Not open for further replies.

spavlov

Technical User
Aug 23, 2002
10
DE
Hi All,

I try from command line to delete a user (Solaris8) and I get the following error:
UX: userdel: ERROR: Cannot update system files - loggin can not be deleted.
Any suggestions will be helpful. The root (/) file system has enough free space.

Regards,
Slava

SCSA
 
useradd adds a new user entry to the /etc/passwd and /etc/shadow files. It also creates supplementary group
memberships for the user (-G option) and creates the home directory ( - m option) for the user if requested. The new
login remains locked until the passwd(1) command is executed.
 
why delete an user ?
my be you need it later... reading back a backup tape.
disable it!! replace his encripted passwd in /etec/shadow by
a string like: CLOSED ------------ jamisar
Einfachheit ist das Resultat der Reife. (Friedrich Schiller)
Simplicity is the fruit of maturity.
 
Hi,

Thanks a lot for your interest in my topic.
The problem was found. The file /etc/user_attr was deleted from the system. So, the root user didn't have any profiles.

Regards,
Slava

SCSA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top