archer%segin4.segin.fr@relay.prime.com (Vincent Archer) (11/06/90)
I've been working for some time now on the subject of the administration of Minix (between two attempts to write a REALLY Posix cp. What a pain in the neck this one). As Fred van Kempen <waltje@minixug.mugnet.org> says: >Hmm. It seems like many people have difficulties in using the GETTY program. I couldn't agree more :-). That's why I posted some time ago (in September) an INIT replacement to the Minix referee's group. It was a SysV look-alike INIT - more so than NLMUG's INIT - complete with init, telinit, inittab and all the stuff. Apart from a few bugs, it was good, but looking too much like an AT&T product. In short, I dropped the idea of posting it to the net, just to be safe (Dr. T was worried about copyright and lawsuits - for good reasons). Acting now from a description coming out of comp.protocols.tcp-ip.domains that Glen Overby kindly forwarded to me, I'm now working on a totally different approach to INIT behaviour/control. When I'm satisfied with it, I'll post the results first to the referee's group, then (maybe) to the net. [What worries me is Inter-process Communication. I've got 'complex' commands to send to INIT, and 'complex' results coming out of it. Any idea how to do it properly under Minix?] >At the end of this article you will find the sources of the latest versions >of my INIT, GETTY and MODEM programs, with example system files. As part of the INIT package, there were a few bug fixes, all related to the way utmp/wtmp (and btmp) are managed. Since these fixes do not depend on the INIT you're using, they can be distributed over the net. You'll find an archive (with a ReadMe) at the end of the article. If you move to the new getty.c, it is fixed also (quick work...)! The lucky Minix referees that had my package will find nothing really new. There's an additional fix to write.c and a new command, wall (write all). [Fred, a separate message is sent for you with comments/fixes for INIT. If you don't get it soon, mail me...] -------------------------------------------------------------- table !"#$%&'()*+,-./0123456789:;<=>? @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ begin 644 xtmp.shar.Z M'YV-9<:@>0,"#X@6(*24"4.F21D%<\J0 7'BA1<L+^:\V'@"A(^$"QN6 <&#z M!\47)Q1@40'"S!TZ;>"X&), A9LR=T",>=.F31@W$].XT<G3)U"-+F'*')-"y MI4HJ:-+,(=KSYT0S;^3XI#-5*(@P(-#4,=I"3L@P8MB,Q*H5!!TT(W>ZH5-Fx M[M0W9MS"+:A4)0HQ2EF J!,8Q,N8*4"0"4,';9B(<UR 2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B@#G!Y'/XI/GVI$?64@]>S"U!_&5$^WO,(0c M:/6O/M:K'%I/\];[CE-A*>Q-1RSBPQ*L?=7@2A<":<%!+@[--\:1_6-M&*.'b MA"RN% PF 9\X!KPP,'""CQC,.=SM/ X\GD/P"1[!*?AX4?6I7E=HX/:UP7MTa M8Q]^9X8]?/ !U-D.2^@AXK]YXH>%D> ];D2G5_62RE@8F1^C)S@X8OO$:S'Kz M6%'AYDV-ETO.X?NY;C[T%-;_O.YKLO?8 =]/A[&U[Y%IOV=10 KVZAN0*/ 9y M L.' P;_W"7\F(# -:;#7_@1GT9BLXI?\=/BQ;?@R63C:W YP,'3N0</CR!\x MEOW=DAY <[H/SL8J=.1/8I-OPAD*64[Y+.$R6!$;TM\"!MV*^8!E4M?\@XSSw 1._K.?^F"4N0K!?V=57Q0GP%Ov u end _________ |\___/| Vincent Archer | \ / | Email: archer%segin4.segin.fr@relay.prime.com | /|\ | |// \\| -+-----+- "Time is running fast..."
nemossan@uitec.ac.jp (Sakurao NEMOTO) (11/08/90)
Thank you very much "utmp/wtmp-related patches". I've tried several of them, and found curious phenomena on "last"-command. After I've issued "login" command while I'm logged-in, I'm still login (may be forever). This is the output of PH-minix-1.5-PC-version, ------------------------------------------------------------------------ $ /usr/bin/last nemossan tty0 Thu Nov 8 19:12 still logged in nemossan tty0 Thu Nov 8 19:10 - 19:12 (00:01) <-- here login'ed. nemossan tty0 Thu Nov 8 15:06 - 19:10 (04:04) nemossan tty0 Thu Nov 8 14:38 - 15:05 (00:26) reboot ~ Thu Nov 8 14:38 | | wtmp begins Wed Oct 31 23:20 ------------------------------------------------------------------------ And this is by new "last" command ------------------------------------------------------------------------ $ /usr/nemossan/bin/last nemossan tty0 Thu Nov 8 19:12 still logged in nemossan tty0 Thu Nov 8 19:10 - 19:12 (00:01) nemossan tty0 Thu Nov 8 15:06 still logged in ??? nemossan tty0 Thu Nov 8 14:38 - 15:05 (00:27) reboot ~ Thu Nov 8 14:38 | | wtmp begin Wed Oct 31 23:20 ------------------------------------------------------------------------ After 4 hours of logging, I've issued "login" command, with neither ^D nor exit-command. Here are directories of both last's. ------------------------------------------------------------------------ $ ls -l /usr/bin/last <--- PH-minix-1.5 total 12 -rwxr-xr-x 1 bin 11080 Oct 31 22:50 /usr/bin/last $ ls -l /usr/nemossan/bin/last <--- from <35537@nigel.ee.udel.edu> total 9 -rwxr-xr-x 1 nemossan 7860 Nov 8 16:06 /usr/nemossan/bin/last Nov 08 '90 (Thu) 20:04 JST(+9:00) nemossan@uitec.ac.jp
archer%segin4.segin.fr@relay.prime.com (Vincent Archer) (11/08/90)
In message of 8 Nov 90 11:16:41 GMT, nemossan@uitec.ac.jp said : > Thank you very much "utmp/wtmp-related patches". I've tried several of > them, and found curious phenomena on "last"-command. After I've issued > "login" command while I'm logged-in, I'm still login (may be forever). Yep, that's the problem with login. It doesn't check wether or not the utmp (the who-file) says you already commited a login. So you can log-in twice... > This is the output of PH-minix-1.5-PC-version, [beautiful output deleted... :-) ] > And this is by new "last" command > ------------------------------------------------------------------------ > $ /usr/nemossan/bin/last > nemossan tty0 Thu Nov 8 19:12 still logged in > nemossan tty0 Thu Nov 8 19:10 - 19:12 (00:01) > nemossan tty0 Thu Nov 8 15:06 still logged in ??? > nemossan tty0 Thu Nov 8 14:38 - 15:05 (00:27) > reboot ~ Thu Nov 8 14:38 If you use fwtmp to dump the /usr/adm/wtmp contents, you'll see something like (I don't remember how it is displayed ;->): t0 nemossan tty0 pid3 login 19:12 t0 nemossan tty0 pid3 exit 19:12 t0 nemossan tty0 pid2 login 19:10 t0 nemossan tty0 pid1 login 15:06 t0 nemossan tty0 pid1 exit 15:05 Now, what does the new command last does with this: It notes down that nemossan logged-in at 19:12, so it's still logged in (line 1) It notes down that nemossan did exit at 19:12 for tty0 It notes down that nemossan did login at 19:10 on tty0. So 2 minutes login time... (line 2) The association can be thrown away, we've found nemossan's login-logout (That's the trick) It notes down that nemossan did login at 15:06. Since no exit can be found, the nemossan is still logged in! (line 3) and so on... login should not record in wtmp (nor in utmp) a login-over-login attempt. Another example of what you can do is: $ who root tty0 18:10 $ login ast ast> who ast tty0 18:15 ast> ^D $ who ast tty0 18:15 $ whoami root :-) Here's a quick fix to login to throw away this behaviour. In wtmp(), add the following test at the beginning: if (getppid() > 2) return; (2 if you use FvK's /etc/init. 1 if you use the old init/my init) This suppress spurious accounting if you didn't come from INIT. The real fix would be to FORBIDE login to execute if it's father isn't INIT (that's what real unixes - most of them - do)... I'll post a more robust cdiff (that solves the remaining "exec login" problem) Monday. _________ |\___/| Vincent Archer | \ / | Email: archer%segin4.segin.fr@relay.prime.com | /|\ | |// \\| -+-----+- "Time is running fast..."