Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-27-2005, 01:08 AM   #1
Registered: Jan 2005
Location: Clackamas, Oregon, US
Distribution: Slackware 10.2
Posts: 154

Rep: Reputation: 30
Forcing permissions

i have a directory in my root called "/public", i made it so i could make a place where all users had access to. It's pretty nice since i can have everyone use the same wine settings. The problem is that when i put something in there, i have to go to it and change the permissions to either 666 or 777. Is there anyway I can make it so that everything in the /public folder will be 666 or 777?
Old 02-27-2005, 01:22 AM   #2
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 460

Rep: Reputation: 42
It is a bit of a hack, but you put a file in /etc/cron.hourly with the following line:

chmod -R a+rw /public

This will fix up the files once an hour. You could do this more frequently with a specific crontab entry. More sophiticatedly, you could use a find (again in script or cron) to discover the files with "incorrect" permissions, and just fix those. This would avoid reseting the ctime for all the files whenever the script was run.
Old 02-27-2005, 04:10 PM   #3
Registered: Jan 2005
Location: Clackamas, Oregon, US
Distribution: Slackware 10.2
Posts: 154

Original Poster
Rep: Reputation: 30
i don't put files in it too often, so i didn't think i'd setup a crontab, thanks anyways though


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forcing users to use DG on server. Steve2001 Linux - Networking 1 08-27-2005 08:33 AM
Forcing Vesa Magician Linux - Hardware 1 11-23-2003 09:18 PM
forcing boot from cd nocturnal Slackware 1 11-19-2003 04:08 PM
forcing rpm install RockmanExe Mandriva 2 11-11-2003 08:34 PM
Forcing RPM install clausawits Linux - Newbie 2 06-25-2001 02:34 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:46 AM.

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