deleting password for a user

Felipe Figueiredo philsf at ufrj.br
Fri Jul 21 04:17:16 UTC 2006


On Thursday 20 July 2006 18:41, Christopher J. Bottaro wrote:
> Thomas Olsen wrote:
> > On Thursday den 20. July 2006 17:17, Christopher J. Bottaro wrote:
> >> 'passwd -d new_user' executed without error, but then when I try to 'su
> >> - new_user', it asked for a password.  Is there anyway I can remove a
> >> password for a user?
> >>
> >> Thanks for the help.
> >
> > You can do:
> >
> > sudo passwd new_user
>
> That sets new_user's passwd.  I want to make new_user not have a password
> at all so I can su into that account with typing a password.

Thomas has a point. The root user is allowed to set blank passwords.

You could also edit the /etc/shadow and delete the password itself. It is the 
second field, being the ":" the field separator.

regards
FF




More information about the kubuntu-users mailing list