LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   SMB Configuration (https://www.linuxquestions.org/questions/linux-server-73/smb-configuration-653430/)

izaakrach 07-03-2008 07:02 PM

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

billymayday 07-03-2008 07:14 PM

Have you tried

directory mode = 777
create mode = 777

And made sure that /home/share/files/shared is 777 ?

izaakrach 07-03-2008 07:27 PM

Quote:

Originally Posted by billymayday (Post 3203402)
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.

billymayday 07-03-2008 07:38 PM

Under shared. I'd use both - I'm note quite sure what will happen is a user creates a directory under shared otherwise.

izaakrach 07-03-2008 07:42 PM

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

tpe 07-08-2008 06:02 AM

Also,
add the following line:
force create mode = 0777, if the previous 2 lines are not working.

cibcib 07-08-2008 06:36 AM

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


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