Okay, this is driving me NUTS!!! I've been scouring the web all morning, looking through man pages, and it seems that everything should be right, but things aren't working.
My RHEL 4 machine has a SAMBA share designated for guest r/w access
Code:
[lab_share]
path = /usr1/lab_share
public = yes
only guest = yes
writable = yes
browseable = yes
create mask = 0666
directory mask = 0777
; read only = no
; comment = None
; guest account = nobody
; guest ok = yes
; valid users = None
; invalid users = None
(you can see commented out, some parameters I have been playing with, in desperation)
A quick testparm seems to confirm things are okay.
Code:
[lab_share]
path = /usr1/lab_share
read only = No
create mask = 0666
directory mask = 0777
guest only = Yes
WINDOWS machines mounting the share do indeed have full r/w access as guest. It's only other RHEL 4 machines mounting the share via smb that don't. The other linux boxes can only r, except for root
From an example linux box, you can see that
1. I can't make a file in the mounted share
2. only root has write permissions to the mounted share
3 In /etc/fstab I'm mounting the share without uname/pwd, and with rw explicitly defined, yet I still can't write to it. Disk permissions for the share on the server are rwxrwxrwx, btw.
Code:
[van@mako /lan_mnt]$ touch lab_share/file
touch: cannot touch `lab_share/file': Permission denied
[van@mako /lan_mnt]$ ls -al
total 32
drwxr-xr-x 10 root root 4096 Aug 12 16:01 .
drwxr-xr-x 30 root root 4096 Jul 14 12:11 ..
<snip>
drwxr-xr-x 1 root lab 4096 Aug 22 13:36 lab_share
<snip>
[van@mako /lan_mnt]$ more /etc/fstab | grep lab_share
//fluke/lab_share /lan_mnt/lab_share smbfs rw,gid=lab 0 0
I am STUCK! Why can't my linux boxes r/w to the SAMBA share? Is it an smb.conf problem on the server? Or missing /etc/fstab option on the clients?