RHCSA Questions and Answers
(100% Pass)
Set cronjob for user natasha (student) to do /bin/echo hiya at 14:23
✓ # crontab -e -u natasha 23 14 * * * /bin/echo hiya
SELinux must be running in the Enforcing mode
✓ # cat /etc/selinux/config
# setenforce 1
# vim /etc/selinux/config
## selinux=enforcing
sestatus
1. A YUM repository has been provided at
http://server.domain11.example.com/pub/x86_64/Server. Configure your
system to use this location as a default repository.
✓ 'cd /etc/yum.repo.d/'
'touch exam.repo'
'vim exam.repo'
###
Master01 | October, 2024/2025 | Latest update
, 1 | P a g e | © copyright 2024/2025 | Grade A+
[exam]
name=exam
baseurl=http://...
enable=1
nogpgcheck=0
###
'yum repo list' // (This verifies that it is enabled)
Create the following users, groups, and group memberships:
· A group named adminuser
· A user natasha who belongs to admin user as a secondary group
· A user harry who also belongs to admin user as a secondary group
· A user sarah who does not have access to an interactive shell on the
system, and who is not a member of adminuser, natasha, harry, and sarah
should all have the password of redhat.
✓ 'addgroup adminuser'
'useradd natasha'
'usermod -a -G adminuser natasha'
'useradd harry'
Master01 | October, 2024/2025 | Latest update
, 1 | P a g e | © copyright 2024/2025 | Grade A+
'usermod -a -G adminuser harry'
'useradd -s /sbin/nologin sarah'
'passwd natasha'
'passwd harry'
'passwd sarah'
Configure the FTP service in your system, allow remote access to anonymous
login and download the program by this service. Service is still running after
system rebooting.
✓ 'yum install vsftpd'
'systemctl start vsftpd'
'systemctl enable vsftpd'
'rpm -qc vsftpd' // list all vsftpd files for .conf file
'vim file.conf'
#set anonymous_enable=YES
'systemctl restart vsftpd'
Configure your web services, download from
http://instructor.example.com/pub/serverX.html , and the services must be
still running after system rebooting
Master01 | October, 2024/2025 | Latest update