LinuxQuestions.org
Visit Jeremy's Blog.
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 05-17-2005, 02:28 PM   #1
Paulsuk
Member
 
Registered: Jan 2004
Distribution: LFS
Posts: 91

Rep: Reputation: 15
New directory permissions


Apologies if this is the wrong forum, but I wasn't sure which one to post to!

I have a directory which is shared between users (they are actually Windoze users accessing via SAMBA3 if this makes any difference). All the users with access need to have full rights to the directory and all its sub-directories.

Heres the problem. When a user creates a sub-directory (from Windoze) it has the permissions 755, which means that only they can write there! I want new directories to have the permissions 770 - how do I change this (without going in afterwards and using chmod!!!)

Many thanks in advance.

Paul
 
Old 05-17-2005, 07:03 PM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
(have them) set their umask to 007?
 
Old 05-17-2005, 11:11 PM   #3
viniosity
Member
 
Registered: Oct 2001
Location: Washington, DC
Distribution: Debian, Archlinux, Ubuntu, Sidux
Posts: 244

Rep: Reputation: 30
In your /etc/samba/smb.conf (location may vary depending on distro) make sure you have the correct settings:

Code:
[sharename]
   browseable = yes
   path = /usr/local/your_path
   writeable = yes
   create mask = 0770
   directory mask = 0770
   security = share
   force group = staff
   force create mode = 0770
   force directory mode = 0770
This will make sure all ownerships are set to staff and that all files created have permissions 770. Personally I use 775 by YMMV.
 
Old 05-18-2005, 06:36 AM   #4
Paulsuk
Member
 
Registered: Jan 2004
Distribution: LFS
Posts: 91

Original Poster
Rep: Reputation: 15
Talking

Many thanks, worked like a charm!

 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory Permissions mbjunior99 Mandriva 2 02-27-2005 07:17 PM
directory permissions Tinku Linux - General 2 09-25-2004 11:25 AM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 03:04 AM
directory permissions breadbin Linux - General 3 05-28-2003 05:42 PM
directory permissions knueven7 Linux - Software 1 04-14-2003 09:00 AM

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

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