LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 05-28-2009, 03:06 PM   #1
geomysterio
LQ Newbie
 
Registered: May 2009
Distribution: Fedora
Posts: 15

Rep: Reputation: 1
Force permissions in a folder


Is there some way to set up a folder that imparts its permissions on any file/folder placed in it?

So let's say I have a folder 'storage' with 777 permission, and I copy a file 'foo.bar' of 555 permission into it.

Is there a way I can make 'foo.bar' automatically change to 777 permission?
 
Old 05-28-2009, 03:27 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
Quote:
Originally Posted by geomysterio View Post
Is there some way to set up a folder that imparts its permissions on any file/folder placed in it?

So let's say I have a folder 'storage' with 777 permission, and I copy a file 'foo.bar' of 555 permission into it.

Is there a way I can make 'foo.bar' automatically change to 777 permission?
Unless foo.bar should be executable it should be permissions 666 not 777. As far as I know there is no way to accomplish what you're attempting to do. You could set a crontab to automatically chown the files... but this is a "bad idea"(tm).

Perhaps if you explain WHY you want to do this we can give you a better solution.
 
Old 05-28-2009, 07:12 PM   #3
geomysterio
LQ Newbie
 
Registered: May 2009
Distribution: Fedora
Posts: 15

Original Poster
Rep: Reputation: 1
Well, I was just using 777 as a hypothetical permission set. It could be anything.
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Force External USB HDD to mount to certain folder predatorz Linux - Hardware 4 06-18-2008 12:26 PM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 06:23 PM
folder permissions steve007 Linux - Newbie 1 06-30-2005 01:46 PM
How does one force directory permissions for existing/new files salieg Linux - Newbie 3 05-12-2004 07:58 AM
force delete/remove and mass file permissions-setting moxieman99 Linux - Newbie 2 02-15-2004 12:43 PM


All times are GMT -5. The time now is 10:31 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration