1cce5020ad62bcac5f4e54d2f23d3e6d86757090
The username is read with the liner line editor, which puts the console pty into raw mode (ICANON/ECHO cleared) and does not restore it. In raw mode the pty line discipline never flushes a completed line into the slave read buffer the way a shell's canonical read_line expects, so the interactive shell (brush) never receives a typed command even though getty forwards it to the pty master. Reset stdin to sane cooked settings (ICANON|ECHO|ISIG, ICRNL, OPOST|ONLCR, VMIN=1/VTIME=0) via tcsetattr before spawning the shell.
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.
Currently included:
getty: Used byinit(8)to open and initialize the TTY line, read a login name and invokelogin(1).id: Displays user identity.login: Allows users to login into the systempasswd: 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 userusermod: Modify user informationuserdel: Delete a usergroupadd: Add a user groupgroupmod: Modify group informationgroupdel: Remove a user group
Description
RedBear Operating System, based on RedoxOS. Licenced under MIT license.
https://redbearos.org
Languages
C
37.5%
C++
37.2%
JavaScript
6.7%
QML
3.4%
HTML
3.2%
Other
11.4%