LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   File Permissions (https://www.linuxquestions.org/questions/linux-newbie-8/file-permissions-318495/)

ComputerErik 04-29-2005 02:15 PM

File Permissions
 
I am running Slackware 10.0 on a laptop, and have also setup Apache as a perl server for use only within my network. I have also setup a shared file where I can put the perl scripts I want to run. I am only having one minor problem with it though. In order for the scripts to run i must first chmod 755 script_name.pl to set the proper permissions. This isn't really a problem if I am working from the machine running the server. However it is a bit annoying if I am working from another PC. Is there anyway that I can have the files that I write to the folder automatically get the proper permissions?

Thanks.

Vookimedlo 04-29-2005 02:24 PM

One way to do this is in using cron job, which is executed every hour.

create script in /etc/cron.hourly/ with your chmod command in it

chmod 755 /cgi-bin/* or something like that

redir 04-29-2005 02:46 PM

How is it annoying? what is it doing? If you write to a directory does it not take on the parent permissions?

Do you have your users and groups set up properly? you need to have the scripts directory rx to "nobody" for example of which others is a member of.

If you are talking about ftp when you say 'write to' a directory then you can handle the file permissions w/ the ftp client. Usually ftp wants to set files to 644.


All times are GMT -5. The time now is 01:30 PM.