Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Message-ID: <20000929203651.1115.qmail@web106.yahoomail.com> Date: Fri, 29 Sep 2000 13:36:51 -0700 (PDT) From: Earnie Boyd Subject: seteuid ? To: cygwin developers MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hey Corinna, I've copied my Domain User /etc/passwd record and changed the User=root and UID=0. If I put this record first in /etc/passwd file I could `su -' just fine and dandy. However, that ended up as the user record when starting bash. Moving the record to the end of the file, I `su -' and I would the EPERM error. This is due to the test of pw_cur != pw_new. I removed the set_errno and return -1 statements and su now changes the effective user. Comments? BTW this code can be found in syscalls.cc Line 1852. Cheers, Earnie. __________________________________________________ Do You Yahoo!? Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free! http://photos.yahoo.com/