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: Can't switch to another user.


Ramasubramanian Ramesh wrote:

> Based on the document I read, I got the impression that I cannot use su
> but login will work.  I really do not need to login as different user.

I don't know which document you're referring to, but the first paragraph
of /usr/share/doc/Cygwin/login.README says

Under NT/2K/XP, login(1) is _not_ supposed to work on the command line
to change user context!  Though you're able to tweak user permissions
to get login(1) working that way, that's NOT officially supported.

> However, I see that xinetd does not work as it should. It also
> misteriously dies with some sort of permission denied message. So when I
> did a xinetd -d to see the transcript of an attempt to telnet, I saw
> something similar to login failure.  So I decided to try a simple
> experiment with login. But I really need inetd/telnet/ftp to work.

>From your cygcheck, you have no services installed.  How are you running
xinetd?  You can't just run it as "xinetd &" because under Windows,
regualr user accounts do not have the privileges necessary to switch
user credentials.  You need to install it as a service running as
SYSTEM.  Services are the analog of daemons in the unix world.

Brian

--
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]