SAMBA a hesla podruhe

Petr Spatka Petr.Spatka@seznam.cz
Wed, 15 Sep 1999 14:36:04 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0009_01BEFF87.A3F89E00
Content-Type: text/plain;
	charset="iso-8859-2"
Content-Transfer-Encoding: 7bit

Dobry den,

vzhledem k tomu, ze nebyly protesty na dotaz ohledne smaby mel bych jeste
jeden.

Ten predchozi problem je vyresen.

Ted jsem postoupil v souboru doc/samba/DIAGNOSIS.txt k bodu 8 to
je smbclient z UNIXu. Pri pokusu o smbclient pise: 

Na "smbclient '\\ser\tmp' -U ps" pise:
session setup failed: ERRSRV - ERRbadpw (Bad password - name/password 
pair in a Tree Connect or Session Setup are invalid.)

pouzil jsem stejne heslo jako jsem napsal po "smbpasswd ps"

V diagnosis.txt jsem nasel ze to muze byt tim ze pouzivam shadow passwords.
Tento system pouzivam, ale nevim jak poznat podporu shadow passwords v 
zkompilovane sambe a znovu kompilovat se mi ji moc nechce. Navic v
changelog.Debian.gz (pouzivam verzi samba 2.0.2-2) je 
 * Added shadow passwords support.
Ty dalsi priciny jsem myslim dostatecne prozkoumal, ale neni vylouceno, ze 
je to necim jinym. 

Prosim o pomoc s resenim problemu.

Dekuji. Petr SPATKA

Pro moznost odhaleni chyby zasilam v priloze smb.conf (dost jsem se v tom 
drbal abyh se pokusil najit chybu a asi to jiz neni v idealnim stavu).

P.S. Doufam, ze outlook odesle dopis i soubory v citelne podobe.


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

;=0A=
; /etc/smb.conf=0A=
;=0A=
; Sample configuration file for the Samba suite for Debian GNU/Linux=0A=
;=0A=
; Please see the manual page for smb.conf for detailed description of=0A=
;	every parameter.=0A=
;=0A=
=0A=
[global]=0A=
   printing =3D bsd=0A=
   printcap name =3D /etc/printcap=0A=
   load printers =3D yes=0A=
   guest account =3D nobody=0A=
   invalid users =3D root=0A=
   null passwords =3D yes=0A=
=0A=
; "security =3D user" is always a good idea. This will require a Unix =
account=0A=
;	in this server for every user accessing the server.=0A=
   security =3D user=0A=
=0A=
; Change this for the workgroup your Samba server will part of=0A=
   workgroup =3D LUZANKY=0A=
   server string =3D %h server (Samba %v)=0A=
=0A=
; This socket options really speed up Samba under Linux, according to my=0A=
;	own tests.=0A=
   socket options =3D IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=3D4096 =
SO_RCVBUF=3D4096=0A=
=0A=
; Passwords are encrypted by default. This way the latest Windows 95 and =
NT=0A=
;	clients can connect to the Samba server with no problems.=0A=
   encrypt passwords =3D yes=0A=
=0A=
; It's always a good idea to use a WINS server. If you want this server=0A=
;	to be the WINS server for your network change the following parameter=0A=
;	to "yes". Otherwise leave it as "no" and specify your WINS server=0A=
; 	below (note: only one Samba server can be the WINS server).=0A=
;	Read BROWSING.txt for more details.=0A=
   wins support =3D yes=0A=
=0A=
; If this server is not the WINS server then specify who is it and =
uncomment=0A=
;	next line.=0A=
;   wins server =3D 172.16.0.10=0A=
=0A=
; Please read BROWSING.txt and set the next four parameters according=0A=
;	to your network setup. There is no valid default so they are commented=0A=
;	out.=0A=
;   os level =3D 0=0A=
;   domain master =3D no=0A=
;   local master =3D no=0A=
;   preferred master =3D no=0A=
=0A=
; What naming service and in what order should we use to resolve host =
names=0A=
;	to IP addresses=0A=
   name resolve order =3D lmhosts host wins bcast=0A=
