LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-01-2004, 02:40 PM   #1
albracco
Member
 
Registered: Jan 2003
Posts: 48

Rep: Reputation: 15
samba folder permissions problem


Have this Samba problem on 3 separate Red Hat 9.0 servers.

Create a public directory with all permissions open. Have problems when things get added to this public share:

1) User copies a folder from his local Windows PC to the share. Only that user can modify a file. Other users can read, but not write to the file.

2) User creates a new folder on the public share and copies some files into it. All users can read/write the files.

3) User creates a new empty folder on the public share. Only that user can create a file in that share, other users can not.

Is this a Samba or a umask problem?

TIA,

Al
 
Old 07-01-2004, 09:02 PM   #2
dannybpng
Member
 
Registered: Sep 2003
Location: USA
Distribution: Fedora 35
Posts: 79

Rep: Reputation: 22
samba file permissions

If you want a group of users to have access to files created by those users you need to:

1. have each user be assigned to that group in Linux
2. then use the Samba "force group" command for each of the Samba shares ( check the smb.conf man page or use the help through SWAT)

Dan
 
Old 07-02-2004, 08:32 AM   #3
albracco
Member
 
Registered: Jan 2003
Posts: 48

Original Poster
Rep: Reputation: 15
Step 1 is already in place. I'll checkout the conf file.

Thanks,

Al
 
Old 07-02-2004, 08:39 AM   #4
shimmer2101
LQ Newbie
 
Registered: Jul 2004
Posts: 10

Rep: Reputation: 0
i just tried the steps and without force group group and others don't get write on the created directory. with force group it works here.

not so much samba as generall permission behavior i'd say
 
Old 07-02-2004, 07:01 PM   #5
dannybpng
Member
 
Registered: Sep 2003
Location: USA
Distribution: Fedora 35
Posts: 79

Rep: Reputation: 22
Samba sets the permissions

Sorry for not giving you the whole story at once. It has been several years since I have had to do this. You are right it is the permissions in the end, but Samba is the program setting the permissions so it is the combination of the force group and the "create mask" settings.

I think you need to also set the "create mask" to at least 660 so that every file created (by Samba) can be read/written to. You will also have to set the "directory mask" and "force directory mask".

There is also the "security mask" which is needed when using Windows NT, which I have not worked with before.

Hope this helps.

Dan
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba Public Folder Permissions decoone Linux - Networking 4 09-26-2007 12:42 AM
Samba Public shared Folder will not hold permissions xzerros Linux - Networking 12 09-26-2005 09:25 AM
samba: mount-folder in client gives only root permissions mvo Linux - Newbie 3 09-16-2005 11:39 AM
Folder permissions problem with Samba albracco Linux - Networking 4 08-24-2004 10:09 PM
how to setup folder permissions for guest user with samba? wza Linux - Networking 0 07-08-2004 09:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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