Commit Graph

68 Commits

Author SHA1 Message Date
Andrey Turkin 53992ad18c Bump dependencies 2024-10-16 21:17:20 +03: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 1530c8fceb Update dependencies 2024-03-31 06:58:16 -06: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
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
Jeremy Soller 2fd54ec8d4 Update liner 2019-11-29 19:37:53 -07:00
Jeremy Soller 299d3ab37c Update dependencies 2019-10-02 20:54:46 -06:00
Jeremy Soller a208ce4aa8 Update redox_users 2019-08-07 20:00:09 -06:00
Jeremy Soller abf971b73e Update termion 2019-06-16 20:50:27 -06:00
Jeremy Soller dc387310f6 Update to new rust 2019-04-07 11:30:17 -06:00
Robin Randhawa bb0da5fa54 Update Cargo.lock
AArch64 builds broke because of a stale syscall crate ref.
2019-02-27 15:48:15 +00:00
Jeremy Soller c3e73ab0ce Update Cargo.lock 2018-10-14 19:56:48 -06:00
MggMuggins 48a8e2fa56 Update redox-users v0.2: Shadowfile support 2018-07-25 15:18:19 -05:00
Jeremy Soller 6635f8cb9e Update links to gitlab 2018-06-12 12:30:45 -06:00
MggMuggins ba89992998 Update Cargo.lock 2018-03-28 13:37:34 -05:00
MggMuggins 1d6b67cd42 Implement Unimplemented; Bugs
Fix a CLI bug with groupadd

Implement everything that involves removing user from groups, mostly
in userdel and usermod.
2018-02-12 09:07:17 -06:00
MggMuggins 69838054ab Remove ArgParser dep, whoami
Remove Arg parsing from sudo, (maybe in prep to deprecate in favor of
rudo)

Port login to clap-rs

Remove ArgParser dep

Remove whoami in favor of a link to id, and implemented linking in id.
2018-02-10 12:09:10 -06:00
MggMuggins fba0c70ae2 Port to clap-rs
I did a number of things here:

the *add, *mod, and *del utilities, as well as id recieved substantial
changes, probably what you'd call a rewrite. This was of course using
clap-rs. These should all be very stable at this point (except
unimplemented features in usermod, grr)

getty, passwd, and su are simply ported, using clap for arg parsing. I
didn't change any of the logic, just swapped ArgParser for clap.

Fixed a bug with passwd and unset passwords

I'll open issues about the ones I didn't mention.
2018-02-08 21:10:44 -06:00
MggMuggins d5e011a304 Implement usermod, groupmod, userdel, groupdel; Fix passwd and useradd
Here I've implemented the remainder of the core user utilities present
on most unix systems. They aren't particularly pretty, but they do work
for the most part.

Note that for some reason attempting to move the home directory of a
user via usermod -m does not work.

Also removing user's that have been deleted from groups is not yet
implemented, nor is updating /etc/passwd when a group id is changed.

Note that redox_users as used by Cargo.lock as of this commit is broken,
and may not work properly. If redox-os/users#11 is merged, cargo update
should fix.
2018-02-03 19:10:39 -06:00
MggMuggins bc0dc6488b Update Cargo.lock; Fix su 2018-01-29 20:44:08 -06:00
MggMuggins 5e53b4b161 Port to redox_users break-api
All the utilities use the new API I defined in mu recent PR to
redox_users. `su`'s behavior was also fixed.

I also updated Cargo.toml (removing unused deps). This may require
another commit after my first PR is merged in order to appropriately
update Cargo.lock and make sure everything builds.
2018-01-29 16:39:52 -06:00
Jose Narvaez 0e327d8124 Using new 'unwrap_or_exit' from libextra. 2017-12-15 18:31:25 +00:00
MggMuggins 0b8f40c234 Add additional flags to user and groupadd; Update Cargo files 2017-12-09 22:06:47 -06:00
Jose Narvaez cf8f7f3a25 Oops, commited local paths. Fixed. 2017-12-01 23:44:03 +00:00
Jose Narvaez fd81487760 Updated to new error types from redox_users and simplefied the inspection and downcasting of the error on login. 2017-12-01 23:16:14 +00:00
Jose Narvaez 13681c3442 Moved to new error hadling of . 2017-11-30 22:41:57 +00:00
MggMuggins 65817077ee Cargo.lock update 2017-11-28 22:10:45 -06:00
MggMuggins d9d3635916 Implemented useradd; groupadd fix 2017-11-28 21:39:20 -06:00
MggMuggins 8fffeb1e57 Implemented groupadd, fix for passwd compile 2017-11-26 16:53:37 -06:00
Jose Narvaez 0ed14bec6d Migrated to redox_users and some refactoring and docs.
Details

- Updated dependencies with `redox_users`.
- Migrated all user/group dependent functionality to calls to `redox_users`.
- Added top level documentation to the crate.
- Added a `spawn_shell` function to reuse a bit of code.
- `login`: Handled the case of an invalid login with "Login incorrect" (as in BSD).
- `passwd`: Refactored a bit and used `eprintln!` where possible.
- `su`: Refactored a bit and used `eprintln!` where possible.
- `sudo`: Refactored a bit to simplify logic also used `eprintln!` where possible.
- `whoami`: Refactored a bit and used `eprintln!/println!` where possible.
- Also added myself on the AUTHORS section :).
2017-11-08 22:49:00 +00:00
Jeremy Soller 1f9042f47c Update Cargo.lock 2017-10-11 20:54:45 -06:00
Jeremy Soller a1d096b0bf Update Cargo.lock 2017-10-04 20:29:41 -06:00
Jeremy Soller bc31f4d490 Update Cargo.lock and Cargo.toml 2017-08-19 14:51:08 -06:00
Jeremy Soller aeda1ae4b4 Update Cargo.lock 2017-08-02 21:13:16 -06:00
Jeremy Soller f6fd552f45 Replace termion 2017-08-02 19:42:00 -06:00
Jeremy Soller d0e22dd165 Update Cargo.lock 2017-07-29 08:25:08 -06:00
Jeremy Soller 1725b377cd Add Cargo.lock file 2017-07-26 08:04:04 -06:00
Jeremy Soller 5f9ff4d19e Remove cargo.lock 2016-11-16 21:32:05 -07:00