* Re: Yppasswd As Root Illogical Captain.
1995-07-19 4:00 Yppasswd As Root Illogical Captain jim
@ 1995-07-19 4:00 ` Mike Iglesias
1995-07-20 4:00 ` PAUL D. CHAPIN
1995-07-20 4:00 ` Michael Sternberg
` (2 subsequent siblings)
3 siblings, 1 reply; 12+ messages in thread
From: Mike Iglesias @ 1995-07-19 4:00 UTC (permalink / raw)
In article <806153650.6742@sps.siemens.co.uk>,
jim <ralphc@sps.siemens.co.uk> wrote:
>
>Under OSF 3.2 on Alphas you can type `yppasswd user' as root to change
>the password of the user. But it seems you must know the user's old
>password, you aren't allowed, or given the option or typing in root's
>password as justification for your action.
>
>This seems to make the argument redundant, and leaves no way for root to
>change the password of a user without modifying the password file
>directly.
That's the way the NIS password changing protocol works. It has to
validate you somehow, and you may not want root on one of the NIS clients
to be able to change passwords for anyone in the NIS domain.
You'd have the same problem on a Sun, SGI, etc. I wish there was a way
to do it, like allow root on the NIS master to change the password.
--
Mike Iglesias Internet: iglesias@draco.acs.uci.edu
University of California, Irvine phone: (714) 824-6926
Office of Academic Computing FAX: (714) 824-2069
Central Computing Support
^ permalink raw reply [flat|nested] 12+ messages in thread
* Yppasswd As Root Illogical Captain.
@ 1995-07-19 4:00 jim
1995-07-19 4:00 ` Mike Iglesias
` (3 more replies)
0 siblings, 4 replies; 12+ messages in thread
From: jim @ 1995-07-19 4:00 UTC (permalink / raw)
Under OSF 3.2 on Alphas you can type `yppasswd user' as root to change
the password of the user. But it seems you must know the user's old
password, you aren't allowed, or given the option or typing in root's
password as justification for your action.
This seems to make the argument redundant, and leaves no way for root to
change the password of a user without modifying the password file
directly.
Is this illogical or am I missing something.
TIA, Ralph.
--..__..--''--..__..--''--..__..--''--..__..--''--..__..--''--..__..--
Ralph Corderoy. ralphc@sps.siemens.co.uk. Phone: UK 01202-408769.
Siemens Plessey Systems, Grange Road, Christchurch, Dorset. BH23 4JE
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Yppasswd As Root Illogical Captain.
1995-07-19 4:00 Yppasswd As Root Illogical Captain jim
1995-07-19 4:00 ` Mike Iglesias
@ 1995-07-20 4:00 ` Michael Sternberg
1995-07-21 4:00 ` Ray Bellis
1995-07-25 4:00 ` Ray Bellis
3 siblings, 0 replies; 12+ messages in thread
From: Michael Sternberg @ 1995-07-20 4:00 UTC (permalink / raw)
ralphc@sps.siemens.co.uk (jim) writes:
>Under OSF 3.2 on Alphas you can type `yppasswd user' as root to change
>the password of the user. But it seems you must know the user's old
>password, you aren't allowed, or given the option or typing in root's
>password as justification for your action.
NIS is a distributed system. Doesn't make sense that Anyone who has
root access to Mary Random Secretary's workstation can change any NIS
users's passwd, does it? If you are on the server, and use /etc/passwd
as the source for the NIS map, then you can indeed change a user's
password as root. I recommend passwd(1) for that purpose.
Michael
--
Michael Sternberg, Physics Research Scholar mgs@po.cwru.edu
Case Western Reserve University Lab phone: (216) 368 4034
"Who disturrrbs me at this time?" << Zaphod Beeblebrox IV >>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Yppasswd As Root Illogical Captain.
1995-07-19 4:00 ` Mike Iglesias
@ 1995-07-20 4:00 ` PAUL D. CHAPIN
1995-07-20 4:00 ` Mike Iglesias
0 siblings, 1 reply; 12+ messages in thread
From: PAUL D. CHAPIN @ 1995-07-20 4:00 UTC (permalink / raw)
Mike Iglesias (iglesias@draco.acs.uci.edu) wrote:
: That's the way the NIS password changing protocol works. It has to
: validate you somehow, and you may not want root on one of the NIS clients
: to be able to change passwords for anyone in the NIS domain.
Given that I have to change upwards of ten passwords a week of users
who have forgotten theirs, this approach is not acceptable. If
there's no easy work around, NIS is dead on this campus. Personally,
I'm not going to bring a system into the NIS happy family unless I
trust the root. Since I'm root on every system here, that's not a real
issue.
--
Paul Chapin
A) Unix Systems Manager
B) User Services Coordinator
C) Information Coordinator
D) All of the above
Amherst College
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Yppasswd As Root Illogical Captain.
1995-07-20 4:00 ` PAUL D. CHAPIN
@ 1995-07-20 4:00 ` Mike Iglesias
0 siblings, 0 replies; 12+ messages in thread
From: Mike Iglesias @ 1995-07-20 4:00 UTC (permalink / raw)
In article <3umbg6$grn@amhux3.amherst.edu>,
PAUL D. CHAPIN <pdchapin@news.amherst.edu> wrote:
>Given that I have to change upwards of ten passwords a week of users
>who have forgotten theirs, this approach is not acceptable. If
>there's no easy work around, NIS is dead on this campus. Personally,
>I'm not going to bring a system into the NIS happy family unless I
>trust the root. Since I'm root on every system here, that's not a real
>issue.
You could /etc/passwd on the NIS master the "master" file for the passwd
maps. Then you can use passwd to change passwords, followed by remaking
the maps. This solution does prevent you from restricting access to the
NIS master though.
If the above solution is not acceptable, your other choice would be to
write a perl or C program to muck with the file you're building the maps
from. The perl book has a passwd program in it, and the source is available
from
ftp://ftp.ora.com/pub/examples/nutshell/programming_perl/perl.tar.Z
Note that this passwd program won't let you use dictionary words, two word
combinations, etc as passwords.
--
Mike Iglesias Internet: iglesias@draco.acs.uci.edu
University of California, Irvine phone: (714) 824-6926
Office of Academic Computing FAX: (714) 824-2069
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Yppasswd As Root Illogical Captain.
1995-07-21 4:00 ` Ray Bellis
@ 1995-07-21 4:00 ` PAUL D. CHAPIN
1995-07-23 4:00 ` Peter Mayne
1 sibling, 0 replies; 12+ messages in thread
From: PAUL D. CHAPIN @ 1995-07-21 4:00 UTC (permalink / raw)
Ray Bellis (Ray.Bellis@psy.ox.ac.uk) wrote:
: In article <3umbg6$grn@amhux3.amherst.edu> pdchapin@news.amherst.edu (PAUL D. CHAPIN) writes:
: Given that I have to change upwards of ten passwords a week of users
: who have forgotten theirs, this approach is not acceptable. If
: there's no easy work around, NIS is dead on this campus. Personally,
: I'm not going to bring a system into the NIS happy family unless I
: trust the root. Since I'm root on every system here, that's not a real
: issue.
: It should be a trivial exercise for any competent sysadmin to write
: a shell script...
You assume I'm competent :-) Actually, I was drafted into this
position as the person who would be least incompetent.
I have a basic problem with a system philosophy that says,
"well, this really doesn't make any sense but they can always write a
script to get around the problem we've created".
--
Paul Chapin
A) Unix Systems Manager
B) User Services Coordinator
C) Information Coordinator
D) All of the above
Amherst College
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Yppasswd As Root Illogical Captain.
1995-07-19 4:00 Yppasswd As Root Illogical Captain jim
1995-07-19 4:00 ` Mike Iglesias
1995-07-20 4:00 ` Michael Sternberg
@ 1995-07-21 4:00 ` Ray Bellis
1995-07-21 4:00 ` PAUL D. CHAPIN
1995-07-23 4:00 ` Peter Mayne
1995-07-25 4:00 ` Ray Bellis
3 siblings, 2 replies; 12+ messages in thread
From: Ray Bellis @ 1995-07-21 4:00 UTC (permalink / raw)
In article <3umbg6$grn@amhux3.amherst.edu> pdchapin@news.amherst.edu (PAUL D. CHAPIN) writes:
Mike Iglesias (iglesias@draco.acs.uci.edu) wrote:
: That's the way the NIS password changing protocol works. It has to
: validate you somehow, and you may not want root on one of the NIS clients
: to be able to change passwords for anyone in the NIS domain.
Given that I have to change upwards of ten passwords a week of users
who have forgotten theirs, this approach is not acceptable. If
there's no easy work around, NIS is dead on this campus. Personally,
I'm not going to bring a system into the NIS happy family unless I
trust the root. Since I'm root on every system here, that's not a real
issue.
It should be a trivial exercise for any competent sysadmin to write
a shell script which will blank out the encrypted password field in
the source for your NIS database (to be run on the NIS master, of
course). After rebuilding the NIS maps you would then just be able
to press `enter' when asked for the original password.
Ray.
--
Computing Officer, MRC Research Centre in Brain and Behaviour, Oxford
<http://www.mrc-bbc.ox.ac.uk/~rpb> <mailto:Ray.Bellis@psy.ox.ac.uk>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Yppasswd As Root Illogical Captain.
1995-07-21 4:00 ` Ray Bellis
1995-07-21 4:00 ` PAUL D. CHAPIN
@ 1995-07-23 4:00 ` Peter Mayne
1995-07-24 4:00 ` g0daeniken
1995-07-25 4:00 ` doug.berry
1 sibling, 2 replies; 12+ messages in thread
From: Peter Mayne @ 1995-07-23 4:00 UTC (permalink / raw)
In article <RAY.BELLIS.95Jul21082334@axp01.mrc-bbc.ox.ac.uk>
Ray.Bellis@psy.ox.ac.uk (Ray Bellis) wrote:
> It should be a trivial exercise for any competent sysadmin to write
> a shell script which will blank out the encrypted password field in
> the source for your NIS database (to be run on the NIS master, of
> course). After rebuilding the NIS maps you would then just be able
> to press `enter' when asked for the original password.
But this leaves a great big security hole (null password) between the
time that the maps get rebuilt and the time that you change the password.
Anybody could log on as that user.
PJDM
--
Peter Mayne
Digital Equipment Corporation (Australia)
Canberra, ACT
----
These are my opinions, and have nothing to do with Digital.
The truth is out there, but not necessarily in here.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Yppasswd As Root Illogical Captain.
1995-07-23 4:00 ` Peter Mayne
@ 1995-07-24 4:00 ` g0daeniken
1995-07-26 4:00 ` Mark W. Watson
1995-07-25 4:00 ` doug.berry
1 sibling, 1 reply; 12+ messages in thread
From: g0daeniken @ 1995-07-24 4:00 UTC (permalink / raw)
In article <3usi6m$ph5@mrnews.mro.dec.com>, Peter.Mayne@cao.mts.dec.com (Peter Mayne) writes:
> In article <RAY.BELLIS.95Jul21082334@axp01.mrc-bbc.ox.ac.uk>
> Ray.Bellis@psy.ox.ac.uk (Ray Bellis) wrote:
>
>> It should be a trivial exercise for any competent sysadmin to write
>> a shell script which will blank out the encrypted password field in
>> the source for your NIS database (to be run on the NIS master, of
>> course). After rebuilding the NIS maps you would then just be able
>> to press `enter' when asked for the original password.
>
> But this leaves a great big security hole (null password) between the
> time that the maps get rebuilt and the time that you change the password.
> Anybody could log on as that user.
Ok, but the same problem occurs when you blank out the source passwd field
manually. The script would at least minimize this security hole period.
Or do you know a better solution??
regards,
Eric
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Yppasswd As Root Illogical Captain.
1995-07-19 4:00 Yppasswd As Root Illogical Captain jim
` (2 preceding siblings ...)
1995-07-21 4:00 ` Ray Bellis
@ 1995-07-25 4:00 ` Ray Bellis
3 siblings, 0 replies; 12+ messages in thread
From: Ray Bellis @ 1995-07-25 4:00 UTC (permalink / raw)
In article <3usi6m$ph5@mrnews.mro.dec.com> Peter.Mayne@cao.mts.dec.com (Peter Mayne) writes:
In article <RAY.BELLIS.95Jul21082334@axp01.mrc-bbc.ox.ac.uk>
Ray.Bellis@psy.ox.ac.uk (Ray Bellis) wrote:
> It should be a trivial exercise for any competent sysadmin to write
> a shell script which will blank out the encrypted password field in
> the source for your NIS database (to be run on the NIS master, of
> course). After rebuilding the NIS maps you would then just be able
> to press `enter' when asked for the original password.
But this leaves a great big security hole (null password) between the
time that the maps get rebuilt and the time that you change the password.
Anybody could log on as that user.
You're right, of course. Then again, could anyone say that the hole
introduced is any worse a hole than running NIS in the first place? ;-)
How about getting the shell script to insert a real encrypted password
into the /var/yp/src/passwd file instead of a blank field. That surely
would be a lot more secure. The sysadmin could then type in this known
dummy password at the yppasswd prompt.
Actually, if you knew exactly what lockfile (/var/yp/.ptmp ?) is used
by rpc.yppasswdd it would be very easy to write a C program to read the
password file and insert the new password for you, having chosen a
random `salt' for the crypt(3) function (C2 enhanced security permitting).
Ray.
--
Computing Officer, MRC Research Centre in Brain and Behaviour, Oxford
<http://www.mrc-bbc.ox.ac.uk/~rpb> <mailto:Ray.Bellis@psy.ox.ac.uk>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Yppasswd As Root Illogical Captain.
1995-07-23 4:00 ` Peter Mayne
1995-07-24 4:00 ` g0daeniken
@ 1995-07-25 4:00 ` doug.berry
1 sibling, 0 replies; 12+ messages in thread
From: doug.berry @ 1995-07-25 4:00 UTC (permalink / raw)
>> It should be a trivial exercise for any competent sysadmin to write
>> a shell script which will blank out the encrypted password field in
>> the source for your NIS database (to be run on the NIS master, of
>> course). After rebuilding the NIS maps you would then just be able
>> to press `enter' when asked for the original password.
>
>But this leaves a great big security hole (null password) between the
>time that the maps get rebuilt and the time that you change the password.
>Anybody could log on as that user.
>
>PJDM
>--
>Peter Mayne
>Digital Equipment Corporation (Australia)
>Canberra, ACT
>----
>These are my opinions, and have nothing to do with Digital.
>The truth is out there, but not necessarily in here.
>
That window can be narrowed by changing the password as soon as you write out
tha password file... The killer window is when someone changes their password
while you have the file open.
yp/src/passwd.ptmp is the _undocumented_ hack to lock the password file from
yppasswdd. It took us many support calls to DEC to find this.
hope this helps someone...
doug
--
quote of the month...
in <199505160421.AA16536@world.std.com> bzs@world.std.com said,
"Rule #1 of systems trouble shooting: It's either angry or hungry."
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Yppasswd As Root Illogical Captain.
1995-07-24 4:00 ` g0daeniken
@ 1995-07-26 4:00 ` Mark W. Watson
0 siblings, 0 replies; 12+ messages in thread
From: Mark W. Watson @ 1995-07-26 4:00 UTC (permalink / raw)
In article <1995Jul24.105816.3340@sgcl1.unisg.ch>,
g0daeniken@sgcl1.unisg.ch wrote:
> Ok, but the same problem occurs when you blank out the source passwd field
> manually. The script would at least minimize this security hole period.
> Or do you know a better solution??
>
> regards,
> Eric
I dont blank the password field, but put the root encrypted password in there.
I then take the user through yppasswd to the 'new password' prompt and let
them type. No problem, no window of opportunity...
Have fun,
--
Mark W. Watson
Unix/PC/Mac/VMS Systems and Network Administration
The Walter and Eliza Hall Institute of Medical Research
P. O. Royal Melbourne Hospital
Parkville VIC 3050
Phone: +61 3 9345 2555 Fax: +61 3 9347 0852 E-Mail: mark@wehi.edu.au
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~1995-07-26 4:00 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-07-19 4:00 Yppasswd As Root Illogical Captain jim
1995-07-19 4:00 ` Mike Iglesias
1995-07-20 4:00 ` PAUL D. CHAPIN
1995-07-20 4:00 ` Mike Iglesias
1995-07-20 4:00 ` Michael Sternberg
1995-07-21 4:00 ` Ray Bellis
1995-07-21 4:00 ` PAUL D. CHAPIN
1995-07-23 4:00 ` Peter Mayne
1995-07-24 4:00 ` g0daeniken
1995-07-26 4:00 ` Mark W. Watson
1995-07-25 4:00 ` doug.berry
1995-07-25 4:00 ` Ray Bellis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox