Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 09-14-2004, 11:37 AM   #1
Registered: Aug 2003
Distribution: RedHat 9, SuSE 9.2
Posts: 49

Rep: Reputation: 15
wide-open samba share

I'm trying to create a wide-open samba share for a small LAN. Prior to adding the Samba server, this was a Win98 peer network with no file permissions to worry about.

I created my share and applied chmod 777 /shared/* to the shared files. I even ran chmod again with the -R option to apply the permissions throughout all subdirectories.

Things will work fine for a few days, but eventually, we will start receiving read-only messages when one person tries to open a file created by someone else.

For example, Kristy creates a new file and saves it in the shared directory. Later, Patty tries to modify that same file but she is told the file is read-only. Kristy, however, can continue to modify and change the file. I presume this is because Kristy is considered the file owner.

I thought chmod -R 777 would take care of this, but maybe that's only for EXISTING files. How can I apply 777 permissions to NEW files being created by different users?
Old 09-14-2004, 01:38 PM   #2
Registered: May 2004
Location: /dev/bed
Distribution: Mandriva 2009.0 Powerpack
Posts: 172

Rep: Reputation: 30
If you have webmin/swat installed the solution is quite easy. Make sure that New Unix file mode and New Unix directory mode are both set to 777 otherwise Samba will create files under mode 755 which only allows the creating user change them, but allows others to read them.
Old 09-14-2004, 09:15 PM   #3
Registered: Aug 2003
Distribution: RedHat 9, SuSE 9.2
Posts: 49

Original Poster
Rep: Reputation: 15
I don't have swat setup. Can I accomplish the same thing with "create mask" or "directory mask" statements in smb.conf?

How about:

comment = a public share for general documents
path = /usr/shared
public = yes
writable = yes
create mask = 0777
force directory mask = 0777
Old 09-15-2004, 01:41 PM   #4
LQ Newbie
Registered: May 2004
Posts: 1

Rep: Reputation: 0
I'm using the following 2 lines in all of my shares that need to be wide open.

create mode = 0777
directory mode = 0777

Hope this helps.



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
Problem accessing open office documents over samba share jonic Linux - Software 0 11-18-2005 10:46 AM
Sendmail is wide open xlr8films Linux - Security 5 05-21-2005 11:12 PM
wide open samba without domain login? FiveFlat Linux - Networking 1 05-19-2005 10:20 AM
Wide Open Server... Pipewrench General 1 10-09-2004 05:30 PM
Simple Samba Setup, Share & Not Share timmywo Linux - Software 4 07-30-2004 07:27 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration