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: Help me to get xinetd/inetd working.


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

Brian,


Thank you for raising the important point of services. I am not much of an expert in windows and thus did not even know about "services" package or its need. I also do not know much about SYSTEM/ntsec and how win xp works. Thus I expected setup.exe to install services or anything else needed by deafult when I choose inetd/xinetd. Thus I did not know that I need to run the daemons any different.

My fault in not reading /usr/share/doc/Cygwin/login.README is due to the way I looked for docs. In Linux the docs are placed under /usr/share/doc/<command_name>. Thus I looked for /usr/share/doc/login... I should have done a find. I will be more careful next time.

Regards
Ramesh






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