LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
5th Edition
ISBN: 9781337569798
Author: ECKERT
Publisher: CENGAGE L
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 4, Problem 11RQ
Program Description Answer
The command “chmod 317 file1” produces “--wx--xrwx 1 user1 root 0 Apr 29 15:40 file1” in the ls command.
Hence, the correct answer is option “B”.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Given the following output from the ls command, how many files are linked with file1?drwxr-xr-x 3 root root 4096 Apr 8 07:12 Desktop-rw-r--r-- 3 root root 282 Apr 29 22:06 file1-rw-r--r-- 1 root root 282 Apr 29 22:06 file2-rw-r--r-- 4 root root 282 Apr 29 22:06 file3-rw-r--r-- 2 root root 282 Apr 29 22:06 file4-rw-r--r-- 1 root root 282 Apr 29 22:06 file5-rw-r--r-- 1 user1 sys 282 Apr 29 22:06 file6a. oneb. twoc. threed. four
Write a script and save it as /opt/book/chapter10/exercise2. This script performs thefollowing functions
d. Counts backwards from 10 to 1e. Displays the current numberf. Pauses for 1 second between numbersRun the script in terminal using the command: bash /root/Desktop/exercise2
The user "bill" in the group "stallyns" wants to read /opt/time-travel.doc; opt is
owned by user root and group allusers which includes stallyns; time-travel.doc is
owned by user "rufus" and his own group which includes nobody else. What is
the combination of permissions that would allow this to happen?
opt: 755 time-travel.doc: 711
opt: 666 time-travel.doc: 777
opt: 700 time-travel.doc: 755
opt: 750 time-travel.doc: 404
opt: 124 time-travel.doc: 007
Chapter 4 Solutions
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Ch. 4 - A symbolic link is also known as a soft link and...Ch. 4 - Prob. 2RQCh. 4 - There is no real difference between the “S” and...Ch. 4 - The default permissions given by the system prior...Ch. 4 - What must a user do to run cp or mv interactively...Ch. 4 - The root user utilizes the chgrp command to give...Ch. 4 - After typing the ls F command, you see the...Ch. 4 - After typing the command umask 731, the...Ch. 4 - Prob. 9RQCh. 4 - When you change the data in a file that is...
Ch. 4 - Prob. 11RQCh. 4 - Which of the following commands will change the...Ch. 4 - What does the /var directory contain? a. various...Ch. 4 - What does the mv command do? (Choose all that...Ch. 4 - A file has the following permissions: r--- -x-w-....Ch. 4 - The which command _________.
can only be used to...Ch. 4 - Hard links need to reside on the same filesystem...Ch. 4 - When applied to a directory, the SGID special...Ch. 4 - Which command do you use to rename files and...Ch. 4 - Prob. 20RQCh. 4 - Given the following output from the is command,...Ch. 4 - Only the root user can modify a file that has the...
Knowledge Booster
Similar questions
- The command that is written to execute the segment below is: Directory of D:\ 95.Te3ebt_Mennak.mp3 1.docx [4821de13a9729f7a3f ] aa.docx aa.msg aaa.txt aaaa.docx [aae895bf 5a31aa38a7fcaf ] ali.txt Aortic Stenosis.wav AS(3sec)-wav as.doc as.pdf as.txt [asmaa] asmaa be1ll.wav bbb.doc ccc.txe cd ch?7.pptx ch8-pptx comp.txt dir dir/w dir\sarrow_forwardSuppose you're in the /usr/local/share and enter "Is" to list files and directories. You see the following: drwxr-xr-x 2 root root 4096 Apr 28 04:03 applications drwxr-xr-x 2 root root 4096 Jan 28 2019 ca-certificates drwxr-xr-x 2 root root drwxr-xr-x 4 root root 4096 Jul 20 2021 color-profiles 4096 Jan 1 2019 cryptopp drwxr-xr-x 2 root root 4096 Nov 14 06:16 desktop-directories drwxr-xr-x 3 root root 4096 Mar 19 2021 doc drwxrwsr-x 3 root staff 4096 Jun 19 2020 fonts drwxr-xr-x 3 root root 4096 May 28 2020 gnome-shell drwxr-xr-x 2 root root 4096 Nov 14 16:24 icons drwxr-xr-x 3 root root 4096 Jul 18 2021 kservices5 drwxr-xr-x 4 root root 4096 Jul 12 2021 man drwxr-xr-x 3 root root 4096 Jul 18 2021 mime 2021 sgml drwxr-xr-x 7 root root 4096 Jan 20 drwxr-xr-x 2 root root 4096 Apr 18 2021 texmf drwxr-xr-x 6 root root 4096 Apr 20 2019 xml Which of the following commands would allow you to see the contents of the applications directory? Is /usr/local/share/applications Is /applications Is…arrow_forwardIn termina, install the paho-mqtt module with pip using the following command: Sudo pip3 install paho-mqtt Create a new folder by the name of lab_6 and create a new python file mqtt_script_1.py In the file, TYPE the following code: import paho.mqtt.client as mqtt # The callback for when the client receives a CONNACK response from the server. def on_connect(client, userdata, flags, rc): print("Connected with result code "+str(rc)) # Subscribing in on_connect() means that if we lose the connection and # reconnect then subscriptions will be renewed. client.subscribe("etec224_mqtt_test/") # The callback for when a PUBLISH message is received from the server. def on_message(client, userdata, msg): print(msg.topic+" "+str(msg.payload)) client = mqtt.Client() client.on_connect = on_connect client.on_message = on_message client.connect("broker.emqx.io", 1883, 60) client.loop_forever() Create another file py and add the following code to it.…arrow_forward
- BELOW MCQ GIVEN ANSWER CAN BE MORE THAN ONE OPTION. PLEASE PROVIDE CORRECT ANSWERS. ------------------- Which of the following statements correctly describe execution of the highlighted command? $qrep ^root /etc/passwd root:qqed262w7tvxq:0:0:0000~admin(0000), ,258, :/:/bin/tcsh $su A) the current directory will be changed to '/' B) the environment will be the same as though root (super user ) had logged onto the system. C) the user will be prompted for a password and then /bin/tcsh will be executed . D) the system will execute /bin/sh . the current directory will not be changed. E) the user will be prompted for a password and then /bin/sh will be executed.arrow_forwardReview the firewall ruleset shown below. If a system at 10.18.100.3 attempts an SSH (Secure shell) connection to the server at 192.168.10.5, what would be the result? (Analyze the rules carefully) Rule Source IP 1 2 3 4 any any 10.18.100.3 any Source Port any any any any Dest IP 192.168.10.5 192.168.10.6 192.168.10.6 any The traffic will be blocked by rule 4 The traffic will be blocked by rule 3 O The traffic will be allowed by rule 2 The traffic will be allowed by rule 1 Dest Port 1443 1521 22 any Action allow allow deny denyarrow_forwarduser whose ID is beilish is working in a typical Linux system. She issues the command "pwd"and the response is "/home/beilish/alpha/config". She now wants to work in the directory /home/beilish/beta/test. Show three (3) different commands,any of which the user could issue to move from the first directory to the second,and for each command briefly explain how it works. Note: Each command must be independent, not relying on any prior command.arrow_forward
- You work for a small company that keeps the following information about its clients:• first name• last name• a 5-digit user code assigned by your company.The information is stored in a file clients.txt with the information for each client on one line(last name first), with commas between the parts. For exampleJones, Sally,00345Lin ,Nenya,00548Fule,A,00000Smythe , Mary Ann , 00012Your job is to create a program assign usernames for a login system.First: write a function named get_parts(string) that will that will receive as its arguments astring with the client data for one client, for example “Lin ,Nenya,00548”, and return theseparate first name, last name, and client code. You should remove any extra whitespace from thebeginning and newlines from the end of the parts.You’ll need to use some of the string methods that we covered in this lessonYou can test your function by with a main() that is just the function call with the argument typed in.Second: write a function make_user(param)…arrow_forwardUnix MCQ: Q. Which of the following is used with access call for checking the owner’s permissions? a) R_OK b) W_OK c) X_OK d) R_OK, W_OK, X_OKarrow_forwardWe want to create a user who has all permissions to manage the server. Login Properties - user1 Selecta page General Server Roles User Mapping + Securables + Status O Sorpt - e Help Server role is used to grant serverwide securty privileges to a user. Server roles: | bulkadmin dbcreator diskadmin processadmin public securityadmin serveradmin setupadmin sysadmin Connection Server: BSA73B Connection: sa v# View connestion proseties Progress Ready OK Cancel Which server role of the following should be selected? Select one: a. diskadmin O b. sysadmin O c. securityadmin O d. bulkadmin e. setupadminarrow_forward
- Question 7 Let us assume that we run the following command in the bash shell: ps ef grep 1909 The output of the command is shown below (some columns are omitted for clarity): UID PPID PID 1909 user1 1 1909 user1 1910 user1 1915 1909 Which of the following statement(s) is/are TRUE? O Process with pid=1909 has been terminated by user1 None of the mentioned O Process with pid=1909 has a child process with pid=1 O Process with pid=1 has been terminated by user1 O Process with pid=1915 was terminated before process with pid=1909 O Process with pid=1910 has been terminated by process with pid=1909arrow_forwardIn a short bash script named listdirs.sh that lists the names of the directories (the names only not the files contained in the directory) that are within the the directory provided as the single argument. The directory names are printed one per line. It prints the directories only, not symbolic links to directories. Please do this with a for-loop that for each entry to the directory provided as argument checks if it is a directory and if it is prints its name. If you run your script on red you should get red 302 % ./listdirs.sh / boot dev eecs etc home jas local media mnt obj opt pkgcache proc root run srv sys tmp usr var xconf xsys red 303 % To submit your script enclose it in a tar file using the command tar cf listdirs.tar listdirs.sharrow_forwardWrite the command that will display all directories (ONLY) that meet the followingcriteria: * directory name is "whiskey", "Whiskey", or "WHISKEY"* the group permissions on each directory are such that user accounts of that same group can change into each directory, and can add files, but not display any of the content* the owner permissions on each directory are such that the owner can display the contents of the directory, but cannot change into the directory* the public (all other user accounts) are unsetarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- A+ Guide To It Technical SupportComputer ScienceISBN:9780357108291Author:ANDREWS, Jean.Publisher:Cengage,LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.Computer ScienceISBN:9781337569798Author:ECKERTPublisher:CENGAGE L
A+ Guide To It Technical Support
Computer Science
ISBN:9780357108291
Author:ANDREWS, Jean.
Publisher:Cengage,
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:9781337569798
Author:ECKERT
Publisher:CENGAGE L