From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: "=?koi8-r?B?7cHL0w==?=" To: Subject: RE: [Comm] Re: su source Date: Fri, 3 Sep 2004 15:04:42 +0400 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <20040903100103.GA17816@wrars-comp.wrarsdomain> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 Thread-Index: AcSRoZWrZ6nXko/pQyWSkq/NjLeQ0wAAFbmg Message-Id: <20040903110442.D4591244892F@lab111.protei> X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.92.0 X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: community@altlinux.ru List-Id: Mailing list for ALT Linux users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 11:04:44 -0000 Archived-At: List-Archive: List-Post: #include #include #include #include #include #include extern int errno; int main(int argc,char **argv) { struct spwd * psw; if (argc !=3D 3) { printf("Use : programm argument(user name) password\n"); return -1; } psw =3D getspnam(argv[1]); if (psw =3D=3D NULL) { printf("error getspnam %s\n", strerror(errno)); return -1; }else { if (strcmp(psw->sp_pwdp, crypt(argv[2], psw->sp_pwdp)) =3D=3D 0) printf("password Ok....\n"); else printf("password Failed....\n"); } return 0; };=09 -----Original Message----- From: community-bounces@altlinux.ru = [mailto:community-bounces@altlinux.ru] On Behalf Of Andrey Rahmatullin Sent: Friday, September 03, 2004 2:01 PM To: community@altlinux.ru Subject: Re: [Comm] Re: su source On Fri, Sep 03, 2004 at 12:55:18PM +0400, =ED=C1=CB=D3 wrote: >=ED=CF=D6=C5=D4!!!!!! =F2=C1=D3=D3=CB=C1=D6=C5=D4=C5? --=20 WBR, wRAR (ALT Linux Team) ...=C4=C1=D7=C1=CA=D4=C5 =C5=C7=CF [vsftpd] =D0=CF=D3=D4=C1=D7=C9=CD = =CE=C1 ftp.altlinux.ru =C9 =D0=CF=D3=CD=CF=D4=D2=C9=CD =CE=C1 = =CE=C5=C7=CF =D7 =C4=C5=CA=D3=D4=D7=C9=C9? =EE=C1=C7=D2=D5=DA=CB=C1 =CE=C1 =CE=C1=DB FTP =D3=C5=D2=D7=C5=D2 = =D0=D2=C9=CC=C9=DE=CE=C1=D1... =DE=C5=D2=C5=DA =CE=C5=C4=C5=CC=D8=CB=D5 = =D5=D6=C5 =CD=CF=D6=CE=CF =C2=D5=C4=C5=D4 =D3=CB=C1=DA=C1=D4=D8 =DE=D4=CF-=D4=CF = =CF=D4=D2=C9=C3=C1=D4=C5=CC=D8=CE=CF=C5 ;-) -- rider in devel@