Commit Graph

25 Commits

Author SHA1 Message Date
Jose Narvaez 4a4c45a7a7 Some tweaks to the id docs and copy-pasta typos.
Details

- Added docs for the `-r` flag of `id` also reindented to 80 cols.
- Fixed a typo on `getty`.
2017-07-20 17:34:06 +01:00
Jose Narvaez ef5fdc82a0 Improved id and whoami.
Details

- New implementation of `id` inspired by BSD's one.
- Refactoring on `whoami`.
- Added few utility functions in `userutils` for getting processes user and group
real/effective ID and names.

Added docs do `getty`, `login`, `passwd`, `su`, and `sudo`.

Details

- The docs are from BSD's ones.
- Also added `ArgParser` to all of them and added a -h/--help flag
to all of them.
- This is the start of a revision of all of those commands.
2017-07-19 18:06:48 +01:00
Jose Narvaez 3a06dbbc8e Implemented whoami on top of system calls.
Details

- The current implementataion the `whoami` utility relies
on a env var to determine the user. With this change we get
the effective user id of the context and lookup that id on
/etc/passwd.
- Added the Redox `libextra` dependency as it has some goodies
for error handling. This will allow to make this crate upto date
with `coreutils` practices.
- Added a new small `arg_parser` crate that was extracted from
`coreutils` as is now commen between `coreutils` and here.
2017-07-16 17:47:18 +01:00
Jeremy Soller 3ca18917f8 Update to use sudo password 2017-04-06 21:05:46 -06:00
Jeremy Soller 1ee223f926 Better error messages for sudo 2017-02-27 15:34:35 -07:00
Jeremy Soller b1e0ae8722 Fix issue with variable not passed to daemon 2017-02-07 20:39:07 -07:00
Jeremy Soller 880c664a24 Better failure detection in getty 2017-02-07 20:38:21 -07:00
xTibor 63985a11ff Implement whoami 2017-01-16 00:19:24 +01:00
Jeremy Soller 2fdef17559 Use liner to get username 2017-01-12 19:12:59 -07:00
Jeremy Soller ccae9c0b0a Correctly set environment 2017-01-10 09:50:23 -07:00
Jeremy Soller 13ef8943df Fix UID, GROUPS setting 2017-01-10 09:46:02 -07:00
Jeremy Soller 4a7d61eb1c Set other environmental variables 2017-01-10 09:44:43 -07:00
Jeremy Soller 45cb3e8208 Add clear argument 2016-12-19 21:38:00 -07:00
Jeremy Soller 56da6a40b0 Manually enter/exit raw mode 2016-11-20 11:59:08 -07:00
Jeremy Soller 48938fa3fd Use clone instead of threading to daemonize 2016-11-10 20:09:15 -07:00
Jeremy Soller 30187e1c64 WIP passwd implementation 2016-11-08 11:54:10 -07:00
Jeremy Soller afac2a3ccc Reenable clear in getty 2016-10-24 14:21:21 -06:00
Jeremy Soller 46631df4f0 Use OsRng to get random data for seed 2016-10-24 14:07:55 -06:00
Jeremy Soller d32f2dc10e Correctly use salt 2016-10-24 13:12:58 -06:00
Jeremy Soller e0fe388ccf Switch to argon2: WIP 2016-10-24 12:22:13 -06:00
Jeremy Soller 3b7448c8fd Path does not have to be set by login 2016-10-14 21:10:41 -06:00
Jeremy Soller b556eefe60 Remove qeustion marks 2016-10-14 17:57:27 -06:00
Jeremy Soller 17896532dc Skip display number 2016-10-07 19:24:10 -06:00
Jeremy Soller eaf26765c1 Add su 2016-10-07 10:42:00 -06:00
Jeremy Soller 860c1f5f25 Initial commit 2016-10-07 10:19:08 -06:00