Hi im trying too do my Linux homework and I'm stuck on some questions
1. Using the utility chmod, permissions can be set on the owner, group, or others (aka "the world" or "everyone else").
True or False
2. Changing the permissions on the script file someScriptFile.sh to be write and read only will allow you to execute it (if it is a valid shell script with no errors) using ./someScriptFile.sh
True or False
3. To set the permissions for the owner, group and others on the file 'someStuffInThisFile.bak' to ONLY r (read) use the command:
Assume umask = 0000
chmod a=r
chgbits a=r
filemod a=r
chmod a>r
chmod a=rwx
setperms +read
Run the file ./setperms +r someStuffInThisFile.bak
4. The command chmod ugo=rwx anotherBigFile will: (assume umask = 0022)
will add read, write, execute permissions to the owner, group, and others.
will only modify permissions owned by the group
will only modify permissions owned by the owner
will only modify permissions owned by the others
will only modify permissions owned by Linus Torvalds
5. The octal notation value for a read permission is 1 (one).
True or False
6. Which octal notation turns on each rwx bit for the owner, group, and others:
777
447
757
000
111
on, on, on
7. Which command will set the permissions rwxr--r-- on the file doNotDeleteFile
chmod 744 doNotDeleteFile
chmod 117 doNotDeleteFile
chmod 171 doNotDeleteFile
chmod 664 doNotDeleteFile
chmod 770 doNotDeleteFile
8. The command used to set (or view) how the permissions are applied when you create a file or directory is called:
mask
perm
umask
set
set mask
chmod -u filename
1. Answer : True
2. Answer True
Reason : To execute file execution permission also required.
3. chmod a=r
Reason :
a --> All three
= --> The modes specified are to be made the exact modes for the
specified classes
4. The command chmod ugo=rwx anotherBigFile will: (assume umask =
0022)
will add read, write, execute permissions to the owner, group, and
others.
5. False
Reason :
0 No permission
1 Execute permission
2 Write permission
3 Execute and write permission
4 Read permission
6. 777
Reason : 7 [All permissions: 4 (read) + 2 (write) + 1
(execute) = 7] [rwx]
7. chmod 744 doNotDeleteFile
8. mask
Hi im trying too do my Linux homework and I'm stuck on some questions 1. Using...
Objective: Practice common UNIX commands. Procedure: The following list of Unix commands are given for self-learning. Use 'whatis' or 'man' command to find out about each command. Your document should include the description or screen shots of the output from each of the command. Commands: df du gzip file history wget Changing access rights: chmod u+x Dir1.0 adds execute permission for the owner chmod go-w file1 removes write permission for the group and others chmod ugo=rw testfile sets...
Please complete in JAVA only
PROBLEM: CHMOD is a command in the UNIX computer system. It is the command used for giving users permissions to access and change files and directories. There are 3 classes of users. They are the owner, the group and others. The permissions given are: read(r, write(w) and execute(x). The argument of the CHMOD command is a 3-character octal number (ex. 526). When each digit of that number is converted to binary, the binary digits are...
Hi, im trying to finish my Linux homework and im stuck on a coupls of questions. 1. A command that is entered on the command line consisting of one process or a series of processes using a pipe is considered a 'token' and can me managed as one entity. True False 2. The previous lead job has the character: - ^ + & = 3. The following field contains the state of the process (when you run the ps -aux...
1. Give the command (single command or pipelined series of commands) that performs each of the following tasks. Assume bash, and the commands we have been discussing. Do not use things like perl, awk, python, etc. Unless specifically stated otherwise, assume that the command should work no matter what your current working directory is or where a user's home directory is located. Use only flags that are required by the question as stated. Assume you are logged in as a "normal" (non-administrator) user,...
1. Write the command to set the following permissions on a script file with the following name; myscript.sh Owner: full access; read, write and execute Group: read and execute Other: no access 2. Create a new file with the name "myfirstscript.sh". Write a new script that performs the following tasks in sequence; Display the usernames of currently logged in users; sorted from a-z HINT: You will need to filter the output of the whocommand Display a list of usernames who...
1. Assume the following struct is declared for the permission list of a file in Linux. Each permission (u or g or o) is represented as an octal. For example, u=7 means rwx, u=5 means r-x. Note: "unsigned char" means a byte, not a character or a letter or a string. typedef struct { unsigned int uid; // owner id unsigned int gid; // group id unsigned char u; // owner's permission unsigned char g; // group's permission unsigned char...
Hi, I'm trying to do my
homework for my SQL Server class I keep getting stuck on the
questions 1-5 I found out like how the format need to be
I'm just stuck on implanting the code in.
Auntie B's Antic ERD CUSTOMER OWNER PEOPLE PeoplelD CustomerSince CHARITY Peopleld FirstName LastName Address City State Zip Phone CellPhone EMail PeopleType CharityID Name Address City State WORKERS PeoplelD HireDate TermDate SSN ip Phone ContactID ORDERS OrderlD OrderDate CustomerlD EmployeelD DONATION DonationID DonationDate...
do numbers 4-8
4. Given any directory, use the Is command to display: • all files and sub-directories starting with the letter "D" (note do not list anything in any sub-directory) • its immediate sub-directories (sub-directories only, and no other ordinary files) its immediate hidden sub-directories only - take a screenshot (#3-3) that clearly shows the command and the result. 5. Assume that the following files are in the working directory: $ ls intro notesb ref2 section 1 section3 section4b...
Edit a C program based on the surface code(which is after the question's instruction.) that will implement a customer waiting list that might be used by a restaurant. Use the base code to finish the project. When people want to be seated in the restaurant, they give their name and group size to the host/hostess and then wait until those in front of them have been seated. The program must use a linked list to implement the queue-like data structure....
These are my answere to the following questions: are they right? 1. B 2. T 3. T 4. T 5. F 6. T 7. A 8. D 9. E 10. B 11. B 12. A 13. A 14. D 15. C 16. D 17. T 18. C 19. T 20. T 21. T 22. A 23. T 24. D 25. B 26. A 27. A 28. A 29. T 30. C 31. D 32. A 33. T 34. F 35....