LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-29-2005, 02:15 PM   #1
ComputerErik
Member
 
Registered: Apr 2005
Location: NYC
Distribution: Debian, RHEL
Posts: 269

Rep: Reputation: 54
Question 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.
 
Old 04-29-2005, 02:24 PM   #2
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Rep: Reputation: 34
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
 
Old 04-29-2005, 02:46 PM   #3
redir
Member
 
Registered: May 2004
Location: Virginia USA
Distribution: Debian_Ubuntu_FreeBSD
Posts: 122

Rep: Reputation: 16
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
locking a usage policy file/ftp file permissions gbow Linux - Newbie 0 02-16-2004 05:35 AM
CVS - file permissions and file ownership Osten Linux - Software 3 01-18-2004 04:08 PM
file permissions and file owner won't change Nadim Slackware 5 11-29-2003 06:03 PM
Changing file permissions on a SAMBA file share apenney Linux - Software 0 02-11-2002 04:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration