Skip to content
Snippets Groups Projects
Commit 7d8e450e authored by Peter Toth's avatar Peter Toth
Browse files

shell script to set permission for ansible user

parent 60e6d396
Branches inital
No related tags found
No related merge requests found
chown -R sysopans:sysopans /home/sysopans/.ssh
chmod -R 700 /home/sysopans/.ssh
chmod 600 /home/sysopans/.ssh/authorized_keys
usermod -a -G sudo sysopans
echo "sysopans ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/sysopans
chmod 440 /etc/sudoers.d/sysopans
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment