|
6389bb988d
|
actually remove the shadow line and fix a final newline
|
2020-10-30 19:45:41 +01:00 |
|
|
bacbfae4d1
|
delete the shadow entry along with the passwd one
|
2020-10-30 19:09:56 +01:00 |
|
|
4207e1dc0f
|
split Hashes into sepparate module
|
2020-10-30 16:37:57 +01:00 |
|
|
8dd2c53aa9
|
sepparate Files struct
|
2020-10-30 16:26:31 +01:00 |
|
|
8337c737d9
|
make userlib module a directory
|
2020-10-30 16:13:05 +01:00 |
|
|
1af8a7cd65
|
Add better error handling
|
2020-10-30 08:39:59 +01:00 |
|
|
bf6908346e
|
first draft of working user deletion
TODO:
* remove user group
* remove shadow entry
|
2020-10-28 09:39:42 +01:00 |
|
|
b8c1e3989a
|
use env_logger
|
2020-10-26 14:33:05 +01:00 |
|
|
927e7ba4a7
|
unify locking of a single file to locking of all files
|
2020-10-26 08:13:24 +01:00 |
|
|
b8c544a846
|
first draft of file locking
|
2020-10-25 11:08:56 +01:00 |
|
|
338b4949e4
|
add must uses
|
2020-10-24 13:50:33 +02:00 |
|
|
91f0453be6
|
do not use deprecated description
|
2020-10-24 13:50:20 +02:00 |
|
|
56a6679ccb
|
create draft binary for create_users
|
2020-10-23 19:50:06 +02:00 |
|
|
67af4a39cd
|
add getters to User
|
2020-10-23 19:49:47 +02:00 |
|
|
83255390e3
|
make the structs clonable, add pos and source to the fields
|
2020-10-23 19:49:21 +02:00 |
|
|
d81bac5146
|
add get nth line function
|
2020-10-23 19:46:20 +02:00 |
|
|
932fb2827d
|
comment broken newuser
|
2020-10-23 19:45:51 +02:00 |
|
|
f33ba8e767
|
persistent ordering of the passwd file
|
2020-10-23 15:21:30 +02:00 |
|
|
98d4c72f7f
|
properly do read_all
|
2020-10-23 15:18:57 +02:00 |
|
|
134b97cfec
|
first try implementing userdbwrite
|
2020-10-23 12:33:34 +02:00 |
|
|
70fcd823da
|
adjust and implement more of the api
|
2020-10-22 12:40:30 +02:00 |
|
|
f2000c7650
|
remove erronous warning
|
2020-10-19 13:04:03 +02:00 |
|
|
d09f861ab0
|
add validation for usernames and groupnames
|
2020-10-19 12:14:00 +02:00 |
|
|
7ec3bc3f0c
|
first draft of username and groupname validation
|
2020-10-18 20:35:53 +02:00 |
|
|
403f948c67
|
implement UserDbRead
|
2020-10-18 15:22:17 +02:00 |
|
|
60bbe1ef1b
|
add some documentation
|
2020-10-18 08:50:19 +02:00 |
|
|
abdb704ba0
|
remove duplicated code
|
2020-10-18 08:38:23 +02:00 |
|
|
ffafa7e473
|
Make the conten of shadow part of the user struct
|
2020-10-17 20:38:28 +02:00 |
|
|
9482e85821
|
add rough api draft
|
2020-10-16 13:19:32 +02:00 |
|
|
01a76b16a1
|
explicit types
|
2020-10-16 08:29:17 +02:00 |
|
|
f14d4b34ee
|
fix some warnings
|
2020-10-09 12:11:23 +02:00 |
|
|
b6eb9972d2
|
restructuring
Fix (remove) lifetimes and restructure the code
Co-authored-by: Dietrich <dietrich@teilgedanken.de>
Reviewed-on: http://git.teilgedanken.de/Rust/useradd/pulls/2
|
2020-10-07 15:11:10 +00:00 |
|
|
180934b789
|
Make shadow an entry of the passwd struct
|
2020-10-03 21:07:47 +02:00 |
|
|
4af05c1134
|
initial parsing and testing for a shadow line
|
2020-10-03 15:18:45 +02:00 |
|
|
4db597c058
|
initial parsing of shadow file
|
2020-10-02 18:13:15 +02:00 |
|
|
c6af13f3af
|
Add is system user
|
2020-10-02 12:40:03 +02:00 |
|
|
9b4956c78a
|
Restructure the passwd file
|
2020-10-02 11:55:56 +02:00 |
|
|
24db3e2579
|
Add warning on unconventional usernames
|
2020-10-02 09:50:02 +02:00 |
|
|
d4d3c0f0cf
|
Merge pull request 'make the username part of the invalid message.' (#1) from local into master
Reviewed-on: http://git.teilgedanken.de/Rust/useradd/pulls/1
|
2020-10-02 07:46:59 +00:00 |
|
|
a95fa96d08
|
Adding a testcase for the ubuntu special user
|
2020-10-02 09:45:08 +02:00 |
|
|
b030045355
|
make the username part of the invalid message.
|
2020-10-02 09:45:08 +02:00 |
|
|
063fb41708
|
restructure
|
2020-10-01 09:38:13 +02:00 |
|
|
1ab0adbc06
|
user validation and tests
|
2020-09-30 20:58:24 +02:00 |
|
|
5000fba6e7
|
doc update for enum Gecos
|
2020-09-30 18:23:44 +02:00 |
|
|
676a5218e6
|
rename shell_dir -> shell_path
|
2020-09-30 18:02:02 +02:00 |
|
|
2094bb7549
|
fix switched values
|
2020-09-30 17:35:39 +02:00 |
|
|
ee04fa30af
|
Fix failing tests because ubuntu has no comment field
|
2020-09-30 11:09:43 +02:00 |
|
|
0761afa6a0
|
ignore non ascii characters in tests
|
2020-09-30 08:40:19 +02:00 |
|
|
b72449eb88
|
partially fix clippy warnings regarding umlauts
|
2020-09-29 20:10:01 +02:00 |
|
|
020a95920e
|
Make the other field variable length, it can now be many fields or be missing entirely
|
2020-09-29 14:19:40 +02:00 |
|