Permission Denied Capture
-
@Detoss Please give us some more information. Let’s start with some basics like the FOG version you use?
And Fog website has been setup as an additional and it shows Its been added and working.
What do you mean by that?
Please run the following commands on your FOG server and post output here:
cat /etc/exports ls -alR /images df -h
-
@sebastian-roth 1.5.9 is the Version-
[root@fog ~]# cat /etc/exports /images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0) /images/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1)
[root@fog ~]# ls -alR /images /images: total 0 drwxrwxrwx. 6 fogproject root 89 Nov 23 15:02 . dr-xr-xr-x. 21 root root 288 Nov 16 16:57 .. drwxrwxrwx. 4 fogproject root 66 Nov 23 15:02 dev drwxrwxrwx. 2 root root 254 Nov 19 15:22 INFRA drwxrwxrwx. 2 root root 206 Nov 23 15:02 INSTALL -rwxrwxrwx. 1 fogproject root 0 Nov 16 16:57 .mntcheck drwxrwxrwx. 2 fogproject root 30 Nov 16 16:57 postdownloadscripts /images/dev: total 0 drwxrwxrwx. 4 fogproject root 66 Nov 23 15:02 . drwxrwxrwx. 6 fogproject root 89 Nov 23 15:02 .. drwxrwxrwx. 2 root root 210 Nov 19 15:02 544810d0c6ac -rwxrwxrwx. 1 fogproject root 0 Nov 16 16:57 .mntcheck drwxrwxrwx. 2 fogproject root 26 Nov 16 16:57 postinitscripts /images/dev/544810d0c6ac: total 38676 drwxrwxrwx. 2 root root 210 Nov 19 15:02 . drwxrwxrwx. 4 fogproject root 66 Nov 23 15:02 .. -rw-r--r--. 1 root root 12 Nov 19 15:02 d1.fixed_size_partitions -rw-r--r--. 1 root root 1048576 Nov 19 15:02 d1.mbr -rw-r--r--. 1 root root 1191 Nov 19 15:02 d1.minimum.partitions -rw-r--r--. 1 root root 15 Nov 19 15:02 d1.original.fstypes -rw-r--r--. 1 root root 0 Nov 19 15:02 d1.original.swapuuids -rw-r--r--. 1 root root 38262788 Nov 19 15:02 d1p1.img -rw-r--r--. 1 root root 269100 Nov 19 15:02 d1p2.img -rw-r--r--. 1 root root 20 Nov 19 15:02 d1p3.img.000 -rw-r--r--. 1 root root 1191 Nov 19 15:02 d1.partitions /images/dev/postinitscripts: total 4 drwxrwxrwx. 2 fogproject root 26 Nov 16 16:57 . drwxrwxrwx. 4 fogproject root 66 Nov 23 15:02 .. -rwxrwxrwx. 1 fogproject root 249 Nov 16 16:57 fog.postinit /images/INFRA: total 32876204 drwxrwxrwx. 2 root root 254 Nov 19 15:22 . drwxrwxrwx. 6 fogproject root 89 Nov 23 15:02 .. -rwxrwxrwx. 1 root root 6 Nov 19 15:10 d1.fixed_size_partitions -rwxrwxrwx. 1 root root 1048576 Nov 19 15:10 d1.mbr -rwxrwxrwx. 1 root root 1217 Nov 19 15:10 d1.minimum.partitions -rwxrwxrwx. 1 root root 80 Nov 19 15:10 d1.original.fstypes -rwxrwxrwx. 1 root root 0 Nov 19 15:09 d1.original.swapuuids -rwxrwxrwx. 1 root root 51057535 Nov 19 15:11 d1p1.img -rwxrwxrwx. 1 root root 269157 Nov 19 15:11 d1p2.img -rwxrwxrwx. 1 root root 18166546216 Nov 19 15:18 d1p3.img -rwxrwxrwx. 1 root root 551758402 Nov 19 15:18 d1p4.img -rwxrwxrwx. 1 root root 14113867255 Nov 19 15:21 d1p5.img -rwxrwxrwx. 1 root root 780659205 Nov 19 15:22 d1p6.img -rwxrwxrwx. 1 root root 1217 Nov 19 15:09 d1.partitions /images/INSTALL: total 12453868 drwxrwxrwx. 2 root root 206 Nov 23 15:02 . drwxrwxrwx. 6 fogproject root 89 Nov 23 15:02 .. -rwxrwxrwx. 1 root root 4 Nov 23 14:54 d1.fixed_size_partitions -rwxrwxrwx. 1 root root 1048576 Nov 23 14:55 d1.mbr -rwxrwxrwx. 1 root root 266 Nov 23 14:55 d1.minimum.partitions -rwxrwxrwx. 1 root root 15 Nov 23 14:54 d1.original.fstypes -rwxrwxrwx. 1 root root 0 Nov 23 14:54 d1.original.swapuuids -rwxrwxrwx. 1 root root 10678071 Nov 23 14:55 d1p1.img -rwxrwxrwx. 1 root root 12284800232 Nov 23 15:02 d1p2.img -rwxrwxrwx. 1 root root 456215178 Nov 23 15:02 d1p3.img -rwxrwxrwx. 1 root root 266 Nov 23 14:54 d1.partitions /images/postdownloadscripts: total 4 drwxrwxrwx. 2 fogproject root 30 Nov 16 16:57 . drwxrwxrwx. 6 fogproject root 89 Nov 23 15:02 .. -rwxrwxrwx. 1 fogproject root 235 Nov 16 16:57 fog.postdownload
[root@fog ~]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 1.9G 0 1.9G 0% /dev tmpfs 1.9G 0 1.9G 0% /dev/shm tmpfs 1.9G 8.6M 1.9G 1% /run tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup /dev/mapper/centos-root 50G 47G 3.8G 93% / /dev/mapper/centos-image 186G 33M 185G 1% /image /dev/sda1 1014M 182M 833M 18% /boot tmpfs 379M 0 379M 0% /run/user/0
-
@Detoss Seems like a little typo can make a huge difference. While I am still not really sure I think you use
/image
as well as/images
.While
/images
is on your root partition using up that space you might run into an issue with that. Seems like you wanted to move things to a separate partition but that didn’t work. Tell us more about what you have tried to setup here.Please run
ls -alR /image
and post output here as well. -
@sebastian-roth Well hopefully there’s an easy way to correct this or just point my images to it since its where the majority of space is.
[root@fog ~]# ls -alR /image
/image:
total 0
drwxr-xr-x. 2 root root 6 Nov 10 16:17 .
dr-xr-xr-x. 21 root root 288 Nov 16 16:57 … -
@Detoss As the
/image
(no ‘s’ at the end) directory is completely empty you can simply move all your stuff into that and re-mount as/images
. Run as root:mv /images/.mntcheck /image/ mv /images/* /image/
Now edit the file
/etc/fstab
and change/image
to/images
in there. Now reboot your whole server and rundf -h
after the reboot to make sure the images are now on the other volume.As well double check the storage node settings in the FOG web UI to point to
/images
(as it should by default). -
@sebastian-roth said in Permission Denied Capture:
@Detoss Please give us some more information. Let’s start with some basics like the FOG version you use?
And Fog website has been setup as an additional and it shows Its been added and working.
What do you mean by that?
Please run the following commands on your FOG server and post output here:
cat /etc/exports ls -alR /images df -h
I have encountered the same issue when I want to save the image on to another folder on a RAID1 which uses soft link.
When trying to capture the image and save it to the RAID1 folder, FOG says “Permission denied”, even its being configured as 777 -
@Will This topic is not about a soft link like you seem to have it. Please open your own topic and post all your details there. There is no point in cross posting a different issue here.
-
@will I agree please create your own post. There are several things you can do pretty easily, its just not proper to confuse this thread.
-
@sebastian-roth Okay it is now showing this!
[root@fog ~]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 1.9G 0 1.9G 0% /dev tmpfs 1.9G 0 1.9G 0% /dev/shm tmpfs 1.9G 8.6M 1.9G 1% /run tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup /dev/mapper/centos-root 50G 3.0G 48G 6% / /dev/mapper/centos-image 186G 44G 142G 24% /images /dev/sda1 1014M 182M 833M 18% /boot tmpfs 379M 0 379M 0% /run/user/0 [root@fog ~]#
I will be trying it soon as I am back in the office.
Thank you again for the help!
-
@sebastian-roth I tried to image again, now getting Partclone fail which is a first for me- Is this related or another topic I need to open?
-
@Detoss Please Post a picture of the error screen. You might post it here as we are not sure if it’s related or not.
-
@sebastian-roth Is there somewhere I can grab the error log? Or do is a picture fine from my cell.
-
@Detoss Just take a picture and upload here or on an external server and post a link.
-
@sebastian-roth Here is what I got 90% into capture.
https://ibb.co/2vcBMyh
https://ibb.co/Hqk9Qcg
https://ibb.co/HBvMLN6 -
@Detoss Those errors point to FOG was not able to move the captured image from
/images/dev/b07b2549fe0a
to/images/CSR-2020
after it successfully uploaded.You can manually move it:
sudo mv /images/dev/b07b2549fe0a /images/CSR-2020
Possible the automatic move did not work because of a permission issue. Please run
ls -alR /images
now that you’ve moved things and post output here again. -
[root@fog ~]# ls -alR /images /images: total 0 drwxr-xr-x. 6 root root 89 Dec 14 08:47 . dr-xr-xr-x. 21 root root 288 Nov 16 16:57 .. drwxrwxrwx. 6 fogproject root 106 Dec 15 08:36 dev drwxrwxrwx. 2 root root 6 Dec 14 11:47 INFRA drwxrwxrwx. 2 root root 206 Nov 23 15:02 INSTALL -rwxrwxrwx. 1 fogproject root 0 Nov 16 16:57 .mntcheck drwxrwxrwx. 2 fogproject root 30 Nov 16 16:57 postdownloadscripts /images/dev: total 0 drwxrwxrwx. 6 fogproject root 106 Dec 15 08:36 . drwxr-xr-x. 6 root root 89 Dec 14 08:47 .. drwxrwxrwx. 2 root root 210 Nov 19 15:02 544810d0c6ac drwxrwxrwx. 2 root root 210 Dec 14 12:16 b07b2549fd56 drwxrwxrwx. 2 root root 254 Dec 15 08:48 b07b2549fe0a -rwxrwxrwx. 1 fogproject root 0 Nov 16 16:57 .mntcheck drwxrwxrwx. 2 fogproject root 26 Nov 16 16:57 postinitscripts /images/dev/544810d0c6ac: total 38676 drwxrwxrwx. 2 root root 210 Nov 19 15:02 . drwxrwxrwx. 6 fogproject root 106 Dec 15 08:36 .. -rw-r--r--. 1 root root 12 Nov 19 15:02 d1.fixed_size_partitions -rw-r--r--. 1 root root 1048576 Nov 19 15:02 d1.mbr -rw-r--r--. 1 root root 1191 Nov 19 15:02 d1.minimum.partitions -rw-r--r--. 1 root root 15 Nov 19 15:02 d1.original.fstypes -rw-r--r--. 1 root root 0 Nov 19 15:02 d1.original.swapuuids -rw-r--r--. 1 root root 38262788 Nov 19 15:02 d1p1.img -rw-r--r--. 1 root root 269100 Nov 19 15:02 d1p2.img -rw-r--r--. 1 root root 20 Nov 19 15:02 d1p3.img.000 -rw-r--r--. 1 root root 1191 Nov 19 15:02 d1.partitions /images/dev/b07b2549fd56: total 43776 drwxrwxrwx. 2 root root 210 Dec 14 12:16 . drwxrwxrwx. 6 fogproject root 106 Dec 15 08:36 .. -rw-r--r--. 1 root root 10 Dec 14 12:15 d1.fixed_size_partitions -rw-r--r--. 1 root root 1048576 Dec 14 12:15 d1.mbr -rw-r--r--. 1 root root 1225 Dec 14 12:15 d1.minimum.partitions -rw-r--r--. 1 root root 60 Dec 14 12:15 d1.original.fstypes -rw-r--r--. 1 root root 0 Dec 14 12:15 d1.original.swapuuids -rw-r--r--. 1 root root 43484674 Dec 14 12:15 d1p1.img -rw-r--r--. 1 root root 269159 Dec 14 12:16 d1p2.img -rw-r--r--. 1 root root 20 Dec 14 12:16 d1p3.img.000 -rw-r--r--. 1 root root 1225 Dec 14 12:15 d1.partitions /images/dev/b07b2549fe0a: total 38506376 drwxrwxrwx. 2 root root 254 Dec 15 08:48 . drwxrwxrwx. 6 fogproject root 106 Dec 15 08:36 .. -rwxrwxrwx. 1 root root 8 Dec 15 08:36 d1.fixed_size_partitions -rwxrwxrwx. 1 root root 1048576 Dec 15 08:36 d1.mbr -rwxrwxrwx. 1 root root 1225 Dec 15 08:36 d1.minimum.partitions -rwxrwxrwx. 1 root root 60 Dec 15 08:36 d1.original.fstypes -rwxrwxrwx. 1 root root 0 Dec 15 08:36 d1.original.swapuuids -rwxrwxrwx. 1 root root 43479518 Dec 15 08:36 d1p1.img -rwxrwxrwx. 1 root root 269153 Dec 15 08:36 d1p2.img -rwxrwxrwx. 1 root root 23596927308 Dec 15 08:45 d1p3.img -rwxrwxrwx. 1 root root 470632049 Dec 15 08:45 d1p4.img -rwxrwxrwx. 1 root root 14533669671 Dec 15 08:48 d1p5.img -rwxrwxrwx. 1 root root 784473335 Dec 15 08:48 d1p6.img -rwxrwxrwx. 1 root root 1225 Dec 15 08:36 d1.partitions /images/dev/postinitscripts: total 4 drwxrwxrwx. 2 fogproject root 26 Nov 16 16:57 . drwxrwxrwx. 6 fogproject root 106 Dec 15 08:36 .. -rwxrwxrwx. 1 fogproject root 249 Nov 16 16:57 fog.postinit /images/INFRA: total 0 drwxrwxrwx. 2 root root 6 Dec 14 11:47 . drwxr-xr-x. 6 root root 89 Dec 14 08:47 .. /images/INSTALL: total 12453868 drwxrwxrwx. 2 root root 206 Nov 23 15:02 . drwxr-xr-x. 6 root root 89 Dec 14 08:47 .. -rwxrwxrwx. 1 root root 4 Nov 23 14:54 d1.fixed_size_partitions -rwxrwxrwx. 1 root root 1048576 Nov 23 14:55 d1.mbr -rwxrwxrwx. 1 root root 266 Nov 23 14:55 d1.minimum.partitions -rwxrwxrwx. 1 root root 15 Nov 23 14:54 d1.original.fstypes -rwxrwxrwx. 1 root root 0 Nov 23 14:54 d1.original.swapuuids -rwxrwxrwx. 1 root root 10678071 Nov 23 14:55 d1p1.img -rwxrwxrwx. 1 root root 12284800232 Nov 23 15:02 d1p2.img -rwxrwxrwx. 1 root root 456215178 Nov 23 15:02 d1p3.img -rwxrwxrwx. 1 root root 266 Nov 23 14:54 d1.partitions /images/postdownloadscripts: total 4 drwxrwxrwx. 2 fogproject root 30 Nov 16 16:57 . drwxr-xr-x. 6 root root 89 Dec 14 08:47 .. -rwxrwxrwx. 1 fogproject root 235 Nov 16 16:57 fog.postdownload
-
@Detoss Update the permissions like this
sudo chmod 777 /images
and then try another capture. -
@sebastian-roth AH! that worked, may I ask what is the purpose or how it worked? I am trying to understand Linux better.
-
@detoss so getting very much details.
-rwxrwxrwx is what you see files appear as. Similar for directory but the 1st dash will usually be a d, denoting directory.
Notice there are 3 groups of rwx.
r=read=4
w=write=2
x=execute=1First grouping rwx (left to right) = owner
Second grouping rwx = group
Third grouping rwx = other/everyoneSo to make owner group and other have max permissions
777
Does this make sense or at least start to help?
There are other pieces to this but this is most likely what most people want to understand.
The chmod command is short for change mode. Mode here basically means permissions.
-
@tom-elliott Ah okay that does help me understadn it better, Thank you! I did run into another problem when trying to load an image from one of the ones I uploaded. “unable to locate image Store”
https://ibb.co/bvHxrjM
https://ibb.co/ZL1gmSm
https://ibb.co/vXdfV8m
https://ibb.co/R9ygw5m
https://ibb.co/VLqmxwq