mirror of
https://github.com/ThunixdotNet/makeuser.git
synced 2026-01-24 13:40:17 +00:00
Added Recovery Account function to makeuser script
This commit is contained in:
@@ -34,3 +34,10 @@ makeuser_no_ansible()
|
||||
#If root doesn't have a fediverse account, comment this out
|
||||
#sudo toot "welcome new user ~$1!"
|
||||
}
|
||||
|
||||
add_account_recovery()
|
||||
{
|
||||
sudo mkdir --mode=700 /home/$1/.thunix
|
||||
sudo echo echo $2 > /home/$1/.thunix/recovery
|
||||
sudo chmod 600 > /home/$1/.thunix/recovery
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user