home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / wizards / 3834 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  17.7 KB

  1. Path: sparky!uunet!haven.umd.edu!mimsy!afterlife!adm!news
  2. From: postmaster@vd1.hanscom.af.mil (SMTP MAILER)
  3. Newsgroups: comp.unix.wizards
  4. Subject: Mail Delivery Problem
  5. Message-ID: <32396@adm.brl.mil>
  6. Date: 7 Sep 92 21:30:57 GMT
  7. Sender: news@adm.brl.mil
  8. Lines: 471
  9.  
  10.  
  11.  ----Reason for mail failure follows----
  12. Sending mail to recipient(s) woodfordm :
  13.   Couldn't make final delivery.
  14.  
  15.  ----Transcript of message follows----
  16. Received: from gw1.hanscom.af.mil by vd1.hanscom.af.mil with SMTP ; 
  17.           Mon,  7 Sep 92 14:18:31 EST
  18. Date: 6 Sep 92 02:12:00 EST
  19. From: UNIX-WIZARDS@BRL.MIL
  20. Subject: UNIX-WIZARDS Digest  V15#139
  21. To: "woodfordm" <woodfordm@vd1.hanscom.af.mil>
  22.  
  23. Return-Path: <unix-wizards-request@sem.brl.mil>
  24. Received: from SEM.BRL.MIL by gw1.hanscom.af.mil with SMTP ; 
  25.           Sun,  6 Sep 92 02:10:42 EST
  26. Received: by SEM.BRL.MIL id aa17470; 5 Sep 92 21:15 EDT
  27. Received: from SEM.BRL.MIL by SEM.BRL.MIL id aa16025; 5 Sep 92 15:29 EDT
  28. Received: from sem.brl.mil by SEM.BRL.MIL id aa15975; 5 Sep 92 15:15 EDT
  29. Date:       Sat, 05 Sep 92 15:15:12 EST
  30. From:       The Moderator (Mike Muuss) <Unix-Wizards-Request@BRL.MIL>
  31. To:         UNIX-WIZARDS@BRL.MIL
  32. Reply-To:   UNIX-WIZARDS@BRL.MIL
  33. Subject:    UNIX-WIZARDS Digest  V15#139
  34. Message-ID:  <9209051515.aa15975@SEM.BRL.MIL>
  35.  
  36. UNIX-WIZARDS Digest          Sat, 05 Sep 1992              V15#139
  37.  
  38. Today's Topics:
  39.            Re: Implementation of Sys V. based message queues
  40.                 Re: uncompressing an incomplete tar file
  41.                               nroff, troff
  42.                            Re: Disk bad block
  43.                          Unique Job Opportunity
  44.                                fingering
  45.        Re: SCO ODT 1.0 (1.0.0y):  UUCP hangup bugs; uugetty fix?
  46.                         Re: cd'ing to a dir from
  47.                        Re: correcton: restrictin
  48.  
  49. -----------------------------------------------------------------
  50.  
  51. From: "W. Richard Stevens" <rstevens@noao.edu>
  52. Subject: Re: Implementation of Sys V. based message queues
  53. Date: 3 Sep 92 23:28:07 GMT
  54. Sender: news@noao.edu
  55. Nntp-Posting-Host: gemini.tuc.noao.edu
  56. To:       unix-wizards@sem.brl.mil
  57.  
  58. >> I would like to be able to use select(2) to multiplex descriptor based
  59. >> objects (sockets) as well as the message queue.
  60. >
  61. > I could be mistaken, but my experience with using Sys V IPC with select()
  62. > is:  'aint no way...
  63.  
  64. Believe it or not, I just found out that AIX on the RS/6000 actually
  65. provides a function named select() with a different interface that
  66. actually lets you multiplex both descriptors and message queues.
  67. When I saw their interface I almost barfed.
  68.  
  69.     Rich Stevens  (rstevens@noao.edu)
  70.  
  71. -----------------------------
  72.  
  73. From: Terry Lambert <terry@thisbe.eng.sandy.novell.com>
  74. Subject: Re: uncompressing an incomplete tar file
  75. Date: 2 Sep 92 19:45:27 GMT
  76. Sender: NetNews <news@gateway.novell.com>
  77. Nntp-Posting-Host: thisbe.eng.sandy.novell.com
  78. To:       unix-wizards@sem.brl.mil
  79.  
  80. In article <23015@sybase.sybase.com> brijesh@tzu.sybase.com writes:
  81. [ ... tar stuff on, but it doesn't tar off ... ]
  82. >3) TARed it onto TK50 tapes (~150 Meg)
  83.  
  84. TK50 drives will only hold ~60 Meg.  Maybe you meant a TK70?  If not,
  85. this could be your problem.
  86.  
  87.  
  88.                     Terry Lambert
  89.                     terry_lambert@gateway.novell.com
  90.                     terry@icarus.weber.edu
  91.  
  92. ---
  93. Disclaimer:  Any opinions in this posting are my own and not those of
  94. my present or previous employers.
  95.  
  96. -----------------------------
  97.  
  98. From: "Mr. Michael Grabenstein; ACS (GUEST" <grabenst@umbc4.umbc.edu>
  99. MMDF-Warning:  Parse error in original version of preceding line at BRL.MIL
  100. Subject: nroff, troff
  101. Date: 1 Sep 92 21:26:08 GMT
  102. Sender: News posting account <newspost@umbc3.umbc.edu>
  103. To:       unix-wizards@sem.brl.mil
  104.  
  105.  
  106.     I am tring to get nroff or troff to paginate a textfile.
  107. I just need to center a few things, indent under the headings.
  108. Simple stuff, I have looked into the macros me and ms, but have
  109. not had any luck. The commands I am getting in the man don't seem
  110. to do the same thing on the screen (or printer). I know O'Riely
  111. makes a a book about this, but I did not want to have to buy it
  112. (or read it). The man page I get on nroff says nothing about its
  113. text commands, just its command line arguments. I am using a Sun
  114. (SunOS 4.1.1) and printing to a DecScript laser printer. The Dec
  115. 5000 is also my print spooler. any suggestions anyone?
  116.     Thanks!
  117.  
  118. Later,
  119.     Mike
  120.     ZMEG@AACC.bitnet
  121.     or grabenst@umbc3.umbc.edu
  122. }{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{
  123. The universe -- The ultimate fractal. 
  124.     --Personal theroy
  125.  
  126. -----------------------------
  127.  
  128. From: Dave Olson <olson@anchor.esd.sgi.com>
  129. Subject: Re: Disk bad block
  130. Date: 3 Sep 92 02:14:12 GMT
  131. Sender: Net News <news@zuni.esd.sgi.com>
  132. To:       unix-wizards@sem.brl.mil
  133.  
  134. In <1992Sep2.191247.1253@tamsun.tamu.edu> pnarayan@cs.tamu.edu (P S Narayan) writes:
  135. | Could any one tell me how does the file manager in the Unix File System
  136. | detect a bad block and keep a track of it so that it is never allocated
  137. | to any file. What is badness in a block ?
  138. | I imagine the bad block list  is kept in the zeroth block of the  filesystem.
  139.  
  140. You need to be far more specific, as to what unix version, and what
  141. kind of disks you are referring to; there is tremendous variation.
  142. --
  143. Let no one tell me that silence gives consent,  |   Dave Olson
  144. because whoever is silent dissents.             |   Silicon Graphics, Inc.
  145.     Maria Isabel Barreno                        |   olson@sgi.com
  146.  
  147. -----------------------------
  148.  
  149. From: MacKenzie Tuttle <tuttle@deshaw.com>
  150. Subject: Unique Job Opportunity
  151. Date: 3 Sep 92 19:17:23 GMT
  152. Sender: news@deshaw.com
  153. Originator: tuttle@sun21
  154. To:       unix-wizards@sem.brl.mil
  155.  
  156. WANTED:
  157.  
  158. UNIX WIZARD TO HEAD OUR SUPERSTAR SYSTEMS TEAM
  159.                   
  160.  
  161. D. E. Shaw & Co. is a small, young, highly capitalized, extremely
  162. successful Wall Street firm specializing in quantitative finance and
  163. computational trading.  We are looking to hire Systems Programmers to
  164. join a select team of software engineers involved in building
  165. state-of-the-art computer systems that trade billions of dollars worth
  166. of securities.
  167.  
  168. NOTE: We are _not_ a typical financial firm.  We are a group of
  169. financial hackers out to beat the market.  We do not wear suits and
  170. ties.
  171.  
  172. Potential six-figure salary for Head of Systems.  Extremely well
  173. compensated junior positions are available as well.
  174.  
  175. The successful candidate will have strong knowledge of UNIX, C, and
  176. various distributed and networked environments.  Four or more years
  177. experience in systems programming or administration, and an
  178. undergraduate or graduate degree in Computer Science or a related
  179. field, is required.
  180.  
  181. Responsibilities, depending on the position, include building
  182. distributed real-time applications and designing, supporting, and
  183. enhancing our networked computing environment.  It is our practice to
  184. compensate unusually gifted individuals at a level exceeding that of
  185. the market. Applicants are encouraged to forward their resumes in
  186. confidence to:
  187.  
  188.                   MacKenzie Tuttle
  189.                   D. E. Shaw & Co.
  190.                   Tower 45, 39th Floor
  191.                   120 West 45th Street
  192.                   New York, NY  10036
  193.  
  194.                   email: recruiting@deshaw.com
  195.                   Fax: (212) 478-0101
  196.  
  197. -- 
  198. Mackenzie Tuttle        D. E. Shaw & Co., New York, NY
  199. tuttle@deshaw.com        (212)478-0000
  200.  
  201. -----------------------------
  202.  
  203. From: Benoit Robichaud <robichau@iro.umontreal.ca>
  204. Subject: fingering
  205. Date: 3 Sep 92 17:40:44 GMT
  206. Sender: news@iro.umontreal.ca
  207. To:       unix-wizards@sem.brl.mil
  208.  
  209.  
  210. May be those are FAQ but ....
  211.  
  212.     Is there a way to know if someone is :
  213.  
  214.     - "fingering" me ?
  215.     - trying do do "more" on one of my files (permitted or not) ?
  216.  
  217. thanks
  218. Benoit
  219.  
  220. -----------------------------
  221.  
  222. From: A Wizard of Earth C <terry@cs.weber.edu>
  223. Subject: Re: SCO ODT 1.0 (1.0.0y):  UUCP hangup bugs; uugetty fix?
  224. Keywords: uucp, uugetty, stty, hupcl, clocal
  225. Date: 4 Sep 92 06:37:04 GMT
  226. Sender: news@fcom.cc.utah.edu
  227. To:       unix-wizards@sem.brl.mil
  228.  
  229. In article <1992Sep03.222723.14461@tcsrtp.uucp> uunet!duke.cs.duke.edu!wolves!tcsrtp!royc writes:
  230. >
  231. >1)  If I use the modem control device (sat tty1A) so that DCD
  232. >  is listened to and causes hang up
  233. >    a)  stty clocal fails to alter behavior of uugetty
  234. >    b) uugetty fns inbound AOK but always talks even with '-r'
  235. >    c)  which in turn creates a lock file and stops outbound usage
  236. >    d)  I can't 'cu -l tty1A' until DCD is high ...
  237. >       (using DSR for DCD fixes)
  238.  
  239. The modem control device is definitely the correct one.  The problem appears
  240. to be that you have not set your modem so:
  241.  
  242. o    Respond to DTR
  243. o    Verbose replies
  244. o    Send Result codes
  245. o    No character echo    <---
  246. o    Autoanswer
  247. o    Respond to DCD        <---
  248. o    RJ11 single line
  249. o    The modem should listen to commands
  250.  
  251. (Items marked with "<---" are probably incorrect).
  252.  
  253. The switch settings for a Hayes Smartmodem 300 or 1200 are:
  254.  
  255.     1    up
  256.     2    up
  257.     3    down
  258.     4    down
  259.     5    up
  260.     6    up
  261.     7    up
  262.     8    down
  263.  
  264. An Avatek modem should have switched 6 and 7 down.  An additional switch
  265.     (can't remember which one) needs to be down for autoanswer.
  266. An NCR 1200 should have all switches but 1,2,6, and 9 up.
  267. A MicroCom 2400 should have switches 1, 5, and 6 up (on the front) and
  268.     switched 5 and 7 down (on the back)..
  269. A Peachtree 1200 modem should all switches but 3, 4, and 6 down.
  270. A US Robotics Courier or Microlink should have switches 3,4,8, and 9 down.
  271. A US Robotics Password should have all switches up.
  272. A "soft-programmed" modem should have the following commands typed at it:
  273.     AT&C0
  274.     AT&D1
  275.     AT&W
  276. You should reset to factory defaults before doing this.
  277.  
  278. >
  279. >... all on a 9pin connector.
  280. >
  281.  
  282. Also, for a 9 pin connector, the cable should force RTS high on the computer
  283. side by tying it to DTR (since 9 pin connectors are 1 pin short of full
  284. modem control, which requires 10 if chassis ground takes a pin).  Pins 4 and 5
  285. should be tied together (in the connector hood!  No connection to the cable!)
  286. on the modem side.
  287.  
  288. The PC's serial port is DTE.  A 9 pin DCE port (such as on an Altos) needs
  289. the following cable:
  290.  
  291.     2 --- 3
  292.     3 --- 2
  293.     5 --- 7
  294.     6 --- 8
  295.     4 -+- 20
  296.     8 -+
  297.  
  298. This indicates that 4 and 8 on the 9 pin computer side should be tied to pin
  299. 20 on the 25 pin modem side.
  300.  
  301. On 25 pin to 25 pin, 6 does not connect through -- instead, it connects to
  302. pin 8 on the same side.  Pin 8 will connect to pin 20 on the other side
  303. if 2&3 have to be crossed, or pin 8 on the other side if this is not the
  304. case.  4&5 should be tied together on the computer and modem ends with no
  305. connection in between (unless you have the device driver writer tell you
  306. different, in which case, he's probably ignoring a lockup-on-line-loss
  307. window or is unfamiliar with your modem).  Chassis ground should be connected
  308. on one end only (the one with the best ground) it's purpose is to act as
  309. a Faraday cage for wire noise (all loose wires in a cable should hook to
  310. chassis ground on one end only) and connecting both ends may result in a
  311. ground loop (ie: pin 1-1 is connected and pin 7-7 is connected and the
  312. power supplies have different ideas of a 0 voltage reference).
  313.  
  314. If you are using a Bell 103-C DataSet, feel free to connect pins 4 & 5, as
  315. this is one of the few modems that understands CTS/RTS and how to handle it
  316. as UNIX perceives it with regards to DTR/DCD transitions.  (Built in
  317. monopoly).
  318.  
  319. >    Basically, uugetty ought to keep its mouth shut
  320. >    until a character whatever happens to the cvontrol
  321. >    lines on a modem control port and 'clocal'/'-clocal'
  322. >
  323. >    should WORK RIGHT on tty lines ...
  324.  
  325. Basically, using tty1A instead of tty1a will make getty or uugetty keep
  326. quiet until the modem asserts DCD.
  327.  
  328. Your *modem* should ignore data from the computer until DTR is asserted
  329. and your *modem* should reset as if powered off-then-on-again on an
  330. on-to-off transition of DTR by the computer.
  331.  
  332. Your *computer* should use a modem control port (requires a kernel or boot
  333. monitor patch on Sun -- call Telebit) and have -CLOCAL and HUPCL set in the
  334. /etc/gettydefs file.  Your *computer* should ignore RTS and assert CTS at
  335. all times if DCD is not high to work with Hayes style modems, but doesn't
  336. (hence the cable mods).
  337.  
  338.  
  339. Oh, and *never* use an internal modem and expect it to work; there's no
  340. way you can modify the cable, and the cheap ones won't have appropriate
  341. pullup and pulldown resistors to assert/deassert the proper signals prior
  342. to a connection being made (at which time the line is held active low or
  343. active high, as appropriate.  If you are good at card surgery (like cutting
  344. the IRQ 2/IRQ 9 vertical retrace interrupt line so your VGA card lets you
  345. jumper your ethernet card to IRQ 2/IRQ 9), you may want to buy an internal
  346. modem and solder your own pullup/pulldown resistors.
  347.  
  348. If you need any more help, buy a comm product (like TERM from Century
  349. Software, 801-268-3088) and make the vendor support you.
  350.  
  351.  
  352.  
  353.                     Terry Lambert
  354.                     terry_lambert@gateway.novell.com
  355.                     terry@icarus.weber.edu
  356. ---
  357. Any opinions in this posting are my own and not those of my present
  358. or previous employers.
  359. -- 
  360.  -------------------------------------------------------------------------------
  361.                                                        terry@icarus.weber.edu
  362.  "I have an 8 user poetic license" - me
  363.  -------------------------------------------------------------------------------
  364.  
  365. -----------------------------
  366.  
  367. From: "Dr. R. Chandra" <rchandra@toz.buffalo.ny.us>
  368. Subject: Re: cd'ing to a dir from
  369. Date: 3 Sep 92 16:41:52 GMT
  370. X-Maildoor: WaflineMail 1.00r
  371. To:       unix-wizards@sem.brl.mil
  372.  
  373. > hurtta@cs.Helsinki.FI (Kari E. Hurtta) writes:
  374. >
  375. > >In article <BtA89y.MCt@encore.com> mpalmer@encore.com (Mike Palmer)
  376. > wrote:
  377. > >> Can anyone suggest a way for a process to cd to a dir & stay there
  378. > >> when the process exits.
  379. >
  380. > >So program must modify its parent's environment ...
  381. > >That's magic.
  382. >
  383. > Yesterday I tried out Norton's ncd for Unix (please no more flame wars
  384. > on
  385. > this topic), and it works. But how? I didn't look whether ncd was suid
  386. > root, but how else can the program mess around in the environment? Or
  387. > is
  388. > this on of the kernel changes Norton Utilities for Unix requires?
  389.  
  390. Hmmmm....can't tell you for sure.  But if you think about it, the
  391. inheritance rules for exec(2) should work.  The shell that invokes ncd
  392. by exec(2) instead of fork(2)/exec(2), and then ncd can exec(2) either
  393. another program, or its invoking shell program, which ONLY BY CONVENTION
  394. is in the environment variable SHELL (the invoking shell may or may not
  395. choose to pass the environment it got from its parent program (I realize
  396. this term is usually used for only processes...), usually login(1)).
  397. Ergo, let's for a moment assume csh.  You can do
  398.  
  399.         alias ncd exec ncd
  400.  
  401. or make it a Bourne function (if sh), or whatever.
  402.  
  403.  * Q-Blue v0.7 [NR] *                             
  404.  
  405. -----------------------------
  406.  
  407. From: "Dr. R. Chandra" <rchandra@toz.buffalo.ny.us>
  408. Subject: Re: correcton: restrictin
  409. Date: 3 Sep 92 16:42:02 GMT
  410. X-Maildoor: WaflineMail 1.00r
  411. To:       unix-wizards@sem.brl.mil
  412.  
  413. > In article <928@gofish.Stars.Reston.Unisys.COM> dymm@cards.com (David
  414. > Dymm) writes:
  415. > >I would like to set up a restricted directory tree
  416. > >on my Sun 4 system.  That is, certain users, when logging on,
  417. > >would be placed into accounts that would be located in a
  418. > >directory tree that would not have access to the rest of
  419. > >the system directory structure. ...
  420. >
  421. > The way my college did this was to create the restricted users
  422. > in the 'peon' group-id.
  423. > >All restricted directories were owned by group peon but with NO
  424. > permissions.
  425. > Correction: no GROUP permissions
  426.  
  427. I like this application.  On a UNIX system which I am writing software
  428. for, I need root access on occasion, but it's a pain to inform me when
  429. the password changes (for doing su(1) for instance), so I have a little
  430. suid binary that does setuid(2) and setgid(2) to the proper values and
  431. exec(2)s a shell.  Since it has to be owned by root, and for me to
  432. execute it, it has to be "world" executable, and giving everyone on the
  433. system a root shell would be a very Bad Thing, it is tucked away in a
  434. subdirectory of my home directory where owner (me) has all permissions
  435. and every other field has no permissions (the key one being search, or
  436. "x").  Therefore, I am the only one besides root who has perms to do
  437. anything to it.  The only difference then is the utmp entry.
  438.  
  439. > That way, owner and all other have access but NOT peon.
  440. > Although this is contradictory to the intent of permission GRANTING
  441. > vs. permission denial, it works.
  442. >
  443. > ex: /bin2 had commands that were not for peon use (moved over from
  444. > /bin)
  445. > dr-x---r-x   2 bin      peon         1664 Aug 26 16:14 /bin2
  446. [...]
  447. > As already mentioned an other postings, using the restricted shell
  448. > also helps.
  449. > I'm not sure if it was fixed, but there was a bug in how the shell
  450. > determined if it was restricted or not.
  451. > The old code checked for an 'r' in argv[0].  Anywhere in argv[0].
  452. > This bit me when a login for 'smart' (a teaching program) used
  453. > a C program that used 'system' to do something.
  454. > The subshell inherited the argv[0] of 'smart' and since it contained
  455. > an 'r', it went into restricted shell mode.
  456. > The workaround was to alter argv[0] to something without any 'r'.
  457.  
  458. Ick!  I didn't know about that one.  Thanks!  I'll watch out for it now.
  459.  
  460. > Set root is tricky becuase you need hard links for all things in /dev,
  461. > /tmp and other things that are below the new root.
  462.  
  463. Oh, really?  Granted, it is convenient from a system management
  464. viewpoint (should anything in the true /dev/ change), but what's wrong
  465. with mknod(1) in the "new root?"  All's the system needs is the major
  466. and minor numbers from the inode, regardless of where in the directory
  467. tree it gleans this info from.  And there's nothing inherently special
  468. about /tmp either...just that most schemes mount a large disk or disk
  469. partition on it.  That has definite advantages in a system failure (who
  470. cares if fsck can't fix it?  Just mkfs with it and it'll be just fine).
  471. So therefore, if the operative word is "need," I think not.  Desirable,
  472. probably.
  473.  
  474.  * Q-Blue v0.7 [NR] *                                                                                                                    
  475.  
  476. -----------------------------
  477.  
  478.  
  479. End of UNIX-WIZARDS Digest
  480. **************************
  481.