X-Spam-Check-By: sourceware.org Message-ID: <43BDF429.5050206@byu.net> Date: Thu, 05 Jan 2006 21:38:01 -0700 From: Eric Blake User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: 'su' no longer working? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Igor Peshansky on 1/5/2006 3:37 PM: > Hi, > > '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 generic manner. > > 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. > > Thanks, > Igor > 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 ebb9 AT byu DOT net 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 iD8DBQFDvfQo84KuGfSFAYARAlm3AKDMPf7Q8tcsClMVuRQP8gaNkIku2QCcDdSk bZ2m2UV3IiKbL5QJk/tHAOU= =FLbS -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/