public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] samba doesn't map to guest account
@ 2007-05-09  3:17 gummnmi-live
  0 siblings, 0 replies; only message in thread
From: gummnmi-live @ 2007-05-09  3:17 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2534 bytes --]

Hi list,

now after 6 hours non-stop trying to solve this issue I decided to contact the list!
I actually just want to mount an samba share as guest via "mount -t cifs ...", but I alway get a "mount error 13 = Permission denied".

I tried the following (and many else)

  mount -t cifs //172.16.0.3/ebooks /mnt/ebooks -o guest
  mount -t cifs //172.16.0.3/ebooks /mnt/ebooks -o user=someuser,password=somepass

(both also with the sec options none,ntlm,ntlmi,ntlmv2,ntlmv2i or smbfs instead of cifs) and always got "mount error 13 = Permission denied". I just wanted samba to map me to the guest-account but it wouldn't!!!!


I then tried

  mount -t cifs //172.16.0.3/ebooks /mnt/ebooks -o user=realuser,password=realpass

(where realuser is a privileged user that really exists) and it worked!!


I also tried

  mount -t cifs //172.16.0.3/upload /mnt/ebooks -o guest

(where 'upload' has a force user/group option set. Look below in smb.conf) and it worked!! Yes, it mapped me to the right account!!


But no matter what I did SAMBA-WON'T-MAP-MY-ACCOUNT-TO-GUEST on other shares than upload!!!


Btw: I can connect with a windows-client and I can connect with smbclient and it works like a charm - which makes me much more confused ?:-(



Greetz,

M i c h a e l




CLIENT-SIDE:
gentoo 2.6.20-gentoo-r7
mount.cifs version: 1.10-3.0.24


SERVER-SIDE:
gentoo 2.6.19-gentoo-r5
samba v3.0.24

--------------- smb.conf ---------------
[global]
workgroup = GALLIA
netbios name = Asterix
server string = Asterix
log file = /var/log/samba/log.%m
log level = 3 passdb:10 auth:1 winbind:2
max log size = 50
hosts allow = 172.16.0. 192.168.
guest account = smbguest
map to guest = bad user
security = user
encrypt passwords = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
hide dot files = no
domain master = no
domain logons = no
preferred master = no
oplocks = no
display charset = UTF-8
unix charset = UTF-8

[ebooks]
comment = eBook Directory
path = /samba/ebooks
public = yes
writeable = no
write list = @smbroot
force group = +smbroot
directory mask = 0775
create mask = 0664

[upload]
comment = Upload Directory
path = /samba/upload
public = yes
writeable = yes
force user = smbguest
force group = smbguest
directory mask = 0775
create mask = 0664

------------------------------ 



       
---------------------------------
Kennt man wirklich jeden über 3 Ecken? Die Antworten gibt's bei Yahoo! Clever.

[-- Attachment #2: Type: text/html, Size: 3137 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-09  3:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-09  3:17 [gentoo-user] samba doesn't map to guest account gummnmi-live

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox