Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this hands-on project, you apply and modify access permissions on files and directories and test their effects. 1. Switch to a command-line terminal (tty2)

In this hands-on project, you apply and modify access permissions on files and directories and test their effects. 1. Switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the ter- minal using the user name of root and the password of LNXrocks!. 2. At the command prompt, type touch permsample and press Enter. Next, type chmod 777 permsample at the command prompt and press Enter. 3. At the command prompt, type ls -l and press Enter. Who has permissions to this file? 4. At the command prompt, type chmod 000 permsample and press Enter. Next, type ls l at the command prompt and press Enter. Who has permissions to this file? 5. At the command prompt, type rm f permsample and press Enter. Were you able to delete this file? Why? 6. At the command prompt, type cd / and press Enter. Next, type pwd at the command prompt and press Enter. What directory are you in? Type ls F at the command prompt and press Enter. What directories do you see? 7. At the command prompt, type ls l and press Enter to view the owner, group owner, and permissions on the foruser1 directory created in Hands-on Project 5-1. Who is the owner and group owner? If you were logged in as the user user1, in which category would you be placed (user, group, other)? What permissions do you have as this cate- gory (read, write, execute)? 8. At the command prompt, type cd /foruser1 and press Enter to enter the foruser1 directory. Next, type ls -F at the command prompt and press Enter. Are there any files in this directory? Type cp /etc/hosts . at the command prompt and press Enter. Next, type ls -F at the command prompt and press Enter to ensure that a copy of the hosts file was made in your current directory. 9. Switch to a different command-line terminal (tty3) by pressing Ctrl+Alt+F3 and log in to the terminal using the user name of user1 and the password of LNXrocks!. 10. At the command prompt, type cd /foruser1 and press Enter. Were you successful? Why? Next, type ls -F at the command prompt and press Enter. Were you able to see the contents of the directory? Why? Next, type rm f hosts at the command prompt and press Enter. What error message did you see? Why? 11. Switch back to your previous command-line terminal (tty2) by pressing Ctrl+Alt+F2. Note that you are logged in as the root user on this terminal. 12. At the command prompt, type chmod o+w /foruser1 and press Enter. Were you able to change the permissions on the /foruser1 directory successfully? Why? 13. Switch back to your previous command-line terminal (tty3) by pressing Ctrl+Alt+F3. Note that you are logged in as the user1 user on this terminal. 14. At the command prompt, type cd /foruser1 and press Enter. Next, type rm f hosts at the command prompt and press Enter. Were you successful now? Why? 15. Switch back to your previous command-line terminal (tty2) by pressing Ctrl+Alt+F2. Note that you are logged in as the root user on this terminal.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learn To Program Databases With Visual Basic 6

Authors: John Smiley

1st Edition

1902745035, 978-1902745039

More Books

Students also viewed these Databases questions

Question

Was there an effort to involve the appropriate people?

Answered: 1 week ago