unix:linux:sysadmin:syncusers
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
unix:linux:sysadmin:syncusers [2022/01/17 18:37] – rodolico | unix:linux:sysadmin:syncusers [2022/01/17 18:40] (current) – rodolico | ||
---|---|---|---|
Line 13: | Line 13: | ||
The passwords are encrypted using the command <code bash> | The passwords are encrypted using the command <code bash> | ||
- | Use with caution, but it has worked well for us in the past. | + | Use with caution, but it has worked well for us in the past. It is not well documented. |
<code perl fixusers.pl> | <code perl fixusers.pl> | ||
Line 40: | Line 40: | ||
# echo ' | # echo ' | ||
# 'ssh key' is the value found in ~/ | # 'ssh key' is the value found in ~/ | ||
+ | # in the following example, ' | ||
+ | # and their password is changed to ' | ||
+ | # nothing is done to their ssh key. | ||
+ | # user2 is treated the same way, but their ssh public key is added to their authorized_keys file | ||
my %passwords = ( | my %passwords = ( | ||
' | ' | ||
- | ' | + | ' |
'ssh key' | 'ssh key' | ||
}, | }, |
unix/linux/sysadmin/syncusers.1642466252.txt.gz · Last modified: 2022/01/17 18:37 by rodolico