FreeBSD

Moderators: gautam
Number of threads: 54
Number of posts: 117

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
User Accounts Posted by Danty on 14 Feb 2002 at 3:21 PM
what's the FreeBSD command for determing/viewing all user accounts on the system?

I created an accound and forgot the password, how do I get (i'm root too)
Report
Re: User Accounts Posted by gautam on 15 Feb 2002 at 12:47 AM
: what's the FreeBSD command for determing/viewing all user accounts on the system?
:
: I created an accound and forgot the password, how do I get (i'm root too)
:

The simplest way I know of checking if a user exists is to do a simple grep

grep "username" /etc/passwd

This will search the password file for the username. However the password is generally encrypted.

If your only need is to change the password - you might want to look at this
http://www.bsdi.com/bsdi-man?proto=1.1&apropos=0&msection=ALL&query=passwd

Report
Re: User Accounts Posted by Danty on 15 Feb 2002 at 6:06 PM
anyhow, in what file and where the encrypted password is stored?
Report
Re: User Accounts Posted by gautam on 15 Feb 2002 at 8:26 PM
: anyhow, in what file and where the encrypted password is stored?
:

I think that would be /etc/shadow

Report
Re: User Accounts Posted by hoover on 13 Aug 2002 at 11:10 PM
anyway,if i m not mistaken, root can use <$ sudo passwd (username)> to change the users passwd right? try it.. hp-ux can run it but i m not sure in freebsd



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.