Gentoo Archives: gentoo-user

From: gummnmi-live@×××××.de
To: gentoo-user@l.g.o
Subject: [gentoo-user] samba doesn't map to guest account
Date: Wed, 09 May 2007 03:23:38
Message-Id: 20070509031743.34256.qmail@web27912.mail.ukl.yahoo.com
1 Hi list,
2
3 now after 6 hours non-stop trying to solve this issue I decided to contact the list!
4 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".
5
6 I tried the following (and many else)
7
8 mount -t cifs //172.16.0.3/ebooks /mnt/ebooks -o guest
9 mount -t cifs //172.16.0.3/ebooks /mnt/ebooks -o user=someuser,password=somepass
10
11 (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!!!!
12
13
14 I then tried
15
16 mount -t cifs //172.16.0.3/ebooks /mnt/ebooks -o user=realuser,password=realpass
17
18 (where realuser is a privileged user that really exists) and it worked!!
19
20
21 I also tried
22
23 mount -t cifs //172.16.0.3/upload /mnt/ebooks -o guest
24
25 (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!!
26
27
28 But no matter what I did SAMBA-WON'T-MAP-MY-ACCOUNT-TO-GUEST on other shares than upload!!!
29
30
31 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 ?:-(
32
33
34
35 Greetz,
36
37 M i c h a e l
38
39
40
41
42 CLIENT-SIDE:
43 gentoo 2.6.20-gentoo-r7
44 mount.cifs version: 1.10-3.0.24
45
46
47 SERVER-SIDE:
48 gentoo 2.6.19-gentoo-r5
49 samba v3.0.24
50
51 --------------- smb.conf ---------------
52 [global]
53 workgroup = GALLIA
54 netbios name = Asterix
55 server string = Asterix
56 log file = /var/log/samba/log.%m
57 log level = 3 passdb:10 auth:1 winbind:2
58 max log size = 50
59 hosts allow = 172.16.0. 192.168.
60 guest account = smbguest
61 map to guest = bad user
62 security = user
63 encrypt passwords = yes
64 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
65 dns proxy = no
66 hide dot files = no
67 domain master = no
68 domain logons = no
69 preferred master = no
70 oplocks = no
71 display charset = UTF-8
72 unix charset = UTF-8
73
74 [ebooks]
75 comment = eBook Directory
76 path = /samba/ebooks
77 public = yes
78 writeable = no
79 write list = @smbroot
80 force group = +smbroot
81 directory mask = 0775
82 create mask = 0664
83
84 [upload]
85 comment = Upload Directory
86 path = /samba/upload
87 public = yes
88 writeable = yes
89 force user = smbguest
90 force group = smbguest
91 directory mask = 0775
92 create mask = 0664
93
94 ------------------------------
95
96
97
98
99 ---------------------------------
100 Kennt man wirklich jeden über 3 Ecken? Die Antworten gibt's bei Yahoo! Clever.