Question

if in Linux my permissions are 777 and I umask 020 what are my permissions now?...

if in Linux my permissions are 777 and I umask 020 what are my permissions now?

if in Linux my permissions are 666 and I umask 022 what are my permissions now?

Homework Answers

Answer #1

Answer)

if your permission is 777 and umask value 020 is subtracted, so it goes to 757. And this 757 will be applied on directory.

And if your permission is 666 then umask value is 022 is subtracted, then 644 is your permission for files.

777 is the default permission for directories from which the umask value is subtracted and assign to directory.

Same way 666 is the default permission for file, from which the umask value is subtracted and assign to a file.

There is no way to assign x(execute) permission for a file, when created or by default but it is possible for directory.

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...
14. Which of the following Linux permissions would assign the owner full access, the group RX...
14. Which of the following Linux permissions would assign the owner full access, the group RX access, and everyone else read access.
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?
should be in Linux, please Write a shell program named A1L21 Your program should set permissions...
should be in Linux, please Write a shell program named A1L21 Your program should set permissions for a file whose name is given as an argument to your program. The permissions must be changed using a SINGLE chmod command, and must be set to EXACTLY rw for owner and group and x for others. Your program should NOT show any error messages on the screen, even if the given file does not exist, etc.
Write a shell program named HELOO (this should be done linux) Your program should set permissions...
Write a shell program named HELOO (this should be done linux) Your program should set permissions for a file named A1testFile so that the current premissions remain, except execute permissions are REMOVED for everyone, including owner. Your must accomplish this with a single chmod command. A1testFile should be specified as a relative path name to a file in the current directory (the directory the user is in when they run your program). Your program should not display any error messages,...
Given my directory dir and my file dir/file owned by me, which permissions allow me to...
Given my directory dir and my file dir/file owned by me, which permissions allow me to access and change the content (data) in the file dir/file but not delete the file?
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...
I am working on my unknown report for Microbiology. Since class is now online, I have...
I am working on my unknown report for Microbiology. Since class is now online, I have been assigned a bacteria and I have to describe what results I would expect to achieve during certain tests. My bacteria is serratia marcescens and these are the tests I need some help with: kligler iron agar Motility deep I need to describe what results I would expect to get if I was completing this test in the lab.
I'd like to buy a property. Right now, I have $20,000 in my savings account that...
I'd like to buy a property. Right now, I have $20,000 in my savings account that will grow at a rate of 2% monthly. I am planning to save an additional $300 monthly and that will a grow at 2% per month. How large of a down payment will I be able to afford five years from now?
Purpose: In this course we are primarily working with a Fedora Linux. Now it’s time to...
Purpose: In this course we are primarily working with a Fedora Linux. Now it’s time to explore Other Linux. (Course Objective #??). The goal of this assignment is to build a comprehensive list of Linux distros that will provide supplemental information about a wide variety of tools and functionalities available in Linux platform. Each student has to contribute at least one entry about a Linux distro or Linux functionality in a particular distro. Here are some possible choices, if you...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT