Last night I was uploading webpages and images etc to /home/web/ .
I was using a mixture of Dream weaver, SmartFTP and Filezilla to upload from different PC’s. At one point I was also using 2 users, my personal username and the admin username.
Within doing this I have seemly messed things up. Images won't display and I now I get a, you don't have permission to access this area messages, when I try to browse webpages within sub-directories of /home/web/.
Filezilla tells me that users root, admin, and garyl are all owners of different files within the web directory and the chmod settings for files and folders are all over the place. No consistency at all in regards to permissions.
How can I correct this? Filezilla won't let me chmod some files/folders.
Everything uploaded to /home/web/ is static content. No scripts of any sort. Just basic html pages and images.
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !
Messed up public web permissions
Hi
This is probably easiest:
If you can get on the bubba using ssh
switch to the root user and change the ownership of all the files in the /home/web directory to your personal username
This is probably easiest:
If you can get on the bubba using ssh
switch to the root user and change the ownership of all the files in the /home/web directory to your personal username
Code: Select all
su -
chown -R garyl /home/web/*
Hi GaryL
If you are able to log in to bubba via ssh. Become root and do something like:
Sorry for not having a nicer solution. I realise that this could look cryptic. But what it does is first changing owner of all files and directories to be owned by root and the group users. The next line changes permissions on all directories and the last one does the same on all files.
I hope this fixes things.
/Tor
If you are able to log in to bubba via ssh. Become root and do something like:
Code: Select all
cd /home
chown -R root:users web
find web/ -type d -exec chmod 0775 {} \;
find web/ -type f -exec chmod 0664 {} \;
I hope this fixes things.
/Tor
Last edited by tor on 10 Jan 2008, 17:09, edited 1 time in total.
Co-founder OpenProducts and Ex Excito Developer