Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CIFS and public/guest share = impossible?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
0x4a47
n00b
n00b


Joined: 24 Mar 2004
Posts: 18

PostPosted: Mon Feb 20, 2006 6:29 pm    Post subject: CIFS and public/guest share = impossible? Reply with quote

hi,

i asked at the samba-ml but didn't get a reply so far, maybe here's someone that tried CIFS instead of SMBFS and still has a working setup for all the users..

i've always been using mount -t smbfs and recently "upgraded" to
mount.cifs because i have a very aggressive application which always
killed the smb connection (getting timeouts, ...).

my setup:
* some passwordless public/guest shares
* one admin share over a x-over link

to be able to use the admin share i had to switch my server from
"security = share" to "security = user", otherwise i always got
mount.cifs error -1, Operation not permitted.

now that was weird, because it always worked with smbfs, although the
man page states:
parameter: admin user = jg
"This parameter will not work with the security = share in Samba 3.0.
This is by design."

=> well, this parameter worked with smbfs, but not with cifs!


now with "security = user" i can mount this admin share, but all the
public/guest shares are not mountable with CIFS, only with SMBFS.

here's a sample share:
[disk1]
path = /mnt/disk1
valid users = nobody ftp *guest
read only = Yes
guest ok = Yes
guest only = Yes
hide unreadable = Yes
hide special files = Yes
invalid users = root admin @wheel
veto files = /*root*/
browsable = Yes

i tried to mount the public share with many different settings regarding
user=, guest, sec=, but i only get:
CIFS VFS: Send error in SessSetup = -13
CIFS VFS: cifs_mount failed w/return code = -13

i also tried to disable "PacketSigningEnabled", nothing helps. with
sec=none, dmesg tells me that it is an unknown mount option.

is there no way to perform a null session?


i have configured the smb.conf global settings like this:
encrypt passwords = yes
passdb backend = smbpasswd:/etc/samba/private/smbpasswd
username map = /etc/samba/smbusers

the smbpasswd contains a nobody user with no password and my admin user.
cat /etc/samba/smbusers:
root = administrator admin root
nobody = guest pcguest smbguest


both client and server are samba v3.0.21b. kernel version is 2.6.15.1
on both sides. for the windows clients i'm using the workaround 'net
use \\IP\share "" "/USER:"' to be able to access the shares.

thanks for any enlightenment :)
JG
Back to top
View user's profile Send private message
0x4a47
n00b
n00b


Joined: 24 Mar 2004
Posts: 18

PostPosted: Mon Feb 20, 2006 8:55 pm    Post subject: Reply with quote

in case anyone has the same problem and searches for this, here's the solution:

upgrading to CIFS (on the client side) version 1.40 solves everything! one can go back to "security = share" and mount the guest shares without password (and with CIFS) :)
just in case i also upgraded mount.cifs to version 1.5 instead of v1.10 which comes with samba 3.0.21b.

http://svn.samba.org/samba/ftp/cifs-cvs/

thanks to the CIFS dev!
http://lists.samba.org/archive/linux-cifs-client/2006-February/001201.html

JG
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum