]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
uid: add login command with password authentication
authorTulio A M Mendes <[email protected]>
Thu, 11 Jun 2026 02:55:13 +0000 (23:55 -0300)
committerTulio A M Mendes <[email protected]>
Thu, 11 Jun 2026 02:55:13 +0000 (23:55 -0300)
commita2eb3f5291f32bcc9da2c4eddc1959233dd836ed
tree47c9d5c34be594d761992980ee92d32e8edeaa81
parent1e959cd634fb755ea68fa78d67b7f4a61112d526
uid: add login command with password authentication

Implement UID Infrastructure: login real (completed).

Added user/cmds/login/login.c with:
- Username prompt
- Password prompt with echo disabled (termios)
- Password verification using check_password()
- UID/GID setting after successful authentication
- Home directory change
- Shell execution (from /etc/passwd or default /bin/sh)
- Loop for retry on failed login

Added user/cmds/login/Makefile.
Updated Makefile to include login in USER_CMD_NAMES.

Test: make test-battery PASS (157/157)
Makefile
user/cmds/login/Makefile [new file with mode: 0644]
user/cmds/login/login.c [new file with mode: 0644]