ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Макс <arteev@protei.ru>
To: <community@altlinux.ru>
Subject: RE: [Comm] Re: su source
Date: Fri, 3 Sep 2004 15:04:42 +0400
Message-ID: <20040903110442.D4591244892F@lab111.protei> (raw)
In-Reply-To: <20040903100103.GA17816@wrars-comp.wrarsdomain>

#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <shadow.h>
#include <string.h>
#include <crypt.h>

extern int errno;


int main(int argc,char **argv)
{
    struct spwd * psw;

    if (argc != 3)
    {
        printf("Use : programm argument(user name) password\n");
        return -1;
    }

    psw = getspnam(argv[1]);
    if (psw == NULL)
    {
        printf("error getspnam %s\n", strerror(errno));
        return -1;
    }else
    {
        if (strcmp(psw->sp_pwdp, crypt(argv[2], psw->sp_pwdp)) == 0)
            printf("password Ok....\n");
        else
            printf("password Failed....\n");
    }
    return 0;
};	

-----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, Макс wrote:
>Может!!!!!!
Расскажете?

-- 
WBR, wRAR (ALT Linux Team)

...давайте его [vsftpd] поставим на ftp.altlinux.ru и посмотрим на него в
действии?
Нагрузка на наш FTP сервер приличная... через недельку уже можно будет
сказать что-то отрицательное ;-)
		-- rider in devel@




  reply	other threads:[~2004-09-03 11:04 UTC|newest]

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-30 21:52 ` [Comm] " Sergey Kuznetsov
2004-09-02  8:25   ` Drool
2004-09-02  9:10     ` Макс
2004-09-02  9:06       ` Drool
2004-09-02  9:39       ` Artem K. Jouravsky
2004-09-02  9:46         ` Макс
2004-09-02 10:15           ` [Comm] " Michael Shigorin
2004-09-02 10:50             ` Макс
2004-09-02 10:53               ` Ivan Fedorov
2004-09-02 11:01                 ` Макс
2004-09-02 11:00               ` Alexey I. Froloff
2004-09-02 11:04                 ` Макс
2004-09-02 12:02               ` Michael Shigorin
2004-09-02 12:05                 ` Макс
2004-09-02 12:39                   ` Nick S. Grechukh
2004-09-02 12:43                     ` Макс
2004-09-03 10:13                       ` Nick S. Grechukh
2004-09-03 14:19                         ` Vitaly Lipatov
2004-09-02 12:52                     ` mercenary
2004-09-02 13:08                       ` Макс
2004-09-02 13:11                         ` Alexey Voinov
2004-09-02 13:46                           ` Макс
2004-09-02 14:04                             ` Michael Shigorin
2004-09-02 21:26                             ` Dmitry V. Levin
2004-09-03  8:55                               ` Макс
2004-09-03 10:01                                 ` Andrey Rahmatullin
2004-09-03 11:04                                   ` Макс [this message]
2004-09-03 11:14                                     ` Re[2]: " php-coder
2004-09-03 11:19                                     ` Nick S. Grechukh
2004-09-03 11:35                                       ` Re[2]: " php-coder
2004-09-03 12:40                                     ` Andrey Rahmatullin
2004-09-03 10:01                                 ` Dmitry V. Levin
2004-09-03 11:47                                 ` [Comm] [JT] " Michael Shigorin
2004-09-03 11:50                                   ` Макс
2004-09-03 14:46                                     ` [Comm] " Michael Shigorin
2004-09-05  2:51                               ` [Comm] " Alexey Borovskoy
2004-09-06  5:25                                 ` Maxim Bodynasky
2004-09-06 11:56                                   ` Andrey Rahmatullin
2004-09-06 12:23                                     ` [Comm][JT] " Maxim Bodynasky
2004-09-06 12:50                                       ` Re[2]: " php-coder
2004-09-06 13:44                                         ` [Comm][JT] fortunes-ALT (was: su source) Andrey Rahmatullin
2004-09-06 16:06                                           ` Maxim Bodynasky
2004-09-06 16:49                                             ` Andrey Rahmatullin
2004-09-07  6:18                                             ` Alexey I. Froloff
2004-09-07  6:16                                         ` [Comm][JT] Re: su source Alexey I. Froloff
2004-09-02 13:19                       ` [Comm] " Michael Shigorin
2004-09-03 10:05                         ` Nick S. Grechukh
2004-09-02 13:18                   ` Michael Shigorin
2004-09-02 12:23               ` Yura Kalinichenko
2004-09-03 10:22               ` Re[2]: " php-coder
2004-09-03 10:34                 ` Макс
2004-09-03 10:38                   ` Nick S. Grechukh
2004-09-03 10:40                     ` Макс
2004-09-03 10:43                       ` Nick S. Grechukh
2004-09-03 10:52                     ` Re[2]: " php-coder
2004-09-03 10:54                       ` Nick S. Grechukh
2004-09-03 11:10                         ` Re[2]: " php-coder
2004-09-03 11:17                           ` Макс
2004-09-03 11:22                             ` Nick S. Grechukh
2004-09-03 11:29                             ` Re[4]: " php-coder
2004-09-03 10:58                       ` Re[2]: " Макс
2004-09-03 23:26                         ` [Comm] " Dmitry V. Levin
2004-09-06 12:56                           ` Макс
2004-09-06 16:13                             ` Dmitry V. Levin
2004-09-04  5:31                   ` Re[2]: [Comm] " Andrey Brindeew
2004-09-02 10:40           ` [Comm] " Alexey Novikov
2004-09-02 11:38         ` Andrey Rahmatullin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040903110442.D4591244892F@lab111.protei \
    --to=arteev@protei.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git