
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Bash Shell Scripting – Permissions
Need help with solving this problem:
- Write a bash shell script with the following capabilities:
- Create a new bash script ~./test5.sh
- Add a simple echo "Hello World" statement and save the script.
- Run the ls –l command to inspect the files permissions.
- Who is the owner of this file?
- Can you execute this script? If not, why not?
- Use the chmod command to change the file permissions to you can execute the file.
- Run the ls – l command to inspect the files permissions.
- What changed in the permissions to allow you to run the script?
- Take a screenshot of the console output.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 3 steps with 1 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Write a BASH script that will use a for loop that will loop through the tscripts folder and delete each file. (rm) (be careful that you only delete files in the tscripts folder)arrow_forwardNeed help fixing my code please it is suppose to output The sum of 13, 55, 123, and 325 = 516 The product of 13, 55, 123, and 325 = 28582125 But it outputs The sum of 13, 55, 123, and 325 =0 The product of 13, 55, 123, and 325 = 1 using System;using System.Collections.Generic;using System.Linq; namespace Mod_2_Coding_activity{ public class Program { static void Main(string[] args) { string rawInput = ""; List<int> intValues = new List<int>(); Console.WriteLine("Enter a list of four inteager values sepatrated by a comma (ex. 13,55,123,325)"); rawInput = Console.ReadLine(); Console.WriteLine($"The sum of {rawInput} is {intValues.Sum()}"); Console.WriteLine($"The product of {rawInput} is {intValues.Aggregate(1, (acc, val) => acc * val)}"); } } }arrow_forwardPlease help with this solutions for me to get the scripts?arrow_forward
- Write a Bash script which: 1. Accepts a filename as a command-line argument. 2. Checks if the file exists in the current directory. 3. If the file exists, display its content in reverse order (last line first) on the terminalarrow_forwardWrite a bash script that will run the command getReading1.sh and getReading2.sh to read values from two sensors. Use Random to simulate the readings. Store the values every 5 minutes along with date and time stamp in five columns in a file 'TemperatureReadings.csv'. The columns will appear like below: Reading1 Reading2 DateStamp Timestamparrow_forwardWrite a BASH command to assign the string "/usr/share/data" to an environment variable called DATADIR.arrow_forward
- Program 3: Write a bash shell script that will enter the marks of a student and decide whether he has “passed” if he gets above 60 and “Fail” if the mark is below 60.arrow_forwardWhich file contains full and incremental back-up information for use with the dump/restore utility?a. /etc/dumpsb. /etc/dumpdatesc. /etc/dumpfiled. /etc/dump.confarrow_forwardplease comment all code Using a Bash environment, write a script to do the following: - declare and initialize an array to a few numbers.- in a loop, validate the numbers so they are greater than 0, if so:- get the total of them then the average.- print the average value.arrow_forward
- Please answer the following Bash question, please show your output as well. 1. Write a Bash function named ‘Generate-ID' that generates all possible UGA student id start with 900. The output should be saved into a file named studentID.csv. 2. Write a Bash function named ‘Find_word’ that read wordlist.txt file to find all words end with “ing” and output these words to WordEndIng.csv. 3. The auth.log file (path: /var/log/auth.log) and syslog file (path: /var/log/syslog) are two of the most important log files in Linux. Generally, adversaries target these files so that system administrators couldn’t track what attackers are doing. Write a function named get-linuxlog() that reads all the above two files and stores them into a file named linuxeventlog.txt (Hint use the ‘cat’ command)arrow_forwardWrite a bash script using for loop to list 0 - 9 as 1234567890 and the command prompt should be innext line of the resuarrow_forwardCreate a batch file Your batch file should include all required comments for creation and author information. Your batch file must include but is not limited to these commands: ECHO CD NET ICACLS MKDIR COPY Comment each line of your batch file as you create it. Don’t forget to include creation and author information. Create a batch file F:\bat that uses all the required commands and completes the following: Creates a folder named Scripts on the Root of C Add a local user named Aisha Bruce with the username ABruce and the password student Creates a directory in the “E:\CompanyInc\Management” folder named “ABruce_Files” Creates an ACE for “ABruce” to the “ABruce_Files” folder with these explicit permissions: Full Control Re-establishes inheritance to sub-folders and files Copies the application cmd.exe from the C:\Windows\System32 folder to the “ABruce_Files” folder Addes ABruce to your Management Group created in assignment 3 Produces an ICACLS Report for “ABruce_Files”…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education