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 01-01-2004, 07:05 PM   #1
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30
umask setting??


Hello.

I have a folder that has permissions 2770 (drwxrws---), this folder contains other folders and files which all have the same permissions. When a new file or folder is created I want them to obtain these permissions automatically.

What is the best way to do this? The server is only a samba server with a few samba shares.

The reason I want to change this is because when a user creates a new folder or file, none of the other users have write access to it.

Thanks alot for any help.

Regs
Craig
 
Old 01-01-2004, 11:06 PM   #2
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 34
I'm assuming this is a vfat directory you're talking about....anyway, the umask option in fstab which will give the persmissions of "rwxrwx---" is 'umask=007'.

 
Old 01-02-2004, 11:27 PM   #3
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Original Poster
Rep: Reputation: 30
Hi.

Naa it's a ext3 directory which is shared out to windows and other linux clients through samba.

But the info you gave me is great, I didn't think of doing it in fstab.

Thanks alot for your help!!

>Craig : )
 
Old 01-03-2004, 02:24 AM   #4
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 34
If it's an ext3 directory, then the umask option won't work in fstab. That option is only useful for non-unix filesystems that don't have permissions that linux can use.......sounds like you need to set the permissions through samba........

Don't know if this will help, but for Windows, there is a shareware app called Folder Guard, which will allow you to set permissions on any FAT32/NTFS filesystem with greater control than NTFS does natively. It allows you to hide files and folder, restrict access to the system, allows users to only access their files, etc.

You might want to read the faq page for more info
 
Old 01-03-2004, 02:45 AM   #5
poison
Member
 
Registered: Dec 2003
Location: Layer 7 =D
Distribution: Slackware, LFS, Rock Linux
Posts: 165

Rep: Reputation: 30
I remember there beeing a way of letting files automaticaly obtain a certain umask...or was this only for the files created by one specific user

me::rtfm(); ^^
 
  


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
nfs umask setting mvo Linux - Newbie 1 09-16-2005 09:52 PM
setting root's umask triley Linux - Security 3 08-05-2005 08:56 AM
umask setting Cort Linux - Newbie 2 09-28-2004 12:18 PM
umask setting on ftp server fuzzyboots Linux - Newbie 1 07-18-2003 04:13 AM
setting umask that affects all programs in X...? apeekaboo Linux - Security 7 06-12-2003 04:48 PM

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

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