Removing read access from a file The Next CEO of Stack OverflowGrant group traversal rights on a folderRead file into array How can I create a shared folder using command line?Get all file paths from a certain point and pipe to text fileremoving “_” from a very large csv fileRun open and read command on a file within python - not using a scriptWhat are the commands for for fine-grained control for file permissions? (other than the usual read-write-execute[rwx])Can the cat command edit a text file as well as read it?Copy file using sudo accessCan’t delete file from shell because it’s read onlyShow permissions of a folder using `ls`
How to make a software documentation "officially" citable?
What does this shorthand mean?
Rotate a column
The King's new dress
% symbol leads to superlong (forever?) compilations
Is it a good idea to use COLUMN AS (left([Another_Column],(4)) instead of LEFT in the select?
What is the purpose of the Evocation wizard's Potent Cantrip feature?
Can I equip Skullclamp on a creature I am sacrificing?
Why didn't Theresa May consult with Parliament before negotiating a deal with the EU?
Go Pregnant or Go Home
Describing a person. What needs to be mentioned?
I believe this to be a fraud - hired, then asked to cash check and send cash as Bitcoin
When airplanes disconnect from a tanker during air to air refueling, why do they bank so sharply to the right?
Inappropriate reference requests from Journal reviewers
How to safely derail a train during transit?
What makes a siege story/plot interesting?
Anatomically Correct Mesopelagic Aves
How to get regions to plot as graphics
Why doesn't a table tennis ball float on the surface? How do we calculate buoyancy here?
How long to clear the 'suck zone' of a turbofan after start is initiated?
Why here is plural "We went to the movies last night."
How to make a variable always equal to the result of some calculations?
Why is there a PLL in CPU?
Whats the best way to handle refactoring a big file?
Removing read access from a file
The Next CEO of Stack OverflowGrant group traversal rights on a folderRead file into array How can I create a shared folder using command line?Get all file paths from a certain point and pipe to text fileremoving “_” from a very large csv fileRun open and read command on a file within python - not using a scriptWhat are the commands for for fine-grained control for file permissions? (other than the usual read-write-execute[rwx])Can the cat command edit a text file as well as read it?Copy file using sudo accessCan’t delete file from shell because it’s read onlyShow permissions of a folder using `ls`
A file Cat
within a folder Dog
owner
-rw- 1 rich v 12 15:40 Cat
What is the shell command to remove others' read access from file Dog
?
command-line
New contributor
add a comment |
A file Cat
within a folder Dog
owner
-rw- 1 rich v 12 15:40 Cat
What is the shell command to remove others' read access from file Dog
?
command-line
New contributor
4
You really should be able to attempt this based on the answer you received in Grant group traversal rights on a folder and a perusal of the relevant manual page (man chmod
)
– steeldriver
8 hours ago
3
Possible duplicate of Grant group traversal rights on a folder
– Graham
8 hours ago
This is very unclear. Is itcat
orCat
, and what isDog
? A file, a folder (which is a file as well in the end), …?
– dessert
7 hours ago
add a comment |
A file Cat
within a folder Dog
owner
-rw- 1 rich v 12 15:40 Cat
What is the shell command to remove others' read access from file Dog
?
command-line
New contributor
A file Cat
within a folder Dog
owner
-rw- 1 rich v 12 15:40 Cat
What is the shell command to remove others' read access from file Dog
?
command-line
command-line
New contributor
New contributor
edited 5 hours ago
Ahhhhh
New contributor
asked 8 hours ago
AhhhhhAhhhhh
292
292
New contributor
New contributor
4
You really should be able to attempt this based on the answer you received in Grant group traversal rights on a folder and a perusal of the relevant manual page (man chmod
)
– steeldriver
8 hours ago
3
Possible duplicate of Grant group traversal rights on a folder
– Graham
8 hours ago
This is very unclear. Is itcat
orCat
, and what isDog
? A file, a folder (which is a file as well in the end), …?
– dessert
7 hours ago
add a comment |
4
You really should be able to attempt this based on the answer you received in Grant group traversal rights on a folder and a perusal of the relevant manual page (man chmod
)
– steeldriver
8 hours ago
3
Possible duplicate of Grant group traversal rights on a folder
– Graham
8 hours ago
This is very unclear. Is itcat
orCat
, and what isDog
? A file, a folder (which is a file as well in the end), …?
– dessert
7 hours ago
4
4
You really should be able to attempt this based on the answer you received in Grant group traversal rights on a folder and a perusal of the relevant manual page (
man chmod
)– steeldriver
8 hours ago
You really should be able to attempt this based on the answer you received in Grant group traversal rights on a folder and a perusal of the relevant manual page (
man chmod
)– steeldriver
8 hours ago
3
3
Possible duplicate of Grant group traversal rights on a folder
– Graham
8 hours ago
Possible duplicate of Grant group traversal rights on a folder
– Graham
8 hours ago
This is very unclear. Is it
cat
or Cat
, and what is Dog
? A file, a folder (which is a file as well in the end), …?– dessert
7 hours ago
This is very unclear. Is it
cat
or Cat
, and what is Dog
? A file, a folder (which is a file as well in the end), …?– dessert
7 hours ago
add a comment |
1 Answer
1
active
oldest
votes
You can change file permissions with the chmod
command.
There are two basic ways of using chmod
to change file permissions:
Symbolic Method:
In the symbolic method to remove write permission for other users on a sub directory namedDog
, you should enter:chmod o-rw Dog
Absolute form:
In the absolute method to do the same, you should enter:chmod 700 Dog
for read, write, execute permissions only for the owner and not for the group and other users.
In this method you can customize the access permissions more efficiently as per your requirements.
Be careful when setting the permissions of directories, particularly your home directory; you don't want to lock yourself out by removing your own access. Also, you must have execute permission on a directory to switch (cd) to it.
For further reading and additional information about file permissions.
New contributor
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Ahhhhh is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1129479%2fremoving-read-access-from-a-file%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can change file permissions with the chmod
command.
There are two basic ways of using chmod
to change file permissions:
Symbolic Method:
In the symbolic method to remove write permission for other users on a sub directory namedDog
, you should enter:chmod o-rw Dog
Absolute form:
In the absolute method to do the same, you should enter:chmod 700 Dog
for read, write, execute permissions only for the owner and not for the group and other users.
In this method you can customize the access permissions more efficiently as per your requirements.
Be careful when setting the permissions of directories, particularly your home directory; you don't want to lock yourself out by removing your own access. Also, you must have execute permission on a directory to switch (cd) to it.
For further reading and additional information about file permissions.
New contributor
add a comment |
You can change file permissions with the chmod
command.
There are two basic ways of using chmod
to change file permissions:
Symbolic Method:
In the symbolic method to remove write permission for other users on a sub directory namedDog
, you should enter:chmod o-rw Dog
Absolute form:
In the absolute method to do the same, you should enter:chmod 700 Dog
for read, write, execute permissions only for the owner and not for the group and other users.
In this method you can customize the access permissions more efficiently as per your requirements.
Be careful when setting the permissions of directories, particularly your home directory; you don't want to lock yourself out by removing your own access. Also, you must have execute permission on a directory to switch (cd) to it.
For further reading and additional information about file permissions.
New contributor
add a comment |
You can change file permissions with the chmod
command.
There are two basic ways of using chmod
to change file permissions:
Symbolic Method:
In the symbolic method to remove write permission for other users on a sub directory namedDog
, you should enter:chmod o-rw Dog
Absolute form:
In the absolute method to do the same, you should enter:chmod 700 Dog
for read, write, execute permissions only for the owner and not for the group and other users.
In this method you can customize the access permissions more efficiently as per your requirements.
Be careful when setting the permissions of directories, particularly your home directory; you don't want to lock yourself out by removing your own access. Also, you must have execute permission on a directory to switch (cd) to it.
For further reading and additional information about file permissions.
New contributor
You can change file permissions with the chmod
command.
There are two basic ways of using chmod
to change file permissions:
Symbolic Method:
In the symbolic method to remove write permission for other users on a sub directory namedDog
, you should enter:chmod o-rw Dog
Absolute form:
In the absolute method to do the same, you should enter:chmod 700 Dog
for read, write, execute permissions only for the owner and not for the group and other users.
In this method you can customize the access permissions more efficiently as per your requirements.
Be careful when setting the permissions of directories, particularly your home directory; you don't want to lock yourself out by removing your own access. Also, you must have execute permission on a directory to switch (cd) to it.
For further reading and additional information about file permissions.
New contributor
edited 6 hours ago
Videonauth
24.7k1273102
24.7k1273102
New contributor
answered 7 hours ago
iamhrishikeshiamhrishikesh
612
612
New contributor
New contributor
add a comment |
add a comment |
Ahhhhh is a new contributor. Be nice, and check out our Code of Conduct.
Ahhhhh is a new contributor. Be nice, and check out our Code of Conduct.
Ahhhhh is a new contributor. Be nice, and check out our Code of Conduct.
Ahhhhh is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1129479%2fremoving-read-access-from-a-file%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
4
You really should be able to attempt this based on the answer you received in Grant group traversal rights on a folder and a perusal of the relevant manual page (
man chmod
)– steeldriver
8 hours ago
3
Possible duplicate of Grant group traversal rights on a folder
– Graham
8 hours ago
This is very unclear. Is it
cat
orCat
, and what isDog
? A file, a folder (which is a file as well in the end), …?– dessert
7 hours ago