[CentOS] Cannot mount samba shares

Wed Dec 10 17:23:01 UTC 2008
John <jses27 at gmail.com>

On Wed, 2008-12-10 at 17:50 +0100, Ralph Angenendt wrote:
> Hi,
> 
> quick(?) question: Has anybody seen that problem below? More important
> question: Did anybody solve that?
> 
> This is my smb.conf (well, only the most important parts):
> 
> [global]
>     workgroup = FOOBAR
>     server string = My Server
>     map to guest = Bad User
>     preferred master = No
>     local master = No
>     domain master = No
>     dns proxy = No
> 
> [on3]
>     comment = Audio-Video-Imports
>     path = /local/mir/import/on3
>     force group = users
>     read only = No
>     create mask = 0664
>     directory mask = 0775
>     guest ok = Yes
> 
> The path has:
> 
> drwxrwxr-x  3 mir users 4096 10. Dez 16:35 /local/mir/import/on3/
> 
> Meaning: group users and user mir are allowed to write in there. Works
> fine from windows clients. Guest user gets mapped to "nobody".
> 
> Doesn't work from linux:
> 
> [root at shutdown ~]# mount -t cifs -o user=nobody,guest //mir-qs/on3 /mnt/tmp/
> mount error 13 = Permission denied
> Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
> 
> root at mir-qs:~# uname -a ; rpm -q samba
> Linux mir-qs.br.de 2.6.9-78.0.8.ELsmp #1 SMP Wed Nov 19 20:05:04 EST
> 2008 i686 i686 i386 GNU/Linux
> samba-3.0.28-0.el4.9.i386
> 
> Machine is up to date.
> 
> Error message on the server is 
> 
> make_connection: connection to on3 denied due to security descriptor.
> 
> Googling around led me to the belief that someone fooled around with
> srvmgr.exe from a windows machine and that I should remove
> /var/cache/samba/share_info.tdb and restart samba. Which doesn't work.
> 
> Now if I take out the "force group = users" everything works as
> expected. Except that I cannot write in this share - nobody isn't in the
> group users.
> 
> I don't want to add nobody to the group users, nor can I go and change
> anything on that server regarding users and groups in the file system. 
> 
> Ah yes, smbclient works fine, but I really do not want to use that
> either. 

No offense but LOL same problem I had with Linux clients. Here is what I did;
The only way I got this to work is add the mount entry to fstab.. auto-mount would not work right it would end up hanging the Linux client.
//ethans27/SAN1 /mnt/SAN1 cifs user,uid=500,rw,suid,username=nobody,password=nobody 0 0

BTW I'm forcing the use of a specific user in my smb.conf file. I see you have force group but you may have to include the force users=. 
One irritating thing I come to find out is the directoru perms have to coexist with whats in your smb.conf.

[root at ethan ~]# rpm -q samba
samba-3.0.28-1.el5_2.1