LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-03-2008, 07:02 PM   #1
izaakrach
Member
 
Registered: Jun 2006
Location: Reno, NV USA
Distribution: Ubuntu
Posts: 32

Rep: Reputation: 16
SMB Configuration


Hello,

I am having trouble with my SMB server that is causing pain to my users and in turn giving me heartburn. To the problem - I have a server which is set up in a completely insecure manor and we are totally okay with it. We want to be able to have everyone in the building be able to access a certain directory and all have rwx rights to all files in the share. When I set up the share it works for about a week and then I start getting reports from users that documents are read only for everyone except for the person who created it. Is there some sort of security script that runs once a week that would cause this? Thanks in advance for any assistance.

Todd

Distro - Mandriva 2008.0
Kernel - 2.6.22.9-desktop-1mdv

smb.conf as follows

[global]
workgroup = MDKGROUP
server string = Samba Server %v
printcap name = cups
load printers = yes
printcap cache time = 60
printing = cups
log file = /var/log/samba/%m.log
max log size = 50
map to guest = bad user
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
dns proxy = no

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no

guest ok = yes
writable = no
printable = yes
create mode = 0700

print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
use client driver = yes

[print$]
path = /var/lib/samba/printers
browseable = yes
write list = @adm root
guest ok = yes
inherit permissions = yes

[Shared]
path = /home/share/files/shared
comment = Shared
browseable = yes
public = yes
writable = yes
inherit permissions = no
 
Old 07-03-2008, 07:14 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Have you tried

directory mode = 777
create mode = 777

And made sure that /home/share/files/shared is 777 ?
 
Old 07-03-2008, 07:27 PM   #3
izaakrach
Member
 
Registered: Jun 2006
Location: Reno, NV USA
Distribution: Ubuntu
Posts: 32

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by billymayday View Post
Have you tried

directory mode = 777
create mode = 777

And made sure that /home/share/files/shared is 777 ?
I assume that I add that under [Shared] correct? Do I add both lines or is one of the two enough?

Thanks for your quick response.
 
Old 07-03-2008, 07:38 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Under shared. I'd use both - I'm note quite sure what will happen is a user creates a directory under shared otherwise.
 
Old 07-03-2008, 07:42 PM   #5
izaakrach
Member
 
Registered: Jun 2006
Location: Reno, NV USA
Distribution: Ubuntu
Posts: 32

Original Poster
Rep: Reputation: 16
Great thanks, I've already added the two lines and restarted smb. Unfortunately we are heading into a 4 day weekend here in the states so I won't be able to report to you of my success or failure until late next week. Thank you for sharing your knowledge with me.

Todd
 
Old 07-08-2008, 06:02 AM   #6
tpe
Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Suse Linux
Posts: 98

Rep: Reputation: 16
Also,
add the following line:
force create mode = 0777, if the previous 2 lines are not working.
 
Old 07-08-2008, 06:36 AM   #7
cibcib
LQ Newbie
 
Registered: Jul 2008
Posts: 3

Rep: Reputation: 0
Did you give write and owner rights to /home/share/files/shared directory?
For example if owner and group is root, they can not access this directory.
I set the group to mail, bc all local users are in mail group.
Don't forget to set write permission to group.

All the bests,

Cib
 
  


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
smb printer configuration problem soumalya Linux - Networking 2 02-10-2007 01:47 AM
Samba in Debian, smb.conf: smb passwd file = ?????????? henrnorl Linux - Software 1 10-06-2006 09:43 AM
SMB: More then one Windows user/ smb account? 1veedo Linux - Networking 2 03-15-2005 04:16 PM
Creating a SSL connection from smb clients to a smb server scottpioso General 0 11-17-2003 02:33 PM
making smb shares viewable from smb client via web browser scottpioso General 3 11-10-2003 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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