copy file from folder in user abc to a root folder [closed]
up vote
1
down vote
favorite
As user abc, I had wanted to install a "systemrescuecd.iso" on a USB stick. I had made a temporary folder "/tmp/cdrom" (command: mkdir -p /tmp/cdrom). But the command:
mount -o loop,exec /path/to/systemrescuecd-x86-x.y.z.iso /tmp/cdrom
failed, as root was required.
As root, I again made the temporary folder. But I do not know the path addressed from root to the user abc folder containing the .iso file.
Once I have copied this .iso file into /tmp/cdrom, will the mount command be successful?
16.04 command-line directory root users
closed as unclear what you're asking by wjandrea, Melebius, abu_bua, Eric Carvalho, Thomas Dec 1 at 9:35
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
up vote
1
down vote
favorite
As user abc, I had wanted to install a "systemrescuecd.iso" on a USB stick. I had made a temporary folder "/tmp/cdrom" (command: mkdir -p /tmp/cdrom). But the command:
mount -o loop,exec /path/to/systemrescuecd-x86-x.y.z.iso /tmp/cdrom
failed, as root was required.
As root, I again made the temporary folder. But I do not know the path addressed from root to the user abc folder containing the .iso file.
Once I have copied this .iso file into /tmp/cdrom, will the mount command be successful?
16.04 command-line directory root users
closed as unclear what you're asking by wjandrea, Melebius, abu_bua, Eric Carvalho, Thomas Dec 1 at 9:35
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
1
I somehow think this a XY-problem.
– RoVo
Nov 26 at 17:51
2
Where exactly is the iso file located? Inabc
's home directory? E.g./home/abc/systemrescuecd-x86-x.y.z.iso
?
– PerlDuck
Nov 26 at 19:06
1
/tmp/cdrom is the mountpoint, so don't copy the file there. Maybe you could copy it to /tmp instead? And keep in mind you would need to change the path in the mount command.
– wjandrea
Nov 26 at 21:07
2
Please edit your post to contain the full output of the commands you executed. Don’t forget to apply code formatting. Have you tried to mount it elsewhere (e.g. the standard location/mnt
)?
– Melebius
Nov 27 at 12:59
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
As user abc, I had wanted to install a "systemrescuecd.iso" on a USB stick. I had made a temporary folder "/tmp/cdrom" (command: mkdir -p /tmp/cdrom). But the command:
mount -o loop,exec /path/to/systemrescuecd-x86-x.y.z.iso /tmp/cdrom
failed, as root was required.
As root, I again made the temporary folder. But I do not know the path addressed from root to the user abc folder containing the .iso file.
Once I have copied this .iso file into /tmp/cdrom, will the mount command be successful?
16.04 command-line directory root users
As user abc, I had wanted to install a "systemrescuecd.iso" on a USB stick. I had made a temporary folder "/tmp/cdrom" (command: mkdir -p /tmp/cdrom). But the command:
mount -o loop,exec /path/to/systemrescuecd-x86-x.y.z.iso /tmp/cdrom
failed, as root was required.
As root, I again made the temporary folder. But I do not know the path addressed from root to the user abc folder containing the .iso file.
Once I have copied this .iso file into /tmp/cdrom, will the mount command be successful?
16.04 command-line directory root users
16.04 command-line directory root users
edited Nov 26 at 19:31
andrew.46
21.1k1468145
21.1k1468145
asked Nov 26 at 17:45
GB-UK
213
213
closed as unclear what you're asking by wjandrea, Melebius, abu_bua, Eric Carvalho, Thomas Dec 1 at 9:35
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
closed as unclear what you're asking by wjandrea, Melebius, abu_bua, Eric Carvalho, Thomas Dec 1 at 9:35
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
1
I somehow think this a XY-problem.
– RoVo
Nov 26 at 17:51
2
Where exactly is the iso file located? Inabc
's home directory? E.g./home/abc/systemrescuecd-x86-x.y.z.iso
?
– PerlDuck
Nov 26 at 19:06
1
/tmp/cdrom is the mountpoint, so don't copy the file there. Maybe you could copy it to /tmp instead? And keep in mind you would need to change the path in the mount command.
– wjandrea
Nov 26 at 21:07
2
Please edit your post to contain the full output of the commands you executed. Don’t forget to apply code formatting. Have you tried to mount it elsewhere (e.g. the standard location/mnt
)?
– Melebius
Nov 27 at 12:59
add a comment |
1
I somehow think this a XY-problem.
– RoVo
Nov 26 at 17:51
2
Where exactly is the iso file located? Inabc
's home directory? E.g./home/abc/systemrescuecd-x86-x.y.z.iso
?
– PerlDuck
Nov 26 at 19:06
1
/tmp/cdrom is the mountpoint, so don't copy the file there. Maybe you could copy it to /tmp instead? And keep in mind you would need to change the path in the mount command.
– wjandrea
Nov 26 at 21:07
2
Please edit your post to contain the full output of the commands you executed. Don’t forget to apply code formatting. Have you tried to mount it elsewhere (e.g. the standard location/mnt
)?
– Melebius
Nov 27 at 12:59
1
1
I somehow think this a XY-problem.
– RoVo
Nov 26 at 17:51
I somehow think this a XY-problem.
– RoVo
Nov 26 at 17:51
2
2
Where exactly is the iso file located? In
abc
's home directory? E.g. /home/abc/systemrescuecd-x86-x.y.z.iso
?– PerlDuck
Nov 26 at 19:06
Where exactly is the iso file located? In
abc
's home directory? E.g. /home/abc/systemrescuecd-x86-x.y.z.iso
?– PerlDuck
Nov 26 at 19:06
1
1
/tmp/cdrom is the mountpoint, so don't copy the file there. Maybe you could copy it to /tmp instead? And keep in mind you would need to change the path in the mount command.
– wjandrea
Nov 26 at 21:07
/tmp/cdrom is the mountpoint, so don't copy the file there. Maybe you could copy it to /tmp instead? And keep in mind you would need to change the path in the mount command.
– wjandrea
Nov 26 at 21:07
2
2
Please edit your post to contain the full output of the commands you executed. Don’t forget to apply code formatting. Have you tried to mount it elsewhere (e.g. the standard location
/mnt
)?– Melebius
Nov 27 at 12:59
Please edit your post to contain the full output of the commands you executed. Don’t forget to apply code formatting. Have you tried to mount it elsewhere (e.g. the standard location
/mnt
)?– Melebius
Nov 27 at 12:59
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
if you, as user abc, type the command pwd
(print working directory), it will show you the path to the directory you are in
Also using sudo
in front ofthe mount command will execute the command with "root rights".
The iso file is indeed located in abc's home directory.
– GB-UK
Nov 27 at 20:34
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
if you, as user abc, type the command pwd
(print working directory), it will show you the path to the directory you are in
Also using sudo
in front ofthe mount command will execute the command with "root rights".
The iso file is indeed located in abc's home directory.
– GB-UK
Nov 27 at 20:34
add a comment |
up vote
1
down vote
if you, as user abc, type the command pwd
(print working directory), it will show you the path to the directory you are in
Also using sudo
in front ofthe mount command will execute the command with "root rights".
The iso file is indeed located in abc's home directory.
– GB-UK
Nov 27 at 20:34
add a comment |
up vote
1
down vote
up vote
1
down vote
if you, as user abc, type the command pwd
(print working directory), it will show you the path to the directory you are in
Also using sudo
in front ofthe mount command will execute the command with "root rights".
if you, as user abc, type the command pwd
(print working directory), it will show you the path to the directory you are in
Also using sudo
in front ofthe mount command will execute the command with "root rights".
answered Nov 26 at 21:04
Soren A
3,2791824
3,2791824
The iso file is indeed located in abc's home directory.
– GB-UK
Nov 27 at 20:34
add a comment |
The iso file is indeed located in abc's home directory.
– GB-UK
Nov 27 at 20:34
The iso file is indeed located in abc's home directory.
– GB-UK
Nov 27 at 20:34
The iso file is indeed located in abc's home directory.
– GB-UK
Nov 27 at 20:34
add a comment |
1
I somehow think this a XY-problem.
– RoVo
Nov 26 at 17:51
2
Where exactly is the iso file located? In
abc
's home directory? E.g./home/abc/systemrescuecd-x86-x.y.z.iso
?– PerlDuck
Nov 26 at 19:06
1
/tmp/cdrom is the mountpoint, so don't copy the file there. Maybe you could copy it to /tmp instead? And keep in mind you would need to change the path in the mount command.
– wjandrea
Nov 26 at 21:07
2
Please edit your post to contain the full output of the commands you executed. Don’t forget to apply code formatting. Have you tried to mount it elsewhere (e.g. the standard location
/mnt
)?– Melebius
Nov 27 at 12:59