LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-04-2004, 11:48 AM   #1
dialbat
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Rep: Reputation: 0
permissions for newly created files


Hello folks.
I have a Linux box that I use as file server within Windows 2003 domain. One folder contains MS Access database, which needs to be open simultaneously by multiple users. What happens is, when u access database, it creates intermediate file, that allows everyone to access it.
This file is created automatically when first user opens database, and deleted automatically, when last user closes database.
I have set permissions on the folder and on all files within it, to allow read write, but when ever this new file is created, it is created with write permissions for the user that opened it first, and in order for other to access it, I have to go and manually give that file write permissions for the other users. Next day it starts all over again

Any suggestions are greatly appreciated.

Emil
 
Old 10-04-2004, 02:40 PM   #2
Santas
Member
 
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290

Rep: Reputation: 30
You can change default permissions whit the umask command. Now i can't remember how does it work but you can se the man pages.

Last edited by Santas; 10-04-2004 at 02:41 PM.
 
Old 10-04-2004, 02:58 PM   #3
dialbat
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Original Poster
Rep: Reputation: 0
I forgot to mension, that what i need is, for this new file, when it's created automaticly, to inherit parent folder permission. Because, it get created with proprietary permissions to user that created it, and no one else can access it.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Newly created File/directory permissions? redrobin77 Fedora 3 11-14-2005 04:55 AM
saving newly created files using ftp on a network linuxhippy Slackware 5 05-06-2005 03:54 AM
How to set permissions for newly created dirs? z-vet Linux - General 2 12-04-2004 08:06 AM
Deleting the newly created files keeping the existing icorsi Linux - Newbie 2 10-07-2001 11:16 AM
Deleting newly created files keeping the existing ones icorsi Linux - General 0 10-07-2001 12:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:36 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