No subject


Mon Dec 1 12:27:21 GMT 2003


through the guest account.
This is my smb.conf on the linux side:
; Copyright (c) 1999 SuSE GmbH Nuernberg, Germany.
;
[global]
   workgroup =3D SYAC
   guest account =3D winuser
;   guest account =3D nobody
   keep alive =3D 30
   os level =3D 2
   kernel oplocks =3D false
;   security =3D user

; Uncomment the following, if you want to use an existing
; NT-Server to authenticate users, but don't forget that
; you also have to create them locally!!!
;  security =3D server
;  password server =3D 192.168.1.10

   encrypt passwords =3D yes

   printing =3D bsd
   printcap name =3D /etc/printcap
   load printers =3D yes

   socket options =3D TCP_NODELAY

   map to guest =3D Bad User

; Uncomment this, if you want to integrate your server
; into an existing net e.g. with NT-WS to prevent nettraffic
;  local master =3D no

; Please uncomment the following entry and replace the
; ip number and netmask with the correct numbers for
; your ethernet interface.
   interfaces =3D 192.168.2.30/255.255.255.0

; Passwords are encrypted by default. This way the latest Windows 95 and =
NT
;       clients can connect to the Samba server with no problems.
  encrypt passwords =3D yes

  netbios name =3D MFlinux_30

; If you want Samba to act as a wins server, please set
; 'wins support =3D yes'
   wins support =3D no

; If you want Samba to use an existing wins server,
; please uncomment the following line and replace
; the dummy with the wins server's ip number.
;   wins server =3D 192.168.1.1

[homes]
   comment =3D home-directory
   browseable =3D no
   read only =3D no
   create mode =3D 0755
   guest ok =3D true

[printers]
   comment =3D All Printers
   browseable =3D no
   printable =3D yes
                                                                         =
                                   43,3          76%
   browseable =3D no
   printable =3D yes
   public =3D no
   read only =3D yes
   create mode =3D 0700
   directory =3D /tmp

[myshare]
   comment =3D test for samba share
   path =3D /home/mf
   writeable =3D true
;   read only =3D yes
;   guest ok =3D true
;   user =3D "winuser"

If I uncomment the line guest ok =3D true in myshare section everything =
works fine. Winuser is a username/password existing in the /etc/passwd =
file.
With the showed smb.conf, on the PC side a dialog box prompts me for the =
username/password. I typed couples of username/password existing in the
/etc/passwd file but the answer was sadly always the same: "Unknown user =
or wrong password."
I tried also the null password option and a user with no password.
To make the statement netbios name =3D newname valid, do you have to =
reboot the linux machine?
On the linux machine iI'm running a SUSE 7.3 version.
I tried this (my final target) also with a Strongarm processor running a =
Montavista linux distribution.
I enclose the full smb.conf file, the /etc/passwd file and the =
/etc/group file.
I will really appreciate your help.

Thank you for your kind attention,

best regards,

Marco Furlan (marco.furlan at syac.com)
------=_NextPart_001_000C_01C2BE05.940848C0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have some problems implementing an =
architecture=20
where a linux machine acts as a samba server, while a W2K PC acts as a =
samba=20
client.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>From the PC I can see the service =
[myshare] on the=20
linux machine only through the guest account.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>This is my smb.conf on the linux =
side:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>; Copyright (c) 1999 SuSE GmbH =
Nuernberg,=20
Germany.<BR>;<BR>[global]<BR>&nbsp;&nbsp; workgroup =3D =
SYAC<BR>&nbsp;&nbsp;=20
<STRONG>guest account =3D winuser</STRONG><BR>;&nbsp;&nbsp; guest =
account =3D=20
nobody<BR>&nbsp;&nbsp; keep alive =3D 30<BR>&nbsp;&nbsp; os level =3D=20
2<BR>&nbsp;&nbsp; kernel oplocks =3D false<BR>;&nbsp;&nbsp; security =3D =

