LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 03-03-2007, 02:23 AM   #1
Lorian
LQ Newbie
 
Registered: Sep 2005
Distribution: Gentoo
Posts: 25

Rep: Reputation: 15
Automatically set permissions of new files created within a specific folder


How would I go about automatically setting all newly created files in a specific folder to root:users with 775 permissions?

Cheers.
 
Old 03-03-2007, 01:25 PM   #2
Dutchy
LQ Newbie
 
Registered: Mar 2007
Location: Netherlands
Distribution: Sidux, Debian, Ubuntu
Posts: 17

Rep: Reputation: 0
You can always modify /etc/fstab and set umask=002 and the gid={id of users}, which would result 775 files you want.

I have never tried it with any file system other than VFAT, which does work, but if I recall correctly, when trying to put those same parameters into the fstab on a ext3 file system, it refused to mount.

Something like this:
Code:
/dev/hda2 /media/share vfat auto,users,exec,umask=000, gid=46 0 0
Hope it helps

--
This Machine: Sidux kernel 2.6.20.1-slh-smp KDE 3.5.6
Other Machines: Edubuntu 6.06, Debain Etch, Debian Sarge.
 
Old 03-03-2007, 03:17 PM   #3
Lorian
LQ Newbie
 
Registered: Sep 2005
Distribution: Gentoo
Posts: 25

Original Poster
Rep: Reputation: 15
Well not the best solution, but it worked, cheers.

Made a new FAT32 5GB partition and mounted it with:
Code:
/dev/hda3 /mnt/share vfat uid=0,gid=100,umask=002 0 0
 
  


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
How to set folder permissions to allow 777 for all files s0n|k Linux - Newbie 3 11-08-2006 09:26 AM
How to automatically move files from one folder into another folder? xmrkite Linux - Software 6 11-05-2006 10:39 AM
FOLDER permissions change automatically Echo Kilo Linux - Newbie 5 08-21-2005 03:09 AM
How to set permissions for newly created dirs? z-vet Linux - General 2 12-04-2004 08:06 AM
How to permanently set permissions on all files created in a directory? BrianK Linux - General 8 06-24-2004 04:06 PM


All times are GMT -5. The time now is 09:18 AM.

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