Blog

My workspace... ;)

My Workspace

[UPDATE]: To be honest, my real workspace actually looks like this:

My real workspace

My real workspace looks sexy too! Not that chaotic, but with all features enabled! Even Tux got his place...

I believe it's virtual enough... ;)

Permalink: https://hanez.org/2024/10/30/my-workspace/

/bin/checkpw

This post was originally postet at https://xw3.org/blog/2024/09/25/checkpw/, but it was the wrong place for my personal stuff. I moved it here to keep the content more up to date.

I created a small C program to authenticate against a UNIX/Pluggable authentication module (PAM) called checkpw. This program is only for verifiying a user’s password, that is registered in /etc/passwd using /etc/shadow, or whatever PAM is configured to use.

The program returns 0 on success, 1 otherwise.

With this program, it will be possible to authenticate an xw3 application user against the system’s user database.

Currently only tested on Linux, but it should work on AIX, DragonFly BSD, FreeBSD, HP-UX, macOS, NetBSD and Solaris operating systems too. I will test API compatibility for all OS’s listed soon maybe some day… ;)

Group permissions will be handled using /etc/group in a seperate program - Maybe just with a small wrapper around the “id” command (not available yet, but it should be easy to implement).

[UPDATE]:Renamed project from checkpw to chkpwd since I belive it is more native UNIX style… ;).

Permalink: https://hanez.org/2024/09/25/checkpw/

Pages

Page generated at: Jun 4, 2025 (CEST) using Jekyll & xw3 on GNU/Linux
NULL
Powered by: NULL