vasilito 0a1c31fd18 login: set a namespace-valid CWD before spawning the shell
After apply_login_schemes() swaps into the restricted login namespace
(only DEFAULT_SCHEMES), the CWD inherited from init on the live image is
/scheme/initfs, whose scheme is NOT in that namespace. File operations
that consult the CWD fd (notably the child's execve opening the shell
binary) then block, so the login shell never starts. chdir to the user's
home (fallback /), both on the always-present 'file' scheme, before
spawning. Also drops the temporary spawn_shell diagnostics.
2026-07-18 10:17:10 +09:00
2017-07-26 08:00:41 -06:00
2016-10-07 10:19:08 -06:00
2016-10-07 10:19:08 -06:00
2018-02-10 12:09:10 -06:00

Redox OS user and group utilities.

The userutils crate contains the utilities for dealing with users and groups in Redox OS. They are heavily influenced by UNIX and are, when needed, tailored to specific Redox use cases.

These implementations strive to be as simple as possible drawing particular inspiration by BSD systems. They are indeed small, by choice.

Travis Build Status

Currently included:

  • getty: Used by init(8) to open and initialize the TTY line, read a login name and invoke login(1).
  • id: Displays user identity.
  • login: Allows users to login into the system
  • passwd: Allows users to modify their passwords.
  • su: Allows users to substitute identity.
  • sudo: Enables users to execute a command as another user.
  • useradd: Add a user
  • usermod: Modify user information
  • userdel: Delete a user
  • groupadd: Add a user group
  • groupmod: Modify group information
  • groupdel: Remove a user group
S
Description
RedBear Operating System, based on RedoxOS. Licenced under MIT license.
https://redbearos.org
Readme MIT 18 GiB
Languages
C 37.5%
C++ 37.2%
JavaScript 6.7%
QML 3.4%
HTML 3.2%
Other 11.4%