public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: <gummnmi-live@yahoo.de>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] samba doesn't map to guest account
Date: Wed, 9 May 2007 05:17:43 +0200 (CEST)	[thread overview]
Message-ID: <20070509031743.34256.qmail@web27912.mail.ukl.yahoo.com> (raw)

[-- 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 --]

                 reply	other threads:[~2007-05-09  3:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070509031743.34256.qmail@web27912.mail.ukl.yahoo.com \
    --to=gummnmi-live@yahoo.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox