LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-20-2004, 08:18 AM   #1
Bobonov
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
Force mask file creation in one dir


I need to force mask file creation in one dir.
Basically this is the situation
"document" is a shared dir, SGID is already set on the dir so all new files are created as group "office".
But they are created with 644 mask so they are not accessible by other users in the group.
I do not want change the default user mask with umask because of security reason, but I need that in this dir file are created with 664 mask.
Suggestion??
 
Old 07-22-2004, 06:27 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Dunno. One workaround would be to use a Dnotify or FAM client (better than a cronjob) to signal a file was created, and have that run a chmod script. If you're making the script yourself be sure to escape any weirdness: never trust user input.
 
  


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
Device file creation.... xtrem Linux - General 0 10-24-2004 12:18 AM
RPM Spec file creation: %file section question davidas Linux - Newbie 0 03-16-2004 10:36 PM
new file creation permissions dskny Linux - Software 3 03-03-2004 10:32 AM
file creation in C ratheesh Programming 1 01-08-2004 05:39 AM
rpm file creation mayankjohri Linux - Software 4 03-17-2003 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:26 AM.

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