ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Yura Kalinichenko <yuk@kalina.in.ua>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Учетные записи без пароля. Как?
Date: Fri, 18 Sep 2009 12:26:08 +0300
Message-ID: <4AB35230.9030108@kalina.in.ua> (raw)
In-Reply-To: <d77783290909180157naf652e8wc6272dc51d001dc2@mail.gmail.com>

Денис Черносов пишет:
> А
> меня волнует академический интерес: как это сделать если таки
> приспичило?

Я пользуюсь следующей подпрограммой. Завернуть ее в управляющий скрипт и 
повесить на какую-нибудь кнопку, думаю, труда не составляет.

# Usage: 
#	clear_password username
#
clear_password() {
  local shadow status
  status=1
  shadow=/etc/tcb/$1/shadow
  if [ -f $shadow ]; then
     sed -i -e "s/^$1:[^:]*:/$1::/" $shadow
     status=$?
  fi
  return $status
}



-- 
SY, 
   Yura Kalinichenko



  reply	other threads:[~2009-09-18  9:26 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-18  8:57 Денис Черносов
2009-09-18  9:26 ` Yura Kalinichenko [this message]
2009-09-19 11:29 ` Michael Shigorin
2009-09-19 11:33 ` Max Ivanov
2009-09-19 11:57   ` Michael Shigorin
2009-09-19 12:45     ` Dmitry Tabunov
2009-09-19 15:41       ` Michael Shigorin
2009-09-21 17:07         ` Anton Farygin
2009-09-22  4:14           ` Rinat Bikov
2009-09-22  6:14         ` Денис Смирнов
2009-09-22  6:43         ` Dmitry Tabunov
2009-09-22 13:07           ` Michael Shigorin
2009-09-22 16:06             ` Dmitriy Kruglikov
2009-09-23  8:25               ` Dmitry Tabunov
2009-09-23 10:54             ` Денис Смирнов
2009-09-23 11:02               ` AShen
2009-09-23 12:05               ` Michael Shigorin
2009-09-23 12:15                 ` Max Ivanov
2009-09-23 13:02                 ` Timur Batyrshin
2009-09-23 16:15                   ` Владимир
2009-09-24  6:17                     ` Timur Batyrshin
2009-09-24  6:26                       ` AShen
2009-09-24  6:42                         ` Timur Batyrshin
2009-09-24  6:45                         ` Dmitriy Kruglikov
2009-09-24  8:00                           ` Andrey Rahmatullin
2009-09-24  8:16                             ` Dmitriy Kruglikov
2009-09-24 11:06                           ` Денис Черносов
2009-09-25 10:20                     ` Gleb Kulikov
2009-09-22  7:09         ` Sergey
2009-09-23  6:17         ` Andrey Kuleshov
2009-09-24 11:15 ` Алексей Шенцев
2009-09-24 11:40   ` Денис Черносов
2009-09-24 11:52 ` Sergey V Turchin

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=4AB35230.9030108@kalina.in.ua \
    --to=yuk@kalina.in.ua \
    --cc=community@lists.altlinux.org \
    /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