Click to See Complete Forum and Search --> : Need help with Samba - cannnot write


dsfh24
08-09-2003, 08:46 AM
I am trying to connect to another mandrake box with the same user name and group as the host box. I can read my share_files share using nmb/nfs but not using smb. Yet I can not write using nmb/nfs ! So can any one help me out here ? What am I doing wrong here ? I just want to be able to read and write from one box to another.


[global]
log file = /var/log/samba/log.%m.
smb passwd file = /etc/samba/smbpasswd
load printers = yes
printing = cups
server string = Samba Server %v
socket options = TCP_NODELAY
workgroup = MDKGROUP
map to guest = bad user
encrypt passwords = yes
printcap name = cups
security = user
printer admin = @adm
max log size = 50

[homes]
comment = Home Directories
browseable = no
writable = no

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
create mode = 0700
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.

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

[pdf-generator]
path = /var/tmp
guest ok = No
printable = Yes
comment = PDF Generator (only valid users)
#print command = /usr/share/samba/scripts/print-pdf file path win_path recipient IP doc_name &
print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "%J" &

[SHARED_FILES]
comment = /home/douglas/Shared_Files
wide links = no
valid users = douglas,@douglas
writeable = yes
path = /home/douglas/Shared_Files
write list = douglas,@douglas

Hayl
08-09-2003, 09:03 AM
first of all, nmb is not a file sharing daemon. nmbd is the Samba name server. the Samba file sharing daemon is called smbd.

check the linux permissions on the files you are attempting to write to (on the server).

dsfh24
08-09-2003, 09:15 AM
Originally posted by Hayl
first of all, nmb is not a file sharing daemon. nmbd is the Samba name server. the Samba file sharing daemon is called smbd.

check the linux permissions on the files you are attempting to write to (on the server).

It's 777 and it still cannot write to the share which I have set to 777.

Hayl
08-09-2003, 09:23 AM
what linux user and group is it set to?

dsfh24
08-09-2003, 09:38 AM
Both user and groups ( aka douglas, douglas ) are the same on each box.

cowanrl
08-09-2003, 04:27 PM
A possible problem you have is conflicting shares.

Your homes share will share out /home/douglas which will also make available all directories under douglas. You have your homes share set to read only (writeable = no).

The Shared_Files share is sharing out /home/douglas/shared_files which is already part of the homes share. Even though you have it set as writeable, write attempts may be blocked by the homes share.

You need to eliminate one of those shares. Since you only want user douglas to have access to /home/douglas/shared_files, there is no need for that share. Just use the homes share and user douglas can access that directory through it. The homes share is much easier to administer.

The usual settings for a homes directory are:

[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775