Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Permissions on files.

Quote Reply
Permissions on files.
Hi all.

I was wondering if anyone has come across this problem. Links (when it builds the directories and index.html files) chmod's the directories 777 and the files are chmod 644. My problem is that I use Frontpage (it is a problem in itself) and when Frontpage goes to publish a website it fails as it does not have permission to the index.html files. I have found if these files are chmod 666 then this fixs the problem, however, to do this I have to contact my host each time to get them to re-set the permissions so I can change the permissions on the files. If I try and change them before contacting my host then I get the old "Operation is not permitted".

My question therefore is : Is there a way to include in the script a function to not just chmod the directories but also the files that are created so that those of us that use Frontpage dont need to sheepishly go to our host and ask them to reset the permissions almost everyday.

Webmaster
www.mysecurityanalyst.com
www.e-bannerx.com
www.asvn.net
Quote Reply
Re: Permissions on files. In reply to
I think the problem is not due to chmodding but due to ownership.

When Links2 builds the pages they will be owned by your username and the group name of your site, however FP requires the user and group to be "nobody", therefore when you try to edit files that don't belong to nobody then you will get that error. Likewise editing files using an ftp client that belong to nobody will give the error.

You will either have to edit the files using ftp all the time or get Links2 to change the file ownserships after building.

Hint :

chown
chgrp

eg.. chown -R username /path/to/pages/
eg.. chgrp -R groupname /path/to/pages/

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Permissions on files. In reply to
Personally, just get a good FTP client to do your uploading with (for example [url=http://www.cuteftp.com]CuteFTP[/url]). I have found CuteFTP to be very reliable, and it is much less annoying than when you find FrontPage messing file permissions up! Wink

Well, hope that helps a bit

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: Permissions on files. In reply to
CuteFTP sucks!

Regards,

Eliot Lee
Quote Reply
Re: Permissions on files. In reply to
Ditto. I use WS_FTP and have found it to be pretty good although it's not "the best".

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Permissions on files. In reply to
Actually, that does not solve the problem as I already use an FTP program to upload many parts of my site. I think Paul has hit the spot with a good long term solution.

Webmaster
www.mysecurityanalyst.com
www.e-bannerx.com
www.asvn.net
Quote Reply
Re: Permissions on files. In reply to
What do you use then? I have found CuteFTP very reliable Wink

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: Permissions on files. In reply to
The major problem with CuteFTP is that certain versions will upload files in binary format regardless of user settings.

--Drew
Free, hot camel soup for Links hackers...
http://www.camelsoup.com
Quote Reply
Re: Permissions on files. In reply to
AceXFTP

Regards,

Eliot Lee