This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: "incorrect password" or "permission denied" when switching users


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@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@localhost" in lieu of "su - user".

I did install openssh, and it's even running and responding to requests. 
However...

Owner@Beast /
$ ssh jjg@localhost

jjg@localhost's password:
/bin/bash: Permission denied
Connection to localhost closed.

(---------------------------)
 mailto:Jeremy@Gagliardi.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]