Images folder seems to not have correct permissions
-
I’m fairly new to this, so please pardon my learning curve. I’m sure this is simple. I tried searching, but didn’t find exactly my issue, and I’m new enough I’m not sure I can translate something that’s only close but not exact to my current situation.
I recently had to rebuild my Ubuntu server running FOG. I copied my images to an external drive, and everything went well until I wanted to copy them back to the images folder. It failed, and I discovered (looking at the folder in FileZilla) that the images folder doesn’t have Write permission for Public Permissions. I see it does on another Ubuntu server I manage. I think all I need to do is just change that, but it won’t let me change it in FileZilla.
I tried just reinstalling FOG to see if that helped, but it didn’t. So my next plan is to just use the command line to change the permissions, which I think should be fairly simple, but I’m not entirely sure of the exact command. Can I use
chmod 777 images
from the root level? If that’s not best, what should I use? chown? Do I just have the syntax wrong? Thanks for anyone that’s willing to help me learn.
-
@COE Typically if the permissions on the /images directory get messed up you can reinstall FOG and it will fix the permissions.
If you run the
chmod 777 /images
that will make the directory world writable but not the existing files / folders under that directory. If you usechmod -R 777 /images
it will change everything under that directory to world writable.But before you do that, the linux user
fogproject
should have read write access to /images. The password for that user is found in the hidden file /opt/fog/.fogsettings That is the user account fog uses to move files around while imaging.