user</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>; Uncomment the following, if you want =
to use an=20
existing<BR>; NT-Server to authenticate users, but don't forget =
that<BR>; you=20
also have to create them locally!!!<BR>;&nbsp; security =3D =
server<BR>;&nbsp;=20
password server =3D 192.168.1.10</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; encrypt passwords =3D =
yes</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; printing =3D =
bsd<BR>&nbsp;&nbsp;=20
printcap name =3D /etc/printcap<BR>&nbsp;&nbsp; load printers =3D =
yes</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; socket options =3D=20
TCP_NODELAY</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; map to guest =3D Bad =
User</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>; Uncomment this, if you want to =
integrate your=20
server<BR>; into an existing net e.g. with NT-WS to prevent=20
nettraffic<BR>;&nbsp; local master =3D no</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>; Please uncomment the following entry =
and replace=20
the<BR>; ip number and netmask with the correct numbers for<BR>; your =
ethernet=20
interface.<BR>&nbsp;&nbsp; interfaces =3D =
192.168.2.30/255.255.255.0</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>; Passwords are encrypted by default. =
This way the=20
latest Windows 95 and NT<BR>;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
clients can=20
connect to the Samba server with no problems.<BR>&nbsp; encrypt =
passwords =3D=20
yes</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; netbios name =3D =
MFlinux_30</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>; If you want Samba to act as a wins =
server, please=20
set<BR>; 'wins support =3D yes'<BR>&nbsp;&nbsp; wins support =3D =
no</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>; If you want Samba to use an existing =
wins=20
server,<BR>; please uncomment the following line and replace<BR>; the =
dummy with=20
the wins server's ip number.<BR>;&nbsp;&nbsp; wins server =3D=20
192.168.1.1</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>[homes]<BR>&nbsp;&nbsp; comment =3D=20
home-directory<BR>&nbsp;&nbsp; browseable =3D no<BR>&nbsp;&nbsp; read =
only =3D=20
no<BR>&nbsp;&nbsp; create mode =3D 0755<BR>&nbsp;&nbsp; guest ok =3D =
true</DIV>
<DIV>&nbsp;</DIV>
<DIV>[printers]<BR>&nbsp;&nbsp; comment =3D All Printers<BR>&nbsp;&nbsp; =

browseable =3D no<BR>&nbsp;&nbsp; printable =3D=20
yes<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
43,3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
76%<BR>&nbsp;&nbsp;=20
browseable =3D no<BR>&nbsp;&nbsp; printable =3D yes<BR>&nbsp;&nbsp; =
public =3D=20
no<BR>&nbsp;&nbsp; read only =3D yes<BR>&nbsp;&nbsp; create mode =3D=20
0700<BR>&nbsp;&nbsp; directory =3D /tmp</DIV>
<DIV>&nbsp;</DIV>
<DIV>[myshare]<BR>&nbsp;&nbsp; comment =3D test for samba =
share<BR>&nbsp;&nbsp;=20
path =3D /home/mf<BR>&nbsp;&nbsp; writeable =3D true<BR>;&nbsp;&nbsp; =
read only =3D=20
yes<BR>;&nbsp;&nbsp; guest ok =3D true<BR>;&nbsp;&nbsp; user =3D =
"winuser"<BR></DIV>
<DIV>If I uncomment the line guest ok =3D true in myshare section =
everything works=20
fine. <STRONG>Winuser </STRONG>is a username/password existing in the=20
<STRONG>/etc/passwd</STRONG> file.</DIV>
<DIV>With the showed&nbsp;smb.conf, on the PC side a dialog box prompts =
me for=20
the username/password. I typed couples of username/password existing in=20
the</DIV>
<DIV>/etc/passwd file but the answer was sadly always the same: "Unknown =
user or=20
wrong password."</DIV>
<DIV>I tried also the null password option and a user with no =
password.</DIV>
<DIV>To make the statement netbios name =3D newname valid, do you have =
to reboot=20
the linux machine?</DIV>
<DIV>On the linux machine iI'm running a SUSE 7.3 version.</DIV>
<DIV>I tried this (my final target) also with a Strongarm processor =
running a=20
Montavista linux distribution.</DIV>
<DIV>I enclose the full smb.conf file, the /etc/passwd file and the =
/etc/group=20
file.</DIV>
<DIV>I will really appreciate your help.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thank you for your kind attention,</DIV>
<DIV>&nbsp;</DIV>
<DIV>best regards,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Marco Furlan (<A=20
href=3D"mailto:marco.furlan at syac.com">marco.furlan at syac.com</A>)</DIV></F=
ONT></FONT></DIV></BODY></HTML>

------=_NextPart_001_000C_01C2BE05.940848C0--

------=_NextPart_000_000B_01C2BE05.940848C0
Content-Type: application/octet-stream;
	name="group"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="group"

