begin quoting what Matthew D. Fuller said on Wed, Mar 27, 2002 at 06:49:32AM -0600: > > I think he actually means 'hostname', not 'uname'; hostname, on any sane > system, displays the hostname when called with no args, and tries to set > it (requiring root at THAT point) when it has args. Solaris assumes that > you're always trying to set it, even to nothing.
What version of Solaris are you smoking?
sm364611-chtsjs01> hostname
chtsjs01
sm364611-chtsjs01> id
uid=43122(sm364611) gid=10(staff)
sm364611-chtsjs01> uname -a
SunOS chtsjs01 5.8 Generic_108528-05 sun4u sparc SUNW,Ultra-2
> Solaris' braindamage in a number of ways. For instance, on every OTHER
> OS (including pre-Solaris-renaming SunOS, HP/UX 9, NeXT Mach), I can use
> "id -u" to get the EUID. Solaris?
> setenv EUID `id | sed "s/[a-z\(\)\=]//g" | awk '{print $1}'`
sm364611-chtsjs01> /usr/xpg4/bin/id -u
43122
(which is explained in man id)
msg26269/pgp00000.pgp
Description: PGP signature
