Should we handle creation of a users/groups/permission?
What are best-practices?
How is this behaviour commonly handled in a Rust app?
let user = get_user("green_shark");
if ( exists(user) ) {
if has_required_permissions {
// All is good...
} else {
// Should privileges be updated?
// Or Error? or user removed and recreated?
}
} else {
// create_privileged_user()
}
^^^^ See above a thought on privileged user creation flow ^^^^
A ticket to put thoughts and questions against.
^^^^ See above a thought on privileged user creation flow ^^^^
Articles/refs:
Create a user per service
https://unix.stackexchange.com/questions/164030/why-do-web-create-separate-user-for-each-software
Software accounts per service
https://serverfault.com/questions/350931/in-what-condition-should-i-create-a-system-user-instead-of-a-normal-user#:~:text=When%20you%20are%20creating%20an,parts%20of%20the%20numeric%20space.