All Questions
Tagged with mkdir permissions
19
questions
2
votes
1
answer
274
views
touch/mkdir seems to ignore default ACL
I am pretty sure it is a stupid mistake but I can't seem to figure it out by myself, so please have a look.
I set up an ACL for the current folder like so:
zigbee2mqtt@nuc:/tmp/folder$ getfacl .
# ...
4
votes
4
answers
976
views
How create many nested directories and defining the permission to all them in one command?
In Linux the following two commands work as expected:
mkdir -m 555 new_directory
mkdir -p a/b/c
But the following does not work as expected:
mkdir -m 555 -p a/b/c
the 3 directories are created but ...
0
votes
1
answer
9k
views
mkdir gives "No space left on device" message but sudo mkdir works [duplicate]
When I try to use mkdir test in /home/, I get mkdir: cannot create directory ‘test’: No space left on device. I've deleted over 1Gb of files and restarted some processes that were using deleted files, ...
0
votes
1
answer
580
views
mkdir as another user based on configuration file
We have a shared Linux environment where most files are mounted to many machines on a NFSv3 share, which we do not control. Since we only have basic filesystem permissions available (No ACLs), we are ...
0
votes
1
answer
2k
views
Permissions Issue creating folder on remote host with Jenkins
I'm having an issue with using Jenkins to create a folder on a remote host.
The remote host in this case is a stock Ubuntu 20.04 AMI EC2 server with the default ubuntu user.
I am connecting with the ...
0
votes
0
answers
41
views
Deleting read-only directory on linux? [duplicate]
I created an empty read-only directory:
mkdir -m 400 ~/Desktop/hello
As per the octal permission, it indicates the directory has read only permission.
But contrast to that when I am using the ...
3
votes
1
answer
251
views
Regarding permissions on intermediate folders created using "mkdir -pm 764 a/b/c"
When I am using mkdir -pm 764 a/b/c
then only c got that 764 permission, while a and b have default permission. Why does it so? Why doesn't all directories get 764 permission?
3
votes
0
answers
28
views
How to create a directory behalf on root user? [duplicate]
I have a script:
[postgres@LaHarch ~]$ cat mkrundir.sh
#!/bin/bash
mkdir /run/postresql
With attributes:
[postgres@LaHarch ~]$ ll mkrundir.sh
-rwsr-sr-x 1 root root 74 Aug 26 18:53 mkrundir.sh
...
0
votes
0
answers
1k
views
mkdir relative/absolute path permissions
I'm currently in a directory foo (pwd is /some/lepath/foo)
I own foo, but not /some/lepath. I got here by cd'ing to foo, then sudo -uing to the owner of foo, hence I am now in a directory I could not ...
0
votes
1
answer
348
views
Solaris 9 Fail to mkdir - no permission
In solaris 9 (5.9) I fail to mkdir with user builder, the user exist in the group defined as owner for that path.
bash-2.05$ groups builder
other root sys
bash-2.05$
and this is the file ...
4
votes
2
answers
49k
views
Permission denied when I tried to create a folder in root [closed]
Hi I tried to create a folder for ssh key in root with this command:
mkdir /root/.ssh && chown -R root:root /root && chmod -R 770 /root
and I have permission denied:
mkdir: cannot ...
1
vote
1
answer
9k
views
Sudo mkdir fails due to permission denied error
I've written a script that copies some files from one place to another and since I don't have permissions to the source folder, I tried running it with sudo.
The problem is that now the creation of ...
0
votes
1
answer
290
views
What do are group permission missing on new directories?
Normally when I make a directory with mkdir the permissions I expect are 751 or 755. However for some reason when new files are created, even in a users home directory, they are set to 700.
What ...
5
votes
2
answers
1k
views
Why does default setfacl fail for nested directories?
I am using sftp with the internal-sftp for debian.
What I'm trying to acomplish is to jail all users to a specific folder which is working fine. I also need to have a single user that has "admin" ...
6
votes
3
answers
4k
views
mkdir permissions do not correspond to umask (change depending on location)
Whenever I create new directories in my home (or its subdirectories) they do not have write permission, even though umask is set correctly. Files I make DO have write permission.
[mmanary@seqap33 ~]$ ...