Question

Using the octal notation, change the file permissions of mydoc file so that you, the owner...

Using the octal notation, change the file permissions of mydoc file so that you, the owner of the file, have all permissions, the “group” users have read and execute permissions, and “other” users only have read permission.

Homework Answers

Answer #1

The different permissions for given file are

1) read - 4

2) write -2

3) execute -1

The method for setting permissions for the file through octal representation contains values from 0 to 7

The command to set the permissions for given file

chmod permissionvalues filename

chmod 754 mydoc

here 7 (read=4,write=2,execute=1 so owner has all permissions of file)

5(read=4,execute=1 so group users has read & execute permissions)

4(read=4 so others have only read permission)

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Linux Operation SECTION 2 – File and Directory Permissions: FILE PERMISSIONS: What is the command used...
Linux Operation SECTION 2 – File and Directory Permissions: FILE PERMISSIONS: What is the command used to find out which user account you are logged into?      . This command may come in handy in the following exercises. Ensure you are in your home directory of the student1 account. Use the echo command with output redirection to create a file called labfile4 and put the following text in this file: “This is the first line of labfile4”. Using the symbolic notation...
Linux, please avocado is an empty file Q14 – Specify a single line command that gives...
Linux, please avocado is an empty file Q14 – Specify a single line command that gives the owner and group permission to execute the file avocado while giving the owner sole permission to read and write the file. Do not change any other permission, i.e., do not remove permission from others to execute the file, if they already have that permission. Q15 – File/directory permissions are subject to permissions on the parent directories. For example, consider the file /home/dv35/cs265/lab1.txt. If...
Provide a single command to grant the following permissions (using decimal numbers) to a file named/called...
Provide a single command to grant the following permissions (using decimal numbers) to a file named/called “final-exam”.   Owner Access: Read, Write, Execute    Group Access: Read, Write     Public Access: Execute
File permissions in Linux can be also represented in digits from 0-7 for the owner, group...
File permissions in Linux can be also represented in digits from 0-7 for the owner, group and others with reading as the most significant bit (E.g., the value 6 represents the permission right rw- for a file). Suppose a file in Linux has the permission as the digits 764. • What does this permission right indicate for the owner/user, group and others? • What is the letter representation of this permission right?
drwxr-xr-x 10 mst staff 320 Sep 18 14:58 Sites drwxr-xr-x 2 mst staff 64 May 28...
drwxr-xr-x 10 mst staff 320 Sep 18 14:58 Sites drwxr-xr-x 2 mst staff 64 May 28 2017 VirtualBox VMs -rw-r--r-- 1 mst staff 633 Dec 11 2019 balance.pl drwxr-xr-x 4 mst staff 128 Oct 11 2014 bin -rw-r--r-- 1 mst staff 473 Dec 13 2019 bitshift.py For this problem, we are mainly concerned with the set of access permissions, which appears at the beginning of the line for each file or directory. Directories have a "d" at the beginning of...
1. How and why would you change file permissions on a folder. Write at least one...
1. How and why would you change file permissions on a folder. Write at least one (1) paragraph (one paragraph contains 5 to 7 sentences). 2.What is a desktop application? What desktop applications do you use at school, home, ...? (Write at least one (1) paragraph (one paragraph contains 5 to 7 sentences).
Part 1 Write a program where a child is created to execute command that tells you...
Part 1 Write a program where a child is created to execute command that tells you the date and time in Unix. Use ​execl(...)​. Note: you need to specify the full path of the file name that gives you date and time information. Announce the successful forking of child process by displaying its PID. Part 2 Write a program where a child is created to execute a command that shows all files (including hidden files) in a directory with information...
Add ssh-user to the super doers (root privilege) Copy Mac232 directory located in /root and all...
Add ssh-user to the super doers (root privilege) Copy Mac232 directory located in /root and all its contents to ssh-user home directory (Hint: use the option –R with cp command to recursively copy the directory’s contents) Logout then login as ssh-user - You will need to use the sudo command Change the ownership of MAC232 directory and all its contents to have the owner of “ssh-user” (Hint: use the option –R with chown command to recursively change the ownership of...
IN LINUX answer the following with what you would type to get the desired result. Change...
IN LINUX answer the following with what you would type to get the desired result. Change the permissions of the /home/shared/salesproject/ folder itself, allowing the owner and group full access, with no access for anyone else on the system. Log in as "susan" (password "secret") and make sure she can access the /home/shared/salesproject/ directory and files within. Create a file in /home/shared/salesproject/ as susan. What are the owner, group, and mode of the file she created? Log in as "sam"...
As the system administrator, you have received a memo saying that Leslie, Ronsam, Xochi, and Sara...
As the system administrator, you have received a memo saying that Leslie, Ronsam, Xochi, and Sara have been assigned to a work group to do some analysis and they need to work on your Linux system. You need to add these folks as regular users and give them an alternate group that they can switch into. You also need to set up a common folder for them to work in. Your plan is to create a new group called ‘analysis’...