📎 AI Summary:
The thread discusses a user encountering a "Permission denied" error when trying to create a directory within "/media" on a Debian VM running in VirtualBox, which was resolved by switching to root privileges using the "su" command. A couple of respondents suggest that using "sudo" or "su" can resolve permission issues for directory creation. Overall, the conversation focuses on permission management in Linux, with the solution emphasizing the need for elevated rights to modify "/media" and positive feedback about the resolution.

Russell

Active Member
Joined
Jul 21, 2018
Messages
28
Thread Author #1
Attention: windowsForum members:
When typing the "mkdir" command under the "/media" directory in my Oracle VirtualBox Debian version 9.5 virtual machine ( VM ) operating system, the following error message appears: "mkdir: cannot create directory 'vboxshared': Permission denied." There are currently two files residing under the "/media" directory: (1) "cdrom" and (2) "cdrom0." Can I create the "/vboxshared" subdirectory under the "/media" directory? Thank you ( see Colossians 3:15, for example ) for your help. Keep in touch.:)

Sincerely in Christ,
Russell E. Willis
P.S. - Please read Proverbs 23:23.
An image from 'The 'mkdir' command in Debian version 9.5 Linux in Oracle VirtualBox virtual machine ( VM ).'. A closed black Holy Bible with gold lettering on a light background.

"23 Buy truth, and do not sell it; buy wisdom, instruction, and understanding."
[ Proverbs 23:23; RSV ]

Russell E. Willis
3559 Almanac Road
Tallahassee, Florida 32309
 

Last edited by a moderator:
Solution
Attention: windowsForum members:
When typing the "mkdir" command under the "/media" directory in my Oracle VirtualBox Debian version 9.5 virtual machine ( VM ) operating system, the following error message appears: "mkdir: cannot create directory 'vboxshared': Permission denied." There are currently two files residing under the "/media" directory: (1) "cdrom" and (2) "cdrom0." Can I create the "/vboxshared" subdirectory under the "/media" directory? Thank you ( see Colossians 3:15, for example ) for your help. Keep in touch.:)

Sincerely in Christ,
Russell E. Willis
P.S. - Please read Proverbs 23:23.
View attachment 36669
"23 Buy truth, and do not sell it; buy wisdom, instruction, and understanding."
[ Proverbs 23:23; RSV ]...

Russell

Active Member
Joined
Jul 21, 2018
Messages
28
Thread Author #2
Attention: windowsForum members:
When typing the "mkdir" command under the "/media" directory in my Oracle VirtualBox Debian version 9.5 virtual machine ( VM ) operating system, the following error message appears: "mkdir: cannot create directory 'vboxshared': Permission denied." There are currently two files residing under the "/media" directory: (1) "cdrom" and (2) "cdrom0." Can I create the "/vboxshared" subdirectory under the "/media" directory? Thank you ( see Colossians 3:15, for example ) for your help. Keep in touch.:)

Sincerely in Christ,
Russell E. Willis
P.S. - Please read Proverbs 23:23.
View attachment 36669
"23 Buy truth, and do not sell it; buy wisdom, instruction, and understanding."
[ Proverbs 23:23; RSV ]

Russell E. Willis
3559 Almanac Road
Tallahassee, Florida 32309

Update: Please disregard this post. Typing in the "su" command at the Debian version 9.5 Linux prompt solved the problem.
 

Last edited by a moderator:
Solution

livix07

Honorable Member
Joined
Feb 19, 2018
Messages
585
Update: Typing in the "su" command at the Debian version 9.5 Linux prompt solved the problem.

You can run a single command as root using:
Code:
su -c "command name"

Example:

Code:
su -c "apt update"

It will ask you to type in the root password.