DevOps Classroom notes 04/Nov/2026

Linux permissions

U – user G – Group O – others

Access types in linux

r - read -  4
w - wirte - 2
x - excute -1

- file
d - directory

ugo
- rwx rw- r--

7 5 0
rwx r-x ---

users - ram , hari, kirshna , deva

Groups - dev, qa , stg 

dev - ram, hari 

qa - kirshna 

devops.txt --> ram dev 

chmod 755 filename or dir-name
chown owner:group filename or dir-name

set up Redhat ansible node

sudo useradd devops
sudo passwd devops
sudo usermod --append -G wheel devops

sudo visudo -f /etc/sudoers.d/devops

devops ALL=(ALL) ALL

su - devops

sudo whoami # verify user 

# allow PasswordAuthentication
sudo vi /etc/ssh/sshd_config.d/50-password-auth.conf
PasswordAuthentication yes

sudo systemctl restart sshd

Task

  1. create redhat 8 and setup user with sudo permissions
  2. add user ansible invermtory and try ping cmd
ANSIBLE_HOST_KEY_CHECKING=False ansible -i local-machine.host all -m ping -e ansible_password=ansible -e ansible_user=ansible

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company
Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube