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 X-Sent: 14 Feb 2004 20:26:44 GMT Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit MIME-Version: 1.0 To: cygwin AT cygwin DOT com From: Jeremy AT Gagliardi DOT com Subject: Re: "incorrect password" or "permission denied" when switching users X-Sent-From: jeremy AT gagliardi DOT com Date: Sat, 14 Feb 2004 15:26:43 -0500 (EST) Message-Id: <20040214122644.29160.h011.c000.wm@mail.gagliardi.com.criticalpath.net> On Sat, 14 Feb 2004 13:59:09 -0500 (EST), Igor Pechtchanski wrote: > $ net helpmsg 1314 > A required privilege is not held by the client. > > Does this ring a bell? More below. Nope. I should point out I am not very Windows literate, which is why I'm trying to use Cygwin in the first place. > > Please help. Why are the most basic forms of login not working with a > > "standard" installation of Cygwin? > > Because normal users (read: anyone but SYSTEM) don't have enough > privileges to switch users. Starting with Win2003, not even SYSTEM has > the needed privileges by default. For more information, see > /usr/share/doc/Cygwin/openssh.README. As I pointed out in my original message, my computer's administrator account is "Owner". When I installed Cygwin, all files have an ownership of "Owner" with group "User". Also... Owner AT Beast / $ id -a uid=1003(Owner) gid=545(Users) groups=0(root),513(None),544(Administrators),545(Users) How could "Owner" not have enough privileges? > > Better question: How can I get login or su to work? > > Run them as SYSTEM. IIRC, su is broken under Cygwin altogether. login > does work, however, as long as the user has appropriate privileges. Stupid question: How do I run login as SYSTEM? I tried `chown SYSTEM /bin/bash.exe` and `chmod u+s /bin/bash.exe` and did `login -f jjg`. Same result. "/bin/bash: Permission denied". > > Even better question: How can I switch users? > > Install the openssh package, set up sshd (using ssh-host-config), and use > "ssh user AT localhost" in lieu of "su - user". I did install openssh, and it's even running and responding to requests. However... Owner AT Beast / $ ssh jjg AT localhost jjg AT localhost's password: /bin/bash: Permission denied Connection to localhost closed. (---------------------------) mailto:Jeremy AT Gagliardi DOT com http://Jeremy.Gagliardi.com (---------------------------) -- 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/