[Samba] Re: samba: offer public share to Windows 98 and writable
share to Windows XP
Mark Adams
mark at campbell-lange.net
Wed Apr 11 13:40:11 GMT 2007
Did you set a password for the music user with smbpasswd -a music ?
On Wed, Apr 11, 2007 at 12:17:46PM +0800, Zhang Weiwu wrote:
> On Wed, 2007-04-11 at 11:57 +0800, Zhang Weiwu wrote:
> > Dear List. My requirement is to set up a samba share named "music"
> > that:
> > I. it's read-only accessible from both Windows 98 and Windows
> > 2000/XP not requiring password;
> > II. it's write-accessible from Windows XP protected by a password.
>
> In my last email I forgot to mention my "uname -a" and my smb.conf
>
> [global]
> server string = File Server Sappho %v
> log file = /var/log/samba/log.%m
> map to guest = nobody
> hosts allow = 218.193.55.
> security = share
> encrypt passwords = no
> bind interfaces only = 218.193.55.205
> dos charset = 936
> unix charset = UTF-8
>
> [music]
> comment = /var/music
> path = /var/music
> guest ok = yes
> read only = no
>
> Later I am aware that Windows NT (including XP) probably doesn't work
> with "encrypt passwords = no" so I removed that line, the result is,
> Windows XP user can always map the share as user "music" but after
> mounted the user still don't have permission to write to the share.
> Sambe log shows the user is still "nobody" but not "music".
>
> [2007/04/11 02:15:59, 1]
> smbd/service.c:make_connection_snum(693)
> 218.193.55.233 (218.193.55.233) connect to service music initially as user nobody (uid=65534, gid=65534) (pid 15327)
>
> my system information:
> sappho ~ # equery which samba
> /usr/portage/net-fs/samba/samba-3.0.24.ebuild
> sappho ~ # uname -a
> Linux sappho.realss.com 2.6.18-gentoo-r3 #23 Mon Apr 9 23:27:21 HKT 2007 sparc64 sun4u TI UltraSparc IIi (Sabre) GNU/Linux
>
> My latest smb.conf:
>
> sappho ~ # cat /etc/samba/smb.conf
> [global]
> server string = File Server Sappho %v
> log file = /var/log/samba/log.%m
> map to guest = nobody
> hosts allow = 218.193.55.
> security = share
> bind interfaces only = 218.193.55.205
> dos charset = 936
> unix charset = UTF-8
>
> [music]
> comment = /var/music
> path = /var/music
> guest ok = yes
> read only = no
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/listinfo/samba
More information about the samba
mailing list