About Linux FAQ

Browse More FAQs:

Freebsd changing password

Posted by Vivek Gite [Last updated: August 6, 2007]

Q. How do I change a password under FreeBSD or Linux (UNIX) operating systems?

A. The FreeBSD passwd utility changes the user's local, Kerberos, or NIS password. If the user is not the super-user, passwd first prompts for the current password and will not continue unless the correct password is entered.

Choosing a good password

It is a good idea to change password once a month or week. Make sure you change the password when admin gives you first time account information including a password to log on.

  1. The new password should be at least six characters long and not purely alphabetic.
  2. Its total length must be less 128 characters.
  3. The new password should contain a mixture of upper and lower case characters
  4. In all other situations, numbers, upper case letters and meta characters are encouraged.
  5. It should not be similar to the login id
  6. Please note that all UNIX / BSD / Linux password are case sensitive

Changing your own password

Just type passwd and hit [Enter] key:
$ passwd
So before the password can be changed, the current password must be supplied. When entering the new password, the characters entered do not echo, in order to avoid the password being seen by a passer-by. The passwd utility prompts for the new password twice in order to detect typing errors.

Changing other users password

You must login as the root user. To change password for user tom, enter:
# passwd tom

A note about passwd command

passwd command works with all UNIX, Linux, BSD and UNIX like oses. For more information read passwd man page:
man passwd

E-mail this to a friend      Printable version

Related Other Helpful FAQs:

Discussion on This FAQ

  1. HollySmokes Says:

    What are the defualt allowed characters? Can this range of exceptable characters be changed to include: ~!@#$%^&*()_+|{}:”?

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , , , , , , , ,

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.