LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Gaining Write Access through Samba (https://www.linuxquestions.org/questions/linux-networking-3/gaining-write-access-through-samba-24478/)

MaleMe 06-27-2002 09:18 PM

Gaining Write Access through Samba
 
I have a RedHat Linux 7.2 box (hostname=mlinux) and a Win2k box on a stand alone network with static IP addresses. I'm trying to give the user 'mark' on the Win2k box write access to the 'downloads' directory on 'mlinux'. When mlinux is accessed from the Win2k box (user 'mark') through network neighborhood the 'mark' and 'downloads' shares are seen and both can be read. However, the user 'mark' only has write access to the 'mark' share. Why is the 'downloads' share not writable from the Win2k box as user 'mark'?
Currently the firewall on the Linux machine is not installed.
Below is the smb.conf file:
[global]
netbios name = Mlinux
workgroup = PAI
server string = Samba %v
hosts allow = 192.168.5.
log file = /var/log/samba/%m.log
max log size = 100
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192
SO_SNDBUF=8192
interfaces = eth0
dns proxy = no
[homes]
comment = User home
browseable = no
case sensitive = no
read only = no
valid users = %s
[downloads]
path = /downloads
comment = stuff
browseable = yes
read only = no
valid users = mark

I'm starting to think something besides Samba is causing me this grief... what could it be? Any help would be appreciated.

finegan 06-27-2002 09:33 PM

This one naffed me for a while once too, what's the UNIX permissions on the directory /downloads? If its owned by root then its probably not writeable by world, so no matter what samba thinks its allowed to do, the Unix file side is ignoring it.

You could either chown the whole dir to mark, or just chmod it wide open.

Cheers,

Finegan

MaleMe 06-28-2002 10:15 AM

You were right, the permissions on that directory only allowed writes by the owner and mark was not the owner. Problem solved
and I appreciate the help!


All times are GMT -5. The time now is 06:03 PM.