=0A=
; This will prevent nmbd to search for NetBIOS names through DNS.=0A=
   dns proxy =3D no=0A=
=0A=
; Name mangling options=0A=
=0A=
   preserve case =3D yes=0A=
   short preserve case =3D yes=0A=
=0A=
; This boolean parameter controlls whether Samba attempts to sync. the =
Unix=0A=
;	password with the SMB password when the encrypted SMB password in the=0A=
;	/etc/samba/smbpasswd file is changed.=0A=
   unix password sync =3D false=0A=
=0A=
; For Unix password sync. to work on a Debian GNU/Linux system, the =
following=0A=
;	parameters must be set (thanks to Culus for pointing this out):=0A=
   passwd program =3D /usr/bin/passwd %u=0A=
   passwd chat =3D *New\spassword:* %n\n *Re-enter\snew\spassword:* %n\n =
*Password\schanged.* .=0A=
=0A=
; The following parameter is useful only if you have the linpopup package=0A=
;	installed. The samba maintainer and the linpopup maintainer are=0A=
;	working to ease installation and configuration of linpopup and samba.=0A=
;   message command =3D /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm =
%s' &=0A=
=0A=
; The default maximum log file size is 5 MBytes. That's too big so this=0A=
;	next parameter sets it to 1 MByte. Currently, Samba rotates log=0A=
;	files (/var/log/{smb,nmb} in Debian) when these files reach 1000 =
KBytes.=0A=
;	A better solution would be to have Samba rotate the log file upon=0A=
;	reception of a signal, but for now on, we have to live with this.=0A=
   max log size =3D 1000=0A=
=0A=
=0A=
[homes]=0A=
   comment =3D Home Directories=0A=
   browseable =3D no=0A=
=0A=
; By default, the home directories are exported read only. Change next=0A=
;	parameter to "no" if you want to be able to write to them.=0A=
   read only =3D yes=0A=
=0A=
; File creation mask is set to 0700 for security reasons. If you want to=0A=
;	create files with group=3Drw permissions, set next parameter to 0775.=0A=
   create mask =3D 0700=0A=
=0A=
; Directory creation mask is set to 0700 for security reasons. If you =
want to=0A=
;	create dirs. with group=3Drw permissions, set next parameter to 0775.=0A=
   directory mask =3D 0700=0A=
=0A=
[printers]=0A=
   comment =3D All Printers=0A=
   browseable =3D no=0A=
   path =3D /tmp=0A=
   printable =3D yes=0A=
   public =3D no=0A=
   writable =3D no=0A=
   create mode =3D 0700=0A=
=0A=
; A sample share for sharing your CD-ROM with others.=0A=
;[cdrom]=0A=
;   comment =3D Samba server's CD-ROM=0A=
;   writable =3D no=0A=
;   locking =3D no=0A=
;   path =3D /cdrom=0A=
;   public =3D yes=0A=
;=0A=
; The next two parameters show how to auto-mount a CD-ROM when the=0A=
;	cdrom share is accesed. For this to work /etc/fstab must contain=0A=
;	an entry like this:=0A=
;=0A=
;       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0=0A=
;=0A=
; The CD-ROM gets unmounted automatically after the connection to the=0A=
;=0A=
; If you don't want to use auto-mounting/unmounting make sure the CD=0A=
;	is mounted on /cdrom=0A=
;=0A=
;   preexec =3D /bin/mount /cdrom=0A=
;   postexec =3D /bin/umount /cdrom=0A=
=0A=
[tmp]=0A=
     comment =3D temporary files =0A=
     path =3D /tmp=0A=
     read only =3D yes=0A=
     users =3D ps=0A=
=0A=
[ps]=0A=
    user =3D ps=0A=
    path =3D /home/ps=0A=
    browseable =3D yes=0A=
=0A=
        
------=_NextPart_000_0009_01BEFF87.A3F89E00--