Write puppet code to crete the following. User becca must exist on the system. a
ID: 3587955 • Letter: W
Question
Write puppet code to crete the following.
User becca must exist on the system.
a. Her home directory needs to be managed and needs to be located in /home/becca.
b. She needs to be a member of the sysadmin and cars group.
c. Her password needs to be managed (and encrypted).
d. Her UID needs to be 1001 followed by the digits 0227.
e. Her shell needs to be bash.
f. Create an ssh key for her and manage it with puppet (the creation of the key does not have to be in puppet but key needs to be managed with puppet).
Explanation / Answer
ssh_authorized_key { 'becca@localhost':
ensure => 'present',
user => 'becca',
type => 'ssh-rsa',
key => $ssh_key,
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.