Why can’t I create a file with a name prefixed by “passwd.” in “/etc”?Permission denied (even as...
In SQL Server, why does backward scan of clustered index cannot use parallelism?
What is the maximum number of PC-controlled undead?
Should you play baroque pieces a semitone lower?
Three legged NOT gate? What is this symbol?
The equation of motion for a scalar field in curved spacetime in terms of the covariant derivative
How can I solve for the intersection points of two ellipses?
Identification of vintage sloping window
How many different ways are there to checkmate in the early game?
English - Acceptable use of parentheses in an author's name
Is refreshing multiple times a test case for web applications?
Help evaluating integral (anything simple that I am missing?)
Is TA-ing worth the opportunity cost?
Understanding the point of a kölsche Witz
Different inverter (logic gate) symbols
DeclareMathOperator and widearcarrow with kpfonts
How can you evade tax by getting employment income just in equity, then using this equity as collateral to take out loan?
Why did Gandalf use a sword against the Balrog?
What is my malfunctioning AI harvesting from humans?
Is there a way to unplug the Raspberry pi safely without shutting down
Blocking people from taking pictures of me with smartphone
Does a code snippet compile? Or does it get compiled?
If "more guns less crime", how do gun advocates explain that the EU has less crime than the US?
What gave Harry Potter the idea of writing in Tom Riddle's diary?
Infeasibility in mathematical optimization models
Why can’t I create a file with a name prefixed by “passwd.” in “/etc”?
Permission denied (even as root) on a mounted ISO image with Furius ISO Mountread only access to all files in a specific sub-folderGiving write permissions to www-data for a file within user's home with limited shell access?systemd custom service: Failed at step EXEC spawning … Permission deniedHow to create a mount --bind when root does not have permission to access the source directory?Ansible copy module failure on Ubuntu 18.04 - “you may have been able to authenticate and did not have permissions on the target directory…”
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I have a PC with Ubuntu 16.04 installed. Recently I want to install some packages but have trouble installing them. After some digging, I found that the failure seems to be related to the linux user account system. The problem is that any file with a name prefixed by passwd.
cannot be created in /etc
path.
# ls /etc/passwd.*
ls: cannot access '/etc/passwd.*': No such file or directory
# touch /etc/passwd.test-test-test
touch: cannot touch '/etc/passwd.test-test-test': Permission denied
# ls /etc/passwe.*
ls: cannot access '/etc/passwe.*': No such file or directory
# touch /etc/passwe.test-test-test
#
I can create that file in other paths, such as /
or /usr
, but not in /etc
, and I can create file with other file names in /etc
, but not with file names prefixed by passwd.
. I can’t reproduce this problem with other PCs.
What could cause this problem?
ubuntu permissions
New contributor
add a comment |
I have a PC with Ubuntu 16.04 installed. Recently I want to install some packages but have trouble installing them. After some digging, I found that the failure seems to be related to the linux user account system. The problem is that any file with a name prefixed by passwd.
cannot be created in /etc
path.
# ls /etc/passwd.*
ls: cannot access '/etc/passwd.*': No such file or directory
# touch /etc/passwd.test-test-test
touch: cannot touch '/etc/passwd.test-test-test': Permission denied
# ls /etc/passwe.*
ls: cannot access '/etc/passwe.*': No such file or directory
# touch /etc/passwe.test-test-test
#
I can create that file in other paths, such as /
or /usr
, but not in /etc
, and I can create file with other file names in /etc
, but not with file names prefixed by passwd.
. I can’t reproduce this problem with other PCs.
What could cause this problem?
ubuntu permissions
New contributor
add a comment |
I have a PC with Ubuntu 16.04 installed. Recently I want to install some packages but have trouble installing them. After some digging, I found that the failure seems to be related to the linux user account system. The problem is that any file with a name prefixed by passwd.
cannot be created in /etc
path.
# ls /etc/passwd.*
ls: cannot access '/etc/passwd.*': No such file or directory
# touch /etc/passwd.test-test-test
touch: cannot touch '/etc/passwd.test-test-test': Permission denied
# ls /etc/passwe.*
ls: cannot access '/etc/passwe.*': No such file or directory
# touch /etc/passwe.test-test-test
#
I can create that file in other paths, such as /
or /usr
, but not in /etc
, and I can create file with other file names in /etc
, but not with file names prefixed by passwd.
. I can’t reproduce this problem with other PCs.
What could cause this problem?
ubuntu permissions
New contributor
I have a PC with Ubuntu 16.04 installed. Recently I want to install some packages but have trouble installing them. After some digging, I found that the failure seems to be related to the linux user account system. The problem is that any file with a name prefixed by passwd.
cannot be created in /etc
path.
# ls /etc/passwd.*
ls: cannot access '/etc/passwd.*': No such file or directory
# touch /etc/passwd.test-test-test
touch: cannot touch '/etc/passwd.test-test-test': Permission denied
# ls /etc/passwe.*
ls: cannot access '/etc/passwe.*': No such file or directory
# touch /etc/passwe.test-test-test
#
I can create that file in other paths, such as /
or /usr
, but not in /etc
, and I can create file with other file names in /etc
, but not with file names prefixed by passwd.
. I can’t reproduce this problem with other PCs.
What could cause this problem?
ubuntu permissions
ubuntu permissions
New contributor
New contributor
edited 2 mins ago
EFanZh
New contributor
asked 55 mins ago
EFanZhEFanZh
1113 bronze badges
1113 bronze badges
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
});
}
});
EFanZh 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%2funix.stackexchange.com%2fquestions%2f535096%2fwhy-can-t-i-create-a-file-with-a-name-prefixed-by-passwd-in-etc%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
EFanZh is a new contributor. Be nice, and check out our Code of Conduct.
EFanZh is a new contributor. Be nice, and check out our Code of Conduct.
EFanZh is a new contributor. Be nice, and check out our Code of Conduct.
EFanZh is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f535096%2fwhy-can-t-i-create-a-file-with-a-name-prefixed-by-passwd-in-etc%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