Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

file permissions

Status
Not open for further replies.

axman505

Technical User
Jun 20, 2001
489
US
I have a folder shared that needs to be acessible over samba to serveral different windows uses all part of a group which has full control of the directory. My problem is, that if i save a new file to this folder in windows, it saves it with permissions 744. I need to change it so that whenever a file is created under this folder, it has permissions 774.

Is umask the command i want to be looking at? Or is there something else?

Thanks
 

I think it's called "create mask" in smb.conf. Set it under the "homes" section to 0774.

Cheers Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
This is wha ti have in my smb.conf:

[java]
path = /backup/java
read only = No
create mask = 0774
directory mask = 0775
security mask = 0773
valid users = aaron,lemkepf


But this still produces the following permissions:
-rwxrw-r-- 1 aaron aaron 7 Mar 10 09:36 test.txt

But I want rwx for the user and the group, and just r for everyone else.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top