Questions tagged [mkdir]
The mkdir tag has no usage guidance.
21
questions with no upvoted or accepted answers
3
votes
0
answers
7k
views
mkdir: cannot create directory under /root : Permission denied
And here it is, another permission denied, sorry for that, but I cannot get it running.
Let me be a stack user with sudo permissions, so that I can create a folder x by sudo mkdir /root/x.
That's ...
1
vote
1
answer
355
views
sudo mkdir /srv/www permission denied
I'm setting up a new webserver on Debian.
As my previous install had everything located in /srv/www I want to use the same setup to avoid rewriting a bunch of config files.
However executing mkdir /...
1
vote
1
answer
2k
views
mkdir says folder exists even though it doesn't show with ls -a
Arch linux.
I have a CIFS mount from my NAS that was mounted with full permissions
# line from my fstab
//IP_ADDRESS/path/to/dir /path/to/local/dir cifs uid=my_user,gid=my_group,dir_mode=0777,...
1
vote
0
answers
748
views
Why I cannot create a folder that does not exist (simple-mtpfs mounted filesystem)?
I am mounting my USB-connected phone using simple-mtpfs, and it is shown as fuse.simple-mtpfs when I do df.
I then switch to a folder on the external SDCARD of the phone, and try to create a folder ....
1
vote
0
answers
9k
views
Best way to chown on newly created directory via mkdir -p
Suppose I did a
mkdir -p a/b/c/d
and directories a,b (a/b) already exists. so it will only create c/d.
Now I want to only change the owner of directories c and d not a and b using chown.
chown -R ...
1
vote
2
answers
487
views
How to create a script to make a structure and sort files by moving them into directories?
I have a bunch of files which all have a first line being a date. All of them start with the same first 2 letters being "ff". I need to create a script which would use that first line in all files and ...
1
vote
0
answers
631
views
When using linux acl mkdir and mkdir -p do different things
I have a directory bar:
# file: bar/
# owner: root
# group: root
user::rwx
user:little-jonny:rwx
group::r-x
mask::rwx
other::r-x
default:user::rwx
default:user:little-jonny:rwx
default:group::r-x
...
1
vote
0
answers
110
views
ps shows my mkdir command with a space where I had a slash
I have a script that I ran which seemed to hang during a mkdir command. The command is of the form:
mkdir -p /a/b/c/d
However, in the ps results, I see:
mkdir -p /a/b c/d
What could cause this ...
0
votes
0
answers
1k
views
Inside Docker: mkdir(-p): No such file or directory
I have encountered a strange problem where the mkdir -p command fails to create a directory and returns the following error message:
[root@202 ~]# pwd
/root
[root@202 ~]# mkdir -p a/b/c
mkdir: cannot ...
0
votes
1
answer
163
views
replacing explicit user names with variables in mkdir and chown
What specific changes need to be made in the commands below in order to use a variable username and a variable user_home to create a subdirectory within the current user's home and then to change ...
0
votes
0
answers
364
views
mkdir - create directory (with ":" in its name) does not work in specific directory, works in others
I am trying to create a directory for a movie on my Plex media server and ran into a strange issue. When I try to make a directory with the movie name ("Borat: Cultural Learnings of America for ...
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
244
views
Mounting subdir to a new NFS
I have a directory that is mounted with NFS.
10.159.31.81:/var/lib/phone /var/lib/phone nfs hard,bg,intr,vers=3,noatime 0 0
I want to test my new NFS servers but I don't want to move everything over. ...
0
votes
2
answers
1k
views
How to run a remote script with sudo via ssh without entering password
I would like my script to connect to ssh with password, and once connected it will switch to sudo -s and run the mkdir command
for the moment I manage to connect to ssh without entering the password ...