Users and permissions: accounts, login, enforced file permissions, setuid, su, passwd, doas
The kernel now checks owner/group/other on open, create, unlink, rename, exec and path search; honours set-user-id and set-group-id; restricts kill, mount, reboot and mknod; keeps supplementary groups; and implements chown. devtmpfs nodes carry owners and modes that chmod/chown keep. Terminals run login, the image has root and schos, X starts as the ordinary user. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EVRhxi9zpdW2uDUN4FVcao
This commit is contained in:
parent
b3f72cd95e
commit
020aa6113c
34 changed files with 1342 additions and 120 deletions
10
etc/schos-getty
Normal file
10
etc/schos-getty
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
# What a virtual terminal runs: take the terminal back from whoever had it, and
|
||||
# ask for a login. login hands the terminal to the user it lets in, and this
|
||||
# runs again when their shell exits.
|
||||
t=$(tty 2>/dev/null)
|
||||
if [ -n "$t" ]; then
|
||||
chown root:tty "$t" 2>/dev/null
|
||||
chmod 0660 "$t" 2>/dev/null
|
||||
fi
|
||||
exec /bin/login
|
||||
Loading…
Reference in a new issue