Thread: Passwords
View Single Post
  #4   (View Single Post)  
Old 13th January 2011
jackthechemist jackthechemist is offline
Port Guard
 
Join Date: Dec 2010
Posts: 14
Default

Is it the wrong forum though? I mean it is a General question (not really installation/security related) ... at any rate, it hasn't been moved so I'm going to answer!

Use 'passwd' to change your passwd. You may need to be root or sudo I'm not sure. Read 'man passwd'.

Also, I believe you should call '/usr/bin/passwd' rather than 'passwd' (i.e. state the path to the command explicitly, you wouldn't want to execute the wrong command with elevated privileges, right?) Hm, on that note, if you do need to use sudo then you'll prolly want to state the full path for sudo as well (of course).

fyi:

use 'which' to get the full path of a command (i.e. 'which sudo')
use 'apropos' to find information on something that isn't a command (i.e. if 'man password' did show anything, you really should have tried 'apropos password'...)

Hope that helps! ^_^

Jack
Reply With Quote