9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] change password from a terminal?
@ 2003-06-10  4:24 YAMANASHI Takeshi
  2003-06-10  4:30 ` boyd, rounin
  2003-06-10  6:11 ` Russ Cox
  0 siblings, 2 replies; 14+ messages in thread
From: YAMANASHI Takeshi @ 2003-06-10  4:24 UTC (permalink / raw)
  To: 9fans

Hi, I am curious about changing password.

"Password Change" section in authsrv(6) seems suggesting
it is possible to change a password from a terminal with
interaction with the appropriate AS.  But changeuser(8)
states that these command run only on AS.

Must I go to the AS console when I feel like to change
my password?  What's wrong with my understanding?
--
YAMANASH Takeshi


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] change password from a terminal?
  2003-06-10  4:24 [9fans] change password from a terminal? YAMANASHI Takeshi
@ 2003-06-10  4:30 ` boyd, rounin
  2003-06-10  5:03   ` YAMANASHI Takeshi
  2003-06-10  6:10   ` Russ Cox
  2003-06-10  6:11 ` Russ Cox
  1 sibling, 2 replies; 14+ messages in thread
From: boyd, rounin @ 2003-06-10  4:30 UTC (permalink / raw)
  To: 9fans

> Must I go to the AS console when I feel like to change
> my password?  What's wrong with my understanding?

it's 0600 local, and iirc, you can change your password on
the terminal.  you can obviously do it in on the AS.

however, from the terminal it must be a 'local' window to
avoid the password change flying around _in the clear_.

buy a copy of Network Security, Kaufman et al ...



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] change password from a terminal?
  2003-06-10  4:30 ` boyd, rounin
@ 2003-06-10  5:03   ` YAMANASHI Takeshi
  2003-06-10  6:24     ` boyd, rounin
  2003-06-10  6:10   ` Russ Cox
  1 sibling, 1 reply; 14+ messages in thread
From: YAMANASHI Takeshi @ 2003-06-10  5:03 UTC (permalink / raw)
  To: 9fans

> however, from the terminal it must be a 'local' window to
> avoid the password change flying around _in the clear_.

Both old and new password look like encrypted with the key Kn:
	UserProc->AS	Kn{AuthPass, "old password", "new password"}
	(authsrv(6))

and UserProc doesn't necessarily run on the AS only, I think.

By the way, your "rounin" means boss-less Samurai? :)
--


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] change password from a terminal?
  2003-06-10  4:30 ` boyd, rounin
  2003-06-10  5:03   ` YAMANASHI Takeshi
@ 2003-06-10  6:10   ` Russ Cox
  2003-06-10  6:25     ` boyd, rounin
                       ` (2 more replies)
  1 sibling, 3 replies; 14+ messages in thread
From: Russ Cox @ 2003-06-10  6:10 UTC (permalink / raw)
  To: 9fans

> however, from the terminal it must be a 'local' window to
> avoid the password change flying around _in the clear_.

the password change doesn't fly around
in the clear anymore -- cpu connections
are encrypted.  i type "service=terminal passwd"
all the time.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] change password from a terminal?
  2003-06-10  4:24 [9fans] change password from a terminal? YAMANASHI Takeshi
  2003-06-10  4:30 ` boyd, rounin
@ 2003-06-10  6:11 ` Russ Cox
  2003-06-10  6:20   ` YAMANASHI Takeshi
  1 sibling, 1 reply; 14+ messages in thread
From: Russ Cox @ 2003-06-10  6:11 UTC (permalink / raw)
  To: 9fans

> "Password Change" section in authsrv(6) seems suggesting
> it is possible to change a password from a terminal with
> interaction with the appropriate AS.  But changeuser(8)
> states that these command run only on AS.

