This is the mail archive of the
mailing list for the Cygwin project.
Re: 'su' no longer working?
-----BEGIN PGP SIGNED MESSAGE-----
According to Igor Peshansky on 1/5/2006 3:37 PM:
> 'su' used to be an executable that worked correctly from a SYSTEM-owned
> shell, but now it's a shell script that simply prints a "not supported"
> message. Is it possible to resurrect the old "su" executable (that
> perhaps prints the same message if run from a non-SYSTEM account)?
Coreutils certainly builds an su executable, but the cygwin distro of su
has been a script since at least 5.2.1 when Corinna was the maintainer; I
only enhanced the script to be a little more useful. I'll see what I can
do about getting the executable built and running, but no promise on a
timeline; is there any easy run-time test as to whether the current user
is SYSTEM and should try to perform user switching, vs. normal users to
print a warning message that su is relatively useless under cygwin/Windows
semantics? Also, be aware that there has been talk (but so far, no
action) on the bug-coreutils list about dropping su from coreutils
altogether, since there are other open source implementations of su
available in other projects, and since it is so hard to maintain in a
> This was the only convenient command-line way I knew to test the behavior
> of passwordless user switching from a SYSTEM shell... I would also be
> happy with alternative means for doing that.
I guess that means I will finally have to figure out how to set up my own
sysbash to also test this. Meanwhile, if you download the cygwin
coreutils src tarball, the su executable IS built, just not installed.
> P.S. Eric, sorry for the late notice -- when you announced that you made
> 'su' print out that message, i assumed this was the old executable that
> tested the context and printed the message...
Life is short - so eat dessert first!
Eric Blake email@example.com
volunteer cygwin coreutils maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html