[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: is hard-coding the group name, "tty", portable enough for who -a?
From: |
Eric Blake |
Subject: |
Re: is hard-coding the group name, "tty", portable enough for who -a? |
Date: |
Mon, 14 Jul 2008 06:41:02 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080421 Thunderbird/2.0.0.14 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Jim Meyering on 7/7/2008 6:52 AM:
| If anyone can find a system on which this prints
| something other than "tty", please let us know:
|
| stat --format %G $(tty)
On cygwin 1.5.25, this prints "None". By default, cygwin has neither a
'root' nor a 'tty' group, so cygwin punts and chooses the only group name
that is guaranteed to exist on underlying Windows. Meanwhile, wall is
installed with the permissions of the user who ran the cygwin installer:
$ ls -lF /usr/bin/wall $(tty)
- -rwxrwxrwx+ 1 eblake Users 8192 Apr 1 01:55 /usr/bin/wall.exe*
crw-rw-rw- 1 eblake None 136, 0 Nov 30 2006 /dev/tty0
$ id
uid=1007(eblake) gid=513(None) 513(None),544(Administrators),545(Users)
There is no /usr/bin/write on cygwin, and I've never tried using wall to
see whether terminal messaging is even reasonable to expect to work.
It may just be that worrying about 'who -a' on cygwin is not worth the
effort, since I'm not sure whether terminal messaging is supported.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkh7SV4ACgkQ84KuGfSFAYAnhQCeMYjlxHnT1SRWQELVsnCZAUlP
2m0An3YgXJ2SGahXQf5c1Gj5nqE+cxQv
=BqWs
-----END PGP SIGNATURE-----
- is hard-coding the group name, "tty", portable enough for who -a?, Jim Meyering, 2008/07/07
- Re: is hard-coding the group name, "tty", portable enough for who -a?, James Youngman, 2008/07/07
- Re: is hard-coding the group name, "tty", portable enough for who -a?, Matthew Woehlke, 2008/07/09
- Re: is hard-coding the group name, "tty", portable enough for who -a?, Jim Meyering, 2008/07/11
- Re: is hard-coding the group name, "tty", portable enough for who -a?, Andreas Schwab, 2008/07/11
- Re: is hard-coding the group name, "tty", portable enough for who -a?, Jim Meyering, 2008/07/11
- Re: is hard-coding the group name, "tty", portable enough for who -a?, Andreas Schwab, 2008/07/11
Re: is hard-coding the group name, "tty", portable enough for who -a?,
Eric Blake <=