Examine the commands used by root to create the chrooted environments in the /jail directory:# mkdir /jail/bin/jail/lib6

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899559
Joined: Mon Aug 02, 2021 8:13 am

Examine the commands used by root to create the chrooted environments in the /jail directory:# mkdir /jail/bin/jail/lib6

Post by answerhappygod »

Examine the commands used by root to create the chrooted environments in the /jail directory:# mkdir /jail/bin/jail/lib64# cp /bin/bash/jail/binlinux-vdso.so.1 => (0x00007fff68dff000)libtinfo.so.5 => /lib64/libtinfo.so.5 (0x00000033e00000)lid1.so.2 => /lib64/libc.so.6 (0x00000033e1600000)/lib64/id-linix-86-64.so.2 (0x00000033e0e00000)# cp /lib64/libtinfo.so.5/jail/lib64# cp /lib64/libd1.so.6 /jail/lib64# cp /lib64/libc.so.6 /jail/lib64# cp /lib64/id-linux-x86-64.so.2 /jail/lib64The user root then issues this command:# chroot /jailWhat is the output from the cd, pwd, and 1s commands?

A. bash-4.1# cd bash-4.1# pwd /root bash-4.1# 1s bash 1s: command not found
B. bash-4.1# cd bash: cd: /root: No such file or directory bash-4.1# pwd / bash-4.1 # 1s bash: 1s: command not found
C. bash-4.1# cd bash: cd: command not found bash: pwd: command not found bash-4.1# 1s
D. bash: 1s; # cd bash: cd: /root: unable to access chrooted file or directory /root bash-4.1# pwd / bash-4.1 # 1s bin lib64 E. bash-4.1# cd bash: cd: /root: No such file or directory bash-4.1# pwd / bash-4.1# 1s bin lib64
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!

This question has been solved and has 1 reply.

You must be registered to view answers and replies in this topic. Registration is free.


Register Login
 
Post Reply