🇺🇦 Stand with Ukraine 🇺🇦

Blog

This is a private homepage... ;)

Quote of the day

"I guess what it boils down to is that it's not recommended to use NTFS on an operation system drive."

Arch Capital (2018)

Quote of the day

"Unix boosters seem almost ashamed to acknowledge this sometimes, as though admitting they're having fun might damage their legitimacy somehow. But it's true; Unix is fun to play with and develop for, and always has been."

Eric S. Raymond (2003)

Hacking on Android

I wrote a document about installing Alpine Linux on Android some time ago. Today I started working on a new document about setting up a full hacking environment on Android based devices. It shows you a lot more information about running Linux distributions on your mobile/portable device…

I am using a rooted SM-T585 tablet from Samsung running a LineageOS based custom ROM.

The document is not yet finished and will be updated continuously!

Read more

Quote of the day

"Containers are containers, after all. You can put radioactive waste in a container, too. But it will still continue to radiate. You might want to do that, yes, but the contents simply won't change."

Armin (2025)

/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) named 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 believe it is more native UNIX style… ;).

[UPDATE]:Renamed project from chkpwd to chkusr because I merged other code into it. The chkpwd command still exists along with some more commands in the future.

Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14

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