run passwd.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] change password from a terminal?
  2003-06-10  6:11 ` Russ Cox
@ 2003-06-10  6:20   ` YAMANASHI Takeshi
  2003-06-17 15:04     ` [9fans] lookman rog
  0 siblings, 1 reply; 14+ messages in thread
From: YAMANASHI Takeshi @ 2003-06-10  6:20 UTC (permalink / raw)
  To: 9fans

> run passwd.

Beautifull.  Sorry for my silly question and thanks for both of you,
Boyd and Russ.

P.S.
I will write on my white-board `lookman ordinary_unix_command`
a considerable times.
--
YAMANASHI Takeshi


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] change password from a terminal?
  2003-06-10  5:03   ` YAMANASHI Takeshi
@ 2003-06-10  6:24     ` boyd, rounin
  0 siblings, 0 replies; 14+ messages in thread
From: boyd, rounin @ 2003-06-10  6:24 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 620 bytes --]

> By the way, your "rounin" means boss-less Samurai? :)

it means:

    1) masterless samurai [http://japan.chez.tiscali.fr/TokyoWeb/E-Ronin.htm]
    2) unemployed man
    3) a college student failing his [entrance?] exams [my japanese dictionary
        is somewhere in 7 boxes, so i'm not 100% sure on this last one]

i saw where they [the 47] are buried in tokyo in the late '80s,
well before the film RONIN:

    http://us.imdb.com/Title?0122690

whose romaji is wrong.

and i have have the tattoo [~6x3cm] on my left upper arm, just covered
by a t-shirt sleeve.

gaijin dakara, wakaranai ... :)

[-- Attachment #2: rounin.jpg --]
[-- Type: image/jpeg, Size: 16624 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] change password from a terminal?
  2003-06-10  6:10   ` Russ Cox
@ 2003-06-10  6:25     ` boyd, rounin
  2003-06-10 11:49     ` David Presotto
  2003-06-10 17:17     ` Dan Cross
  2 siblings, 0 replies; 14+ messages in thread
From: boyd, rounin @ 2003-06-10  6:25 UTC (permalink / raw)
  To: 9fans

> the password change doesn't fly around
> in the clear anymore ...

sure, i was thinking old 9p.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] change password from a terminal?
  2003-06-10  6:10   ` Russ Cox
  2003-06-10  6:25     ` boyd, rounin
@ 2003-06-10 11:49     ` David Presotto
  2003-06-10 17:20       ` Dan Cross
  2003-06-10 17:17     ` Dan Cross
  2 siblings, 1 reply; 14+ messages in thread
From: David Presotto @ 2003-06-10 11:49 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 59 bytes --]

I'll change passwd to not require service=terminal anymore.

[-- Attachment #2: Type: message/rfc822, Size: 1737 bytes --]

From: "Russ Cox" <rsc@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] change password from a terminal?
Date: Tue, 10 Jun 2003 02:10:45 -0400
Message-ID: <332f08827184f9626b4af6a39f4fe390@plan9.bell-labs.com>

> however, from the terminal it must be a 'local' window to
> avoid the password change flying around _in the clear_.

the password change doesn't fly around
in the clear anymore -- cpu connections
are encrypted.  i type "service=terminal passwd"
all the time.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] change password from a terminal?
  2003-06-10  6:10   ` Russ Cox
  2003-06-10  6:25     ` boyd, rounin
  2003-06-10 11:49     ` David Presotto
@ 2003-06-10 17:17     ` Dan Cross
  2 siblings, 0 replies; 14+ messages in thread
From: Dan Cross @ 2003-06-10 17:17 UTC (permalink / raw)
  To: 9fans

"Russ Cox" <rsc@plan9.bell-labs.com> writes:
> the password change doesn't fly around
> in the clear anymore -- cpu connections
> are encrypted.  i type "service=terminal passwd"
> all the time.

This begs the question; is there any reason to check the service when
changing one's password anymore?

	- Dan C.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] change password from a terminal?
  2003-06-10 11:49     ` David Presotto
@ 2003-06-10 17:20       ` Dan Cross
  0 siblings, 0 replies; 14+ messages in thread
From: Dan Cross @ 2003-06-10 17:20 UTC (permalink / raw)
  To: 9fans

David Presotto <presotto@closedmind.org> writes:
> I'll change passwd to not require service=terminal anymore.

Oh.  Uhh, nevermind my last post.

	- Dan C.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* [9fans] lookman
  2003-06-10  6:20   ` YAMANASHI Takeshi
@ 2003-06-17 15:04     ` rog
  0 siblings, 0 replies; 14+ messages in thread
From: rog @ 2003-06-17 15:04 UTC (permalink / raw)
  To: 9fans

> P.S.
> I will write on my white-board `lookman ordinary_unix_command`
> a considerable times.

that reminds me.
i've been using the following version of lookman for ages now, and
often find it more useful than the one distributed.

it does the usual keyword lookup but does a grep too so that you get
some immediate context for the hits.

e.g.
% lookman serial
9p(2)
	               fully terminate the serial conversation once the file
draw(2)
	               Turns on or off debugging output (usually to a serial
html(2)
	          serial number for the form within the document.  Name is the
	          Fbutton, Fselect or Ftextarea.  Fieldid is a serial number
	          Tableid is a serial number for the table within the docu-
	          Cellid provides a serial number for the cell within the
memdraw(2)
	          the kernel, iprint prints to a serial line rather than the
[...]

it has some obvious flaws, but is nonetheless useful, i think.

  cheers,
    rog.


#!/bin/rc
# Usage: lookman key ...
#	prints out the names of all manual pages containing all the given keywords
index=/sys/lib/man/lookman/index
t1=/tmp/look1.$pid
t2=/tmp/look2.$pid
fn sigexit sigint sighup sigterm{
	rm -f $t1 $t2
	exit 1
}
*=`{echo $*|tr A-Z a-z|tr -dc 'a-z \012'}	# fold case, delete funny chars
if(~ $#* 0){
	echo Usage: lookman key ... >/fd/2
	exit 1
}
look -x $1 $index|sed 's/.*	//'|sort -u >$t1
allkey=$*
shift
for(i in $*){
	look -x $i $index|sed 's/.*	//'|sort -u|
		awk 'BEGIN {
			while (getline < "'$t1'" > 0) table[$0] = 1;
			}
			{ if (table[$0]) print }
			' > $t2
	mv $t2 $t1
}
for (i in `{sort $t1}) {
	echo $i | sed 's:/sys/man/([0-9])/(.*):\2(\1):'
	for (j in $allkey) {
		nroff -man $i | grep -i -e $j | sed 's/^/	/'
	}
}

rm -f $t1 $t2
exit 0



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] lookman
  2006-09-12 15:08 Skip Tavakkolian
@ 2006-09-13  1:07 ` erik quanstrom
  0 siblings, 0 replies; 14+ messages in thread
From: erik quanstrom @ 2006-09-13  1:07 UTC (permalink / raw)
  To: 9fans

isn't the current (undocumented) convention to delete the punctuation.  as in "man upasfs"
not "man upas/fs"?

- erik


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [9fans] lookman
@ 2006-09-12 15:08 Skip Tavakkolian
  2006-09-13  1:07 ` erik quanstrom
  0 siblings, 1 reply; 14+ messages in thread
From: Skip Tavakkolian @ 2006-09-12 15:08 UTC (permalink / raw)
  To: 9fans

lookman filters out '.' (keys.who). is it worth changing?



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2006-09-13  1:07 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-10  4:24 [9fans] change password from a terminal? YAMANASHI Takeshi
2003-06-10  4:30 ` boyd, rounin
2003-06-10  5:03   ` YAMANASHI Takeshi
2003-06-10  6:24     ` boyd, rounin
2003-06-10  6:10   ` Russ Cox
2003-06-10  6:25     ` boyd, rounin
2003-06-10 11:49     ` David Presotto
2003-06-10 17:20       ` Dan Cross
2003-06-10 17:17     ` Dan Cross
2003-06-10  6:11 ` Russ Cox
2003-06-10  6:20   ` YAMANASHI Takeshi
2003-06-17 15:04     ` [9fans] lookman rog
2006-09-12 15:08 Skip Tavakkolian
2006-09-13  1:07 ` erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).