root:x:0:root=0A=
bin:x:1:root,bin,daemon=0A=
daemon:x:2:=0A=
sys:x:3:=0A=
tty:x:5:=0A=
disk:x:6:=0A=
lp:x:7:=0A=
wwwadmin:x:8:=0A=
kmem:x:9:=0A=
wheel:x:10:=0A=
mail:x:12:cyrus=0A=
news:x:13:news=0A=
uucp:x:14:uucp,fax,root,fnet,marcoa,roberto,paolo,massimo,edi,stefano,fil=
ippo=0A=
shadow:x:15:root,gdm=0A=
dialout:x:16:root,marcoa,roberto,paolo,massimo,edi,stefano,filippo=0A=
audio:x:17:root,marcoa,roberto,paolo,massimo,edi,stefano,filippo=0A=
at:x:25:at=0A=
lnx:x:27:=0A=
mdom:x:28:=0A=
yard:x:29:=0A=
dosemu:x:30:=0A=
firewall:x:31:=0A=
public:x:32:=0A=
video:x:33:marcoa,roberto,paolo,massimo,edi,stefano,filippo=0A=
informix:x:34:informix=0A=
game:x:40:=0A=
xok:x:41:=0A=
trusted:x:42:=0A=
modem:x:43:=0A=
named:x:44:named=0A=
postfix:x:51:postfix=0A=
dbmaker:x:52:=0A=
fix:x:53:informix=0A=
oinstall:x:54:=0A=
dba:x:55:oracle=0A=
localham:x:56:dpbox=0A=
logmastr:x:57:=0A=
codine:x:58:codadmin=0A=
maildrop:x:59:=0A=
perforce:x:60:perforce=0A=
sapdb:x:61:sapdb=0A=
users:x:100:=0A=
nogroup:x:65534:root=0A=

------=_NextPart_000_000B_01C2BE05.940848C0
Content-Type: application/octet-stream;
	name="smb.conf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="smb.conf"

;
; /etc/smb.conf
;
; Copyright (c) 1999 SuSE GmbH Nuernberg, Germany.
;
[global]
   workgroup =3D SYAC
   guest account =3D winuser
;   guest account =3D nobody
   keep alive =3D 30
   os level =3D 2
   kernel oplocks =3D false
;   security =3D user

; Uncomment the following, if you want to use an existing
; NT-Server to authenticate users, but don't forget that
; you also have to create them locally!!!
;  security =3D server
;  password server =3D 192.168.1.10

   encrypt passwords =3D yes

   printing =3D bsd
   printcap name =3D /etc/printcap
   load printers =3D yes

; This socket options really speed up Samba under Linux, according to my
;       own tests.
; socket options =3D IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=3D4096 =
SO_RCVBUF=3D4096 #Montavista
   socket options =3D TCP_NODELAY

  map to guest =3D Bad User

  max connections =3D 5
  max smbd processes =3D 5


; Uncomment this, if you want to integrate your server
; into an existing net e.g. with NT-WS to prevent nettraffic
;  local master =3D no  =20

; Please uncomment the following entry and replace the=20
; ip number and netmask with the correct numbers for
; your ethernet interface.
   interfaces =3D 192.168.2.30/255.255.255.0

; Passwords are encrypted by default. This way the latest Windows 95 and =
NT
;       clients can connect to the Samba server with no problems.
  encrypt passwords =3D yes
;  null passwords =3D yes

  netbios name =3D MFlinux_30

; If you want Samba to act as a wins server, please set
; 'wins support =3D yes'
   wins support =3D no

; If you want Samba to use an existing wins server,
; please uncomment the following line and replace
; the dummy with the wins server's ip number.
;   wins server =3D 192.168.1.1

; Do you wan't samba to act as a logon-server for
; your windows 95/98 clients, so uncomment the
; following:
;   logon script =3D%U.bat
;   domain logons =3D yes
;   domain master =3D yes
; [netlogon]
;   path =3D /netlogon


[homes]
   comment =3D home-directory
   browseable =3D no
   read only =3D no
   create mode =3D 0755
   guest ok =3D true

; The following share gives all users access to the Server's CD drive,
; assuming it is mounted under /cd. To enable this share, please remove
; the semicolons before the lines
;
; [cdrom]
;   comment =3D Linux CD-ROM
;   path =3D /cdrom
;   read only =3D yes
;   locking =3D no

[printers]
   comment =3D All Printers
   browseable =3D no
   printable =3D yes
   public =3D no
   read only =3D yes
   create mode =3D 0700
   directory =3D /tmp

[myshare]
   comment =3D test for samba share
   path =3D /home/mf
   writeable =3D true
;   read only =3D yes
;   guest ok =3D true
;   user =3D "winuser"


------=_NextPart_000_000B_01C2BE05.940848C0
Content-Type: application/octet-stream;
	name="passwd"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="passwd"

root:x:0:0:root:/root:/bin/bash	#root password is super!!!!!
bin:x:1:1:bin:/bin:/bin/bash
daemon:x:2:2:daemon:/sbin:/bin/bash
lp:x:4:7:lp daemon:/var/spool/lpd:/bin/bash
news:x:9:13:News system:/etc/news:/bin/bash
uucp:x:10:14:Unix-to-Unix CoPy system:/etc/uucp:/bin/bash
games:x:12:100::/var/games:/bin/bash
man:x:13:2::/var/cache/man:/bin/bash
at:x:25:25::/var/spool/atjobs:/bin/bash
postgres:x:26:2:Postgres Database Admin:/var/lib/pgsql:/bin/bash
lnx:x:27:27:LNX Database Admin:/usr/lib/lnx:/bin/bash
mdom:x:28:28:Mailing list agent:/usr/lib/majordomo:/bin/bash
yard:x:29:29:YARD Database Admin:/usr/lib/YARD:/bin/bash
wwwrun:x:30:65534:Daemon user for apache:/var/lib/wwwrun:/bin/bash
squid:x:31:65534:WWW proxy squid:/var/squid:/bin/bash
fax:x:33:14:Facsimile Agent:/var/spool/fax:/bin/bash
gnats:x:34:65534:Gnats Gnu Backtracking System:/usr/lib/gnats:/bin/bash
adabas:x:36:100:Adabas-D Database Admin:/usr/lib/adabas:/bin/bash
amanda:x:37:6:Amanda Admin:/var/lib/amanda:/bin/bash
ixess:x:38:29:IXware Admin:/usr/lib/ixware:/bin/bash
irc:x:39:65534:IRC Daemon:/usr/lib/ircd:/bin/bash
ftp:x:40:2:ftp account:/usr/local/ftp:/bin/bash
firewall:x:41:31:firewall account:/var/lib/firewall:/bin/false
informix:x:43:34:Informix Database Admin:/usr/lib/informix:/bin/bash
named:x:44:44:Nameserver Daemon:/var/named:/bin/bash
virtuoso:x:45:100:Virtuoso Admin:/opt/virtuoso-lite:/bin/bash
fnet:x:49:14:FidoNet:/var/spool/fnet:/bin/bash
gdm:x:50:15:Gnome Display Manager:/var/lib/gdm:/bin/bash
postfix:x:51:51:Postfix:/var/spool/postfix:/bin/false
cyrus:x:96:12:User for Imapd:/usr/cyrus:/bin/bash
nps:x:53:100:NPS admin:/opt/nps:/bin/bash
skyrix:x:54:100:SKYRIX admin:/opt/skyrix/skyrix36:/bin/bash
dbmaker:x:55:52:Dbmaker Database Admin:/usr/lib/dbmaker:/bin/bash
fixadm:x:56:53:Linux Fincancial Suite =
Admin:/opt/fsuite/home/fixadm:/bin/ksh
fib:x:57:53:Linux Fincancial Suite fib:/opt/fsuite/home/fib:/bin/ksh
fixlohn:x:58:53:Linux Fincancial Suite =
fixlohn:/opt/fsuite/home/fixlohn:/bin/ksh
oracle:x:59:54:Oracle User:/opt/oracle:/bin/bash
mysql:x:60:2:MySQL Database User:/var/lib/mysql:/bin/false
dpbox:x:61:56:DpBox User:/var/spool/dpbox:/bin/false
ingres:x:62:3:Ingres DataBase administrator:/opt/tngfw/ingres:/bin/bash
codadmin:x:63:58:Codine Administrator:/var/lib/codadmin:/bin/bash
zope:x:64:2:Zope Server:/var/lib/zope:/bin/false
vscan:x:65:65534:vscan user:/var/spool/vscan:/bin/false
wnn:x:66:100:Wnn System Account:/var/lib/wnn:/bin/false
pop:x:67:100:pop admin:/var/lib/pop:/bin/false
perforce:x:68:60:perfoce admin:/var/lib/perforce:/bin/false
sapdb:x:69:61:SAPDB demo user:/var/opt/sapdb:/bin/false
nobody:x:65534:65534:nobody:/var/lib/nobody:/bin/bash
winuser:YbSA1K9QN9Tss:510:100:winuser samba:/home:/bin/bash #password is =
everest!!!

------=_NextPart_000_000B_01C2BE05.940848C0--





More information about the samba mailing list