Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    more details about the implementation of this approach: ubuntuforums.org/archive/index.php/t-1232715.html Commented Sep 22, 2009 at 12:23
  • oh ok, nice. I spend 6 hours figuring this approach out by myself a few month ago. this site would have helped a lot. but i needed this for web authentification, so i finally used the auth-pam module of php Commented Sep 22, 2009 at 12:27
  • nowhere. it was how I finally solved an similar problem. cluelessCoder has never said what he wants to do. it you want an simple shell solution you have to prse the shadow file. for web authentification this module is easy. Well you can also create a php file and coll this one from batch and parse the output (a bit overkill but easy to accomplish too. you only need to have a php server running on the local machine). Just several ways to accomplish a goal. Commented Sep 22, 2009 at 12:35
  • 1
    This doesn't work when you don't have access to /etc/shadow Commented Jun 4, 2019 at 8:32