Small gripe/bug with pts

Jeffrey Hutzelman jhutz at cmu.edu
Wed Nov 24 00:51:15 CET 2004




On Tuesday, November 23, 2004 13:23:44 -0800 mmarion at qualcomm.com wrote:

> For some reason, -noauth works if it's the last argument, but not if it's
> first.  Should order of args really matter?
>
> cornholio ~ {518}$ pts examine -noauth mmarion -cell qualcomm.com
> Usage: pts examine -nameorid <undefined>... [-cell <string>] [-host
> <string>] [-noauth]
> -nameorid <undefined> user or group name
> -cell <string>        what cell to use
> -host <string>        specified db
> -noauth               don't authenticate
> cornholio ~ {519}$ pts examine mmarion -cell qualcomm.com -noauth
> Name: mmarion, id: 32836, owner: system:administrators, creator: 90037,
>   membership: 287, flags: S----, group quota: 20.


> Noticed this because the afs sudo/release scripts we have here do the
> above pts examine in the order of the first example.  Could be changed,
> but not sure why arg must be last.

The problem is not that -noauth must be last, but that in the usage message 
above, elements like '-nameorid' are optional only as long as the 
corresponding arguments are given in order.  You can put -noauth first, but 
then you must use the -nameorid to tell it what the 'mmarion' is for.





More information about the Arla-drinkers mailing list