[Bug 389049] [NEW] usershares guest_ok=y results in "Permission denied" error
Mihai Capotă
mihai at mihaic.ro
Thu Jun 18 16:39:10 BST 2009
Public bug reported:
Binary package hint: samba
Usershare having guest_ok=y cannot be mounted as guest. I have the default smb.conf from Jaunty which includes:
usershare allow guests = yes
I tried creating such a share using both nautilus and net usershare. The resulting file is identical:
mihai at dutier:~$ cat /var/lib/samba/usershares/public
#VERSION 2
path=/home/mihai/Public
comment=
usershare_acl=S-1-1-0:R
guest_ok=y
I tried accessing the usershare using:
-nautilus
Can't mount location
Failed to mount Windows share
-mount.cifs
mihai at dutier:~$ sudo mount.cifs //dutier/public Media/tmp/ -o guest
retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
-smbclient
mihai at dutier:~$ smbclient -N //dutier/Public
Anonymous login successful
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.3.2]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
Every time I get the same error in the samba log:
[2009/06/18 17:24:41, 0] smbd/service.c:make_connection_snum(1073)
'/home/mihai/Public' does not exist or permission denied when connecting to [public] Error was Permission denied
I can access the same usershare using a username:
-mount.cifs
mihai at dutier:~$ sudo mount.cifs //dutier/public Media/tmp/ -o user=mihai
-smbclient
mihai at dutier:~$ smbclient //dutier/Public
Enter mihai's password:
Domain=[DUTIER] OS=[Unix] Server=[Samba 3.3.2]
smb: \>
ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
Package: samba 2:3.3.2-1ubuntu3
ProcEnviron:
LANG=ro_RO.UTF-8
SHELL=/bin/bash
SourcePackage: samba
Uname: Linux 2.6.28-11-generic x86_64
** Affects: samba (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug
--
usershares guest_ok=y results in "Permission denied" error
https://bugs.launchpad.net/bugs/389049
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
More information about the Ubuntu-server-bugs
mailing list