bergman on 9 Feb 2010 21:20:39 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] Unix Rosetta Stone (Was: Re: Equivalent of id for groups)



In the message dated: Tue, 09 Feb 2010 22:24:56 EST,
The pithy ruminations from "K.S. Bhaskar" on 
<Re: [PLUG] Equivalent of id for groups> were:
=> SnVzdCBjaGVja2VkIG9uIHNvbWUgVU5JWCBzeXN0ZW1zLi4uIGdldGVudCBpcyB0aGVyZSBvbiBh
=> IFNvbGFyaXMKU1BBUkMgc3lzdGVtLCBidXQgbm90IG9uIGFuIEFJWCBzeXN0ZW0gb3IgSFAtVVgg
=> c3lzdGVtLiAgQW55IG90aGVyCnN1Z2dlc3Rpb25zPyAgVGhhbmtzLgoKLS0gQmhhc2thcgoKT24g
=> RnJpLCBGZWIgNSwgMjAxMCBhdCA3OjEyIFBNLCBTdGVwaGVuIEdyYW4gPHN0ZXZlQGxvYmVmaW4u
=> 
Ick! MIME-mail.

I guess what you meant to write was something like:


=> 
=> Just checked on some UNIX systems... getent is there on a Solaris
=> SPARC system, but not on an AIX system or HP-UX system.  Any other
=> suggestions?  Thanks.


Are you (plural) aware of the "Unix Rosetta Stone"? It's a wonderful 
cross-platform listing of commands and common tasks. For example, it gives the 
equivalent to "getent" for 16 different OSs.

See:

	http://bhami.com/rosetta.html
	
Mark

-----
Mark Bergman    Biker, Rock Climber, Unix mechanic, IATSE #1 Stagehand

http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=bergman%40merctech.com

I want a newsgroup with a infinite S/N ratio! Now taking CFV on:
rec.motorcycles.stagehands.pet-bird-owners.pinballers.unix-supporters
15+ So Far--Want to join? Check out: http://www.panix.com/~bergman

=> 
=> -- Bhaskar
=> 
=> On Fri, Feb 5, 2010 at 7:12 PM, Stephen Gran <steve@lobefin.net> wrote:
=> > On Fri, Feb 05, 2010 at 06:30:00PM -0500, K.S. Bhaskar said:
=> >> I can use the id command in a shell script to determine whether a user
=> >> is valid, e.g.,
=> >>
=> >> $ id -u auntsue
=> >> 9999
=> >> $ id -u xyzzy
=> >> id: xyzzy: No such user
=> >>
=> >> Is there an equivalent command to check for the validity of a group
=> >> name?  I can't scan /etc/group because the group may be defined by
=> >> NIS.  Ideally, it should be something that will work on Linux as well
=> >> as UNIX flavors.
=> >
=> > getent group xyzzy
=> > --
=> >  --------------------------------------------------------------------------
=> > |  Stephen Gran                  | I am here by the will of the people and |
=> > |  steve@lobefin.net             | I won't leave until I get my raincoat   |
=> > |  http://www.lobefin.net/~steve | back.   -- a slogan of the anarchists   |
=> > |                                | in Richard Kadrey's "Metrophage"        |
=> >  --------------------------------------------------------------------------
=> >
=> > -----BEGIN PGP SIGNATURE-----
=> > Version: GnuPG v1.4.6 (GNU/Linux)
=> >
=> > iD8DBQFLbLQDSYIMHOpZA44RAkVUAKDJHwaZGPU5STYUw8y21R+0K+8fFQCgl5MW
=> > O4vsYHvMN9bFX+xA3cXzpm8=
=> > =xaV6
=> > -----END PGP SIGNATURE-----
=> >
=> > ___________________________________________________________________________
=> > Philadelphia Linux Users Group         --        http://www.phillylinux.org
=> > Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
=> > General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
=> >
=> >
=> 
=> 
=> 
=> -- 
=> Windows does to computers what smoking does to humans
=> ___________________________________________________________________________


___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug