100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
RHCE Test Questions with Correct Answers $13.49   Add to cart

Exam (elaborations)

RHCE Test Questions with Correct Answers

 9 views  0 purchase
  • Course
  • RHCE
  • Institution
  • RHCE

RHCE Test Questions with Correct Answers How do you configure Apache for a CGI script? - Answer-<Directory "/website1/webapp/"> AllowOverride None Options ExecCGI AddHandler cgi-script .pl Order allow,deny Allow from all </Directory> chcon -t httpd_sys_script_exec_t How...

[Show more]

Preview 2 out of 5  pages

  • August 18, 2024
  • 5
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • rhce
  • rhce test
  • RHCE
  • RHCE
avatar-seller
Scholarsstudyguide
RHCE Test Questions with
Correct Answers
How do you configure Apache for a CGI script? - Answer-<Directory
"/website1/webapp/">
AllowOverride None
Options ExecCGI
AddHandler cgi-script .pl
Order allow,deny
Allow from all
</Directory>
chcon -t httpd_sys_script_exec_t hello.pl

How do you make sure changes to SELinux survive a relabel? - Answer-semanage
fcontext -a -s system_u -t httpd_sys_content_t /website
semanage fcontext -a -t httpd_sys_script_exec_t hello.pl

What needs to be modified in /etc/postfix/main.cf for Postfix to work properly? - Answer-
Edit the /etc/postfix/main.cf file and change the following directives:
myhostname = mail.example.com
mydomain = example.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $mydomain, $myhostname, localhost.$mydomain, localhost
mynetworks = 192.168.1.0/24, 127.0.0.0/8
setsebool -P allow_postfix_local_write_mail_spool on

How do you add aliases in Postfix? - Answer-# vi /etc/aliases
root michael
# newaliases

How do you limit access in Postfix? - Answer-vi /etc/postfix/access
192.168.122.50 OK
server1.example.com OK
192.168.100 REJECT
example.org REJECT

What is the SELinux file type appropriate for shared Samba directories? - Answer-
samba_share_t

, What is the relevant SELinux boolean associated with the sharing of home directories
on Samba? - Answer-samba_enable_home_dirs

How do you add a Samba user? - Answer-smbpasswd -a engineer1

How do you limit Samba shares to users or groups? - Answer-valid users = tim
stephanie
valid users = +ilovelinux or @ilovelinux

What is the Samba directive that limits access to systems on the example.org network?
- Answer-hosts allow .example.org

TCP Wrapper Examples - Answer-sshd : .xyz.com
sshd : ALL
vsftpd : 192.168.1.
ALL : 192.168.0.1/255.255.255.0
ALL : *.xyz.com
sshd : ALL EXCEPT 192.168.0.15

What command enables the SELinux boolean for anonymous FTP uploads? - Answer-
setsebool -P allow_ftpd_anon_write on

How do you setup FTP directories where anonymous users can write files? - Answer-
setsebool -P allow_ftpd_anon_write on
semanage fcontext -a -t public_content_rw_t /var/ftp
restorecon -r /var/ftp

How do you reference the SELinux policy on another directory? - Answer-chcon -R --
reference /var/www/html html/
chcon -R --reference /var/www/cgi-bin cgi-bin/

Example of Samba stanza - Answer-[shared]
comment = Shared directory
browseable = yes
path = /shared
valid users = user01
writable = yes

What services need to run at boot for NFS? - Answer-rpcbind, nfs, and nfslock

How do you list the file systems you intend to share with clients using NFS? - Answer-vi
/etc/exports
/var/ftp/pub 192.168.0.0/24(ro,sync)
/exports/read 192.168.0.0/24(ro,sync)
/exports/write 192.168.0.0/24(rw,sync) 127.0.0.1(rw,sync)

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Scholarsstudyguide. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $13.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

78998 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$13.49
  • (0)
  Add to cart