Problems with permissions/ownership og image folder



  • I had never this problem when I used the default location of the image folder (/images). When I moved it into the /home folder I get problems as the folders made inside dev folder is set to root:root

    My /etc/exports file is correct, I thing:
    /home/images *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure,fsid=1,)
    /home/images/dev *(rw,sync,no_wdelay,no_root_squash,insecure,fsid=2,)

    Servers has been restarted.

    The folder inside the dev folder is never copied into /home/images as the ownership always seems to be root:root even if I manually set this to chown -R fog:fog /home/images and chmod -R 777 /home/images

    Any idea about this problem? I am running svn 2145 on CentOS 5.7



  • Hi Tom! I started with a clean installation so nothing is moved or copied from /images. I even set the permissions/ownership correct in /home/images but they are back to wrong settings each time I do an upload.

    During an update (svn) the /images are recreated again. I have not checked lately if the /etc/export file is kept unchanged (it was correct now with references to /home/images).

    Sammary: The ownership is changed to root:root each time I do an upload


  • Senior Developer

    It’s possible to have /images in /home.

    Did you copy the folders from /images or move them?



  • Hi Tom! I am quite stuck here as there are problems with permissions. Whenever I make an upload (I deleted the old image/files from gui). Then I recreate the image and start an upload. Inside the dev folder I now find these files:
    -rw-r–r-- 1 root root 1 aug 8 08:45 d1.fixed_size_partitions
    -rw-r–r-- 1 root root 15 aug 8 08:45 d1.original.fstypes
    -rw-r–r-- 1 root root 259 aug 8 08:45 d1.original.partitions
    -rw-r–r-- 1 root root 0 aug 8 08:45 d1.original.swapuuids
    -rw-r–r-- 1 root root 3571496504 aug 8 08:57 sys.img.000

    As you can see the files are owned by root and the permissions will not make it possible to move the folder/files outside the dev folder after upload completes. Right? I have to move them manually and change permissions. Could FOG set correct permissions or is it impossible to have the /images folder inside my home folder?



  • This post is deleted!


  • This post is deleted!

  • Senior Developer

    The /home/images folder is typically setup for root:root but has chmod -R 777 privileges, which means anybody can use and write to the folder.

    Did you make a link to /home/images?

    I don’t fully understand the issue then. If you’re reinstalling the system, then chances are it’s updating the privileges during install time to ensure things are fully functional.


Log in to reply
 

425
Online

38918
Users

10688
Topics

101398
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.