Commit Graph

180 Commits

Author SHA1 Message Date
bjorn3 cacb0dd67e passwd: Extract find_user 2025-04-20 20:54:52 +02:00
bjorn3 d514768aae passwd: Allow root to always change passwords
Previously root would need to know its own password. On Linux root can
change its own password without needing to enter its own password. It
can do so on Redox OS already anyway by directly editing /etc/shadow.
2025-04-20 20:52:24 +02:00
bjorn3 f557417ebf passwd: Extract ask_new_password 2025-04-20 20:40:37 +02:00
Jeremy Soller 479cce7b96 Merge branch 'simplify_passwd' into 'master'
passwd: Only allow locking accounts as root

See merge request redox-os/userutils!54
2025-04-20 18:36:57 +00:00
bjorn3 2e630a9f4d passwd: Only allow locking accounts as root
This is consistent with how Linux works and prevents accidentally
locking yourself out.
2025-04-20 20:23:17 +02:00
bjorn3 0a2dea6b04 passwd: Reduce code nesting and minor cleanups 2025-04-20 19:52:18 +02:00
Jeremy Soller 51d2db809f Merge branch 'su_no_setuid' into 'master'
Use the sudo daemon rather than setuid for su

See merge request redox-os/userutils!53
2025-04-20 15:22:33 +00:00
bjorn3 9c53a9a775 Use the sudo daemon rather than setuid for su 2025-04-20 16:46:50 +02:00
Jacob Lorentzon 9eadf3bb1d Merge branch 'fix_sudo' into 'master'
Fix sudo for procmgr

See merge request redox-os/userutils!52
2025-04-20 14:23:13 +00:00
bjorn3 bfd521ff49 Fix sudo for procmgr 2025-04-20 16:20:56 +02:00
Jeremy Soller 803fd8870f Merge branch 'no_setuid2' into 'master'
Introduce a sudo daemon as replacement for suid/escalated

See merge request redox-os/userutils!51
2025-04-16 15:49:21 +00:00
bjorn3 1fbb804f35 Introduce a sudo daemon as replacement for suid/escalated
This daemon will request the password of the user, check that the user
is in the sudo group and if everything checks out elevate the sudo
process to root after which the sudo process can exec the target process.
2025-04-14 20:16:33 +02:00
Jeremy Soller bd7592270d Merge branch 'cleanup' into 'master'
Various cleanups

See merge request redox-os/userutils!50
2025-04-13 20:15:18 +00:00
bjorn3 7fa1bf8df4 sudo: Simplify a bit 2025-04-13 18:03:49 +02:00
bjorn3 6a208c6b34 Rustfmt 2025-04-13 16:51:27 +02:00
bjorn3 6f2514ed95 Move to the 2024 edition 2025-04-13 16:50:06 +02:00
Jeremy Soller e3507e18bc Merge branch 'sudo_improvements' into 'master'
Cleanup the source of sudo a bit

See merge request redox-os/userutils!49
2025-03-11 21:28:12 +00:00
bjorn3 4ccec7baae sudo: Reduce indentation 2025-03-11 21:31:54 +01:00
bjorn3 88ccab8844 sudo: Rustfmt 2025-03-11 21:31:49 +01:00
Jeremy Soller dcec4b7f35 Merge branch 'deps' into 'master'
Bump dependencies

See merge request redox-os/userutils!48
2024-10-16 18:22:04 +00:00
Andrey Turkin 53992ad18c Bump dependencies 2024-10-16 21:17:20 +03:00
Jeremy Soller 7a96dab061 Merge branch 'no_legacy_scheme' into 'master'
Update redox_event and redox_users

See merge request redox-os/userutils!47
2024-08-19 16:47:45 +00:00
bjorn3 6907336a71 Update redox_event and redox_users
This remove all usages of the legacy scheme syntax
2024-08-19 18:43:15 +02:00
Jeremy Soller 97bbfc03cb Merge branch 'no_legacy_path' into 'master'
Use the new scheme format

See merge request redox-os/userutils!46
2024-07-11 23:31:57 +00:00
bjorn3 1e183ca4ba Use the new scheme format 2024-07-11 21:09:53 +02:00
Jeremy Soller 1530c8fceb Update dependencies 2024-03-31 06:58:16 -06:00
Jeremy Soller de5e7eb903 Use absolute path without scheme for default home and shell 2024-01-18 14:53:02 -07:00
Jeremy Soller b5a371be31 Do not set COLUMNS or LINES in getty 2024-01-18 14:52:13 -07:00
Jeremy Soller 5b9bb750f5 Merge branch 'use_fbcond' into 'master'
Fix for the introduction of fbcond

See merge request redox-os/userutils!45
2024-01-15 02:00:57 +00:00
bjorn3 41fde1045c Let fbcond rather than inputd handle input events 2024-01-14 18:30:51 +01:00
bjorn3 0148436174 Fix for the introduction of fbcond 2024-01-14 18:28:00 +01:00
Jeremy Soller 8071772c69 Merge branch 'contain_login' into 'master'
add option to getty to run contain_login

See merge request redox-os/userutils!44
2024-01-03 19:22:11 +00:00
Ron Williams 5cb44522f0 add option to getty to run contain_login 2023-12-19 21:00:27 -08:00
Jeremy Soller be77642b20 Merge branch 'libredox' into 'master'
Switch to libredox

See merge request redox-os/userutils!43
2023-11-05 12:57:33 +00:00
4lDO2 efd875b21e Use crates.io redox_event dependency. 2023-11-04 20:21:49 +01:00
4lDO2 8ab925eb65 Fully switch to libredox 2023-11-04 20:04:59 +01:00
4lDO2 ae3c0037d7 Update redox-daemon 2023-11-04 15:07:26 +01:00
4lDO2 8afb03544f Update redox_users. 2023-11-04 14:52:16 +01:00
4lDO2 01e612d79c Update dependencies. 2023-08-31 20:59:32 +02:00
Jeremy Soller f59cf56e6b Merge branch 'master' into 'master'
misc: getty open consumer channel to get events

See merge request redox-os/userutils!42
2023-08-02 15:11:28 +00:00
Anhad Singh 7c3c5f306e getty: make the consumer changes work with :debug
Signed-off-by: Anhad Singh <andypythonappdeveloper@gmail.com>
2023-07-22 18:15:43 +10:00
Anhad Singh 5e3956adf1 misc: getty open consumer channel to get events
Signed-off-by: Anhad Singh <andypythonappdeveloper@gmail.com>
2023-07-22 17:41:30 +10:00
Jeremy Soller 5a9cee6b22 Update libc crate 2023-02-11 14:41:07 -07:00
4lDO2 0621709286 Use redox-daemon in getty 2022-07-27 16:32:27 +02:00
Jeremy Soller f61edda364 Update Cargo.lock 2022-07-26 17:46:36 -06:00
4lDO2 cbed606ea7 Update syscall 2022-03-25 21:01:50 +01:00
4lDO2 09a04fc55b Update syscall. 2021-06-17 14:09:55 +02:00
Jeremy Soller bfa45b9da8 Update dependencies 2021-04-28 20:56:14 -06:00
Jeremy Soller 93b6791e29 Update redox_users 2021-01-26 12:52:03 -07:00
Jeremy Soller c33a464522 Update dependencies 2020-08-02 16:25:50 -06:00