* RE: problem starting inetd as NT service
@ 2002-05-08 4:43 Mellman Thomas
2002-05-08 7:37 ` Larry Hall (RFK Partners, Inc)
0 siblings, 1 reply; 19+ messages in thread
From: Mellman Thomas @ 2002-05-08 4:43 UTC (permalink / raw)
To: 'Larry Hall (RFK Partners, Inc)', Mellman Thomas; +Cc: cygwin
>>-----Original Message-----
>>From: Larry Hall (RFK Partners, Inc) [mailto:lhall@rfk.com]
>>Sent: Tuesday, May 07, 2002 5:04 PM
>>To: Mellman Thomas; 'john@vincent.as'; YuriLeikind@scnsoft.com
>>Cc: cygwin@cygwin.com
>>Subject: RE: problem starting inetd as NT service
>>
>>
>>At 08:38 AM 5/7/2002, Mellman Thomas wrote:
>>>Due to constraints poised by my employer, I guess, I'm having basic
>>>problems meeting the requirements:
>>>
>>>When I do that, I can't create files anymore. My id is (clearly)
>>>uid=500(Administrator) gid=513(Kein) groups=513(Kein)
Incidently, I meant NOT as a telnet or ftp user, but simply as
a normal cygwin console user (Administrator) can I no longer create
files.
>>>- I read somewhere that I need to put my RID in the GCOS field of
>>> a password entry for me. I couldn't find the RID in my registry.
>>> Where can I find it?
>>
>>
>>The lack of this data in your /etc/passwd file is probably
>>the reason you
>>are having permission problems with ntsec turned on. Just
>>run "mkpasswd"
>>again with the appropriate flags for your installation. So
>>long as it can
>>find your login name, it will add the appropriate information to your
>>/etc/passwd file for you.
Ah, I afraid that's the key. mkpasswd - both with -l and -d options - does not yield my account name. I guess my employer REALLY has the security tied down. Does that mean that telnet is out for me?
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 19+ messages in thread
* RE: problem starting inetd as NT service
2002-05-08 4:43 problem starting inetd as NT service Mellman Thomas
@ 2002-05-08 7:37 ` Larry Hall (RFK Partners, Inc)
2002-05-08 13:25 ` Finding your SID (was Re: problem starting inetd as NT service) Jason Tishler
0 siblings, 1 reply; 19+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2002-05-08 7:37 UTC (permalink / raw)
To: Mellman Thomas; +Cc: cygwin
At 05:39 AM 5/8/2002, Mellman Thomas wrote:
> >>-----Original Message-----
> >>From: Larry Hall (RFK Partners, Inc) [mailto:lhall@rfk.com]
> >>Sent: Tuesday, May 07, 2002 5:04 PM
> >>To: Mellman Thomas; 'john@vincent.as'; YuriLeikind@scnsoft.com
> >>Cc: cygwin@cygwin.com
> >>Subject: RE: problem starting inetd as NT service
> >>
> >>
> >>At 08:38 AM 5/7/2002, Mellman Thomas wrote:
> >>>Due to constraints poised by my employer, I guess, I'm having basic
> >>>problems meeting the requirements:
> >>>
> >>>When I do that, I can't create files anymore. My id is (clearly)
> >>>uid=500(Administrator) gid=513(Kein) groups=513(Kein)
>
>
>
>Incidently, I meant NOT as a telnet or ftp user, but simply as
>a normal cygwin console user (Administrator) can I no longer create
>files.
OK, you're problem with /etc/passwd is at the heart of this problem.
> >>>- I read somewhere that I need to put my RID in the GCOS field of
> >>> a password entry for me. I couldn't find the RID in my registry.
> >>> Where can I find it?
> >>
> >>
> >>The lack of this data in your /etc/passwd file is probably
> >>the reason you
> >>are having permission problems with ntsec turned on. Just
> >>run "mkpasswd"
> >>again with the appropriate flags for your installation. So
> >>long as it can
> >>find your login name, it will add the appropriate information to your
> >>/etc/passwd file for you.
>
>
>Ah, I afraid that's the key. mkpasswd - both with -l and -d options - does not yield my account name. I guess my employer REALLY has the security tied down. Does that mean that telnet is out for me?
Not necessarily. You need to be able to create a proper /etc/passwd file.
mkpasswd will do this for you normally. However, if you can find the proper
info, you can create one manually. Before embarking on this "last resort"
path though, look at Jason Tishler's 'mkpasswd' email from today. That thread
may have some useful information for you.
Larry Hall lhall@rfk.com
RFK Partners, Inc. http://www.rfk.com
838 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Finding your SID (was Re: problem starting inetd as NT service)
2002-05-08 7:37 ` Larry Hall (RFK Partners, Inc)
@ 2002-05-08 13:25 ` Jason Tishler
2002-05-09 4:29 ` Gerald S. Williams
0 siblings, 1 reply; 19+ messages in thread
From: Jason Tishler @ 2002-05-08 13:25 UTC (permalink / raw)
To: cygwin
[The following was delayed due to ISP problems. Sigh...]
On Wed, May 08, 2002 at 10:30:28AM -0400, Larry Hall (RFK Partners, Inc) wrote:
> Not necessarily. You need to be able to create a proper /etc/passwd file.
> mkpasswd will do this for you normally. However, if you can find the proper
> info, you can create one manually.
You can find your SID (the "proper info" from above), by scanning through
the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
Choose the one where ProfileImagePath contains your $USERNAME.
Obviously, we should try to fix mkpasswd/mkgroup to work in these
"strange" environments, if possible. But, at least the archives have
a reference for the desperate now. :,)
Jason
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 19+ messages in thread
* RE: Finding your SID (was Re: problem starting inetd as NT service)
2002-05-08 13:25 ` Finding your SID (was Re: problem starting inetd as NT service) Jason Tishler
@ 2002-05-09 4:29 ` Gerald S. Williams
2002-05-09 6:05 ` Jason Tishler
0 siblings, 1 reply; 19+ messages in thread
From: Gerald S. Williams @ 2002-05-09 4:29 UTC (permalink / raw)
To: Jason Tishler, cygwin
Jason Tishler wrote:
> You can find your SID (the "proper info" from above), by scanning through
> the following registry key:
>
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
>
> Choose the one where ProfileImagePath contains your $USERNAME.
After expanding variables, I was able to look for where
ProfileImagePath is equal to $USERPROFILE. YMMV.
I was able to come up with a short script that does the
equivalent of "mkpasswd -d -u $USERNAME" on my system.
However, I did not know what to do about the group
number. Based on my system and other e-mail I've seen,
I just hardcoded 513 for now, but that's probably not
universally correct. Is there any way to get that info
from the registry?
-Jerry
P.S. Here's the script I used. It's in Python, and only
works using the WINDOWS version right now since Cygwin
Python doesn't support the _winreg module.
-----
#!/usr/bin/echo THIS_IS_ONLY_FOR_WINDOWS_PYTHON
from _winreg import *
from os import environ
class User:
def __init__(self,masterkey,sid):
self.sid = sid
userkey = OpenKey(masterkey,sid)
self.data = {}
for valueno in range(QueryInfoKey(userkey)[1]):
(name,data,type) = EnumValue(userkey,valueno)
self.data[name] = data
userkey.Close()
profilePath = self.data['ProfileImagePath'].split("%")
for i in range(1,len(profilePath),2):
profilePath[i] = environ[profilePath[i]]
self.profilePath = "".join(profilePath)
users = []
masterkey = OpenKey(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\ProfileList")
for userno in range(QueryInfoKey(masterkey)[0]):
users.append(User(masterkey,EnumKey(masterkey,userno)))
masterkey.Close()
profilePath = environ["USERPROFILE"]
userName = environ["USERNAME"]
userDomain = environ["USERDOMAIN"]
for user in users:
if user.profilePath == profilePath:
# Not clear what to use for group ID. Is 513 universally OK?
# This assumes you want your home directory in /home/userName
print ":".join([userName, \
"unused_by_nt/2000/xp", \
user.sid.split("-")[-1],
"513", \
"U-" + userDomain + "\\" + userName + "," + user.sid, \
"/home/" + userName, \
"/bin/bash"])
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Finding your SID (was Re: problem starting inetd as NT service)
2002-05-09 4:29 ` Gerald S. Williams
@ 2002-05-09 6:05 ` Jason Tishler
2002-05-09 7:51 ` Gerald S. Williams
0 siblings, 1 reply; 19+ messages in thread
From: Jason Tishler @ 2002-05-09 6:05 UTC (permalink / raw)
To: Gerald S. Williams; +Cc: cygwin
Jerry,
On Thu, May 09, 2002 at 07:11:55AM -0400, Gerald S. Williams wrote:
> Jason Tishler wrote:
> > Choose the one where ProfileImagePath contains your $USERNAME.
>
> After expanding variables, I was able to look for where
> ProfileImagePath is equal to $USERPROFILE. YMMV.
Your method is equivalent to mine but better.
> However, I did not know what to do about the group
> number. Based on my system and other e-mail I've seen,
> I just hardcoded 513 for now, but that's probably not
> universally correct.
Since you are in a domain environment, you should use "10513" which is
the gid for "Domain Users" instead.
> Is there any way to get that info from the registry?
I don't think that you have to. Just use "513" for local accounts and
"10513" for domain accounts.
BTW, you also need to update your /etc/group file as follows:
$ mkgroup -d | egrep 'Domain (Users|Admins|Guests)' >>/etc/group
I found the SID for my Domain Users account in:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Group Policy\GroupMembership\Group0
I'm not sure if the above is generally useful. Additionally, I'm not
sure how to find the SIDs for the other Domain foo accounts, except
by substituting 512 and 514 (for 513) for Domain Admins and Guests,
respectively.
Jason
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 19+ messages in thread
* RE: Finding your SID (was Re: problem starting inetd as NT service)
2002-05-09 6:05 ` Jason Tishler
@ 2002-05-09 7:51 ` Gerald S. Williams
2002-05-09 8:12 ` Jason Tishler
0 siblings, 1 reply; 19+ messages in thread
From: Gerald S. Williams @ 2002-05-09 7:51 UTC (permalink / raw)
To: Jason Tishler; +Cc: cygwin
Thanks for the info.
BTW, I just found out that people in another site ARE able
to use mkpasswd and mkgroup with the -d option. I may be
able to have them get everyone's information.
> BTW, you also need to update your /etc/group file as follows:
>
> $ mkgroup -d | egrep 'Domain (Users|Admins|Guests)' >>/etc/group
I was leaving out the "egrep". Should I suppress the other
stuff?
-Jerry
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Finding your SID (was Re: problem starting inetd as NT service)
2002-05-09 7:51 ` Gerald S. Williams
@ 2002-05-09 8:12 ` Jason Tishler
2002-05-09 15:43 ` Gerald S. Williams
0 siblings, 1 reply; 19+ messages in thread
From: Jason Tishler @ 2002-05-09 8:12 UTC (permalink / raw)
To: Gerald S. Williams; +Cc: cygwin
Jerry,
On Thu, May 09, 2002 at 09:53:41AM -0400, Gerald S. Williams wrote:
> Thanks for the info.
You are welcome.
> BTW, I just found out that people in another site ARE able
> to use mkpasswd and mkgroup with the -d option. I may be
> able to have them get everyone's information.
I work for a very large company and we have similar issues too.
> > BTW, you also need to update your /etc/group file as follows:
> >
> > $ mkgroup -d | egrep 'Domain (Users|Admins|Guests)' >>/etc/group
>
> I was leaving out the "egrep". Should I suppress the other stuff?
Again, I work for a very large company that just got bigger on 5/7/2002
(hint). :,) After about 45 minutes, mkgroup -d produced about 6000
entries and still had not hit H yet! I prefer to "suppress the other
stuff". I don't know whether or not that will be your preference too.
Jason
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 19+ messages in thread
* RE: Finding your SID (was Re: problem starting inetd as NT service)
2002-05-09 8:12 ` Jason Tishler
@ 2002-05-09 15:43 ` Gerald S. Williams
2002-05-20 9:55 ` Jason Tishler
0 siblings, 1 reply; 19+ messages in thread
From: Gerald S. Williams @ 2002-05-09 15:43 UTC (permalink / raw)
To: cygwin
Problem solved.
I thought that I was able to contact the domain controller,
since I was able to change my domain password successfully
and do other sorts of things that required me to login.
However, apparently this was something other than the PDC
or BDC. Or at least I was in a situation where I wasn't
"trusted" enough to contact them via mkpasswd. Thinking it
was the latter, I even tried hacking mkpasswd to use the
appropriate Active Directory calls, to no avail.
But today, after finding someone that could use mkpasswd,
I simply copied his WINS settings and now it works for
me, too. Doh!
Thanks for the help,
-Jerry Williams
P.S. I don't know if anyone's interested in this, but here's
my previous Python script updated to provide more correct
results:
-----
#!/usr/bin/echo THIS_IS_ONLY_FOR_WINDOWS_PYTHON
from _winreg import *
from os import environ
class User:
def __init__(self,masterkey,sid):
self.sid = sid
userkey = OpenKey(masterkey,sid)
self.data = {}
for valueno in range(QueryInfoKey(userkey)[1]):
(name,data,type) = EnumValue(userkey,valueno)
self.data[name] = data
userkey.Close()
profilePath = self.data['ProfileImagePath'].split("%")
for i in range(1,len(profilePath),2):
profilePath[i] = environ[profilePath[i]]
self.profilePath = "".join(profilePath)
users = []
masterkey = OpenKey(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\ProfileList")
for userno in range(QueryInfoKey(masterkey)[0]):
users.append(User(masterkey,EnumKey(masterkey,userno)))
masterkey.Close()
profilePath = environ["USERPROFILE"]
userName = environ["USERNAME"]
userDomain = environ["USERDOMAIN"]
# Offset of 10000 is for domain users. Use 0 for local users.
offset = 10000
for user in users:
if user.profilePath == profilePath:
# Group 513/10513 is for all users.
# This assumes you want your home directory in /home/userName
print ":".join([userName, \
"unused_by_nt/2000/xp", \
str(int(user.sid.split("-")[-1])+offset),
str(513+offset), \
"U-" + userDomain + "\\" + userName + "," + user.sid, \
"/home/" + userName, \
"/bin/bash"])
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Finding your SID (was Re: problem starting inetd as NT service)
2002-05-09 15:43 ` Gerald S. Williams
@ 2002-05-20 9:55 ` Jason Tishler
2002-05-30 9:10 ` Jason Tishler
0 siblings, 1 reply; 19+ messages in thread
From: Jason Tishler @ 2002-05-20 9:55 UTC (permalink / raw)
To: Gerald S. Williams; +Cc: cygwin
Jerry,
On Thu, May 09, 2002 at 06:23:04PM -0400, Gerald S. Williams wrote:
> But today, after finding someone that could use mkpasswd,
> I simply copied his WINS settings and now it works for
> me, too. Doh!
I'm trying to track down similar sounding problems that a co-worker had.
Do you know what were the specific differences between your WINS setting
and his? If so, please post them to the list.
Thanks,
Jason
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Finding your SID (was Re: problem starting inetd as NT service)
2002-05-20 9:55 ` Jason Tishler
@ 2002-05-30 9:10 ` Jason Tishler
0 siblings, 0 replies; 19+ messages in thread
From: Jason Tishler @ 2002-05-30 9:10 UTC (permalink / raw)
To: cygwin
On Mon, May 20, 2002 at 09:02:28AM -0400, Jason Tishler wrote:
> On Thu, May 09, 2002 at 06:23:04PM -0400, Gerald S. Williams wrote:
> > But today, after finding someone that could use mkpasswd,
> > I simply copied his WINS settings and now it works for
> > me, too. Doh!
>
> I'm trying to track down similar sounding problems that a co-worker had.
> Do you know what were the specific differences between your WINS setting
> and his? If so, please post them to the list.
Due to network related security concerns, Jerry has responded to me
privately.
Jason
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 19+ messages in thread
* RE: problem starting inetd as NT service
@ 2002-05-08 13:38 Heribert Dahms
0 siblings, 0 replies; 19+ messages in thread
From: Heribert Dahms @ 2002-05-08 13:38 UTC (permalink / raw)
To: 'Mellman Thomas'; +Cc: cygwin
I'd try in a DOS box: NET USER and NET USER /DOMAIN
Bye, Heribert (heribert_dahms@icon-scm.com)
> -----Original Message-----
> From: Mellman Thomas [SMTP:Thomas.Mellman@icn.siemens.de]
> Sent: Wednesday, May 08, 2002 16:37
> To: 'Larry Hall (RFK Partners, Inc)'
> Cc: cygwin@cygwin.com
> Subject: RE: problem starting inetd as NT service
>
[Heribert] [snip]
> Yes, I was just pondering it. When I try with the -lu* option,
> that's the error message I get: 2221.
>
[Heribert] [snip]
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 19+ messages in thread
* RE: problem starting inetd as NT service
@ 2002-05-08 7:40 Mellman Thomas
0 siblings, 0 replies; 19+ messages in thread
From: Mellman Thomas @ 2002-05-08 7:40 UTC (permalink / raw)
To: 'Larry Hall (RFK Partners, Inc)'; +Cc: cygwin
>>-----Original Message-----
>>From: Larry Hall (RFK Partners, Inc) [mailto:lhall@rfk.com]
>>>Ah, I afraid that's the key. mkpasswd - both with -l and -d
>>options - does not yield my account name. I guess my
>>employer REALLY has the security tied down. Does that mean
>>that telnet is out for me?
>>
>>
>>Not necessarily. You need to be able to create a proper
>>/etc/passwd file.
>>mkpasswd will do this for you normally. However, if you can
>>find the proper
>>info, you can create one manually. Before embarking on this
>>"last resort"
>>path though, look at Jason Tishler's 'mkpasswd' email from
>>today. That thread
>>may have some useful information for you.
Yes, I was just pondering it. When I try with the -lu* option,
that's the error message I get: 2221.
Thank you for the information.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 19+ messages in thread
* RE: problem starting inetd as NT service
@ 2002-05-07 5:39 Mellman Thomas
2002-05-07 8:06 ` Larry Hall (RFK Partners, Inc)
0 siblings, 1 reply; 19+ messages in thread
From: Mellman Thomas @ 2002-05-07 5:39 UTC (permalink / raw)
To: 'john@vincent.as', YuriLeikind; +Cc: cygwin
>>-----Original Message-----
>>From: john@vincent.as [mailto:john@vincent.as]
>>Sent: Tuesday, May 07, 2002 1:50 PM
>>To: YuriLeikind@scnsoft.com
>>Cc: cygwin@cygwin.com
>>Subject: Re: problem starting inetd as NT service
>>
>>
>>.... (I assume you read the README file
>>I mentioned earlier). Also if you're using the NTFS file
>>system, you may also need to set the CYGWIN environment
>>variable to "ntsec".
I am also having problems getting the inetd services to run.
Due to constraints poised by my employer, I guess, I'm having basic
problems meeting the requirements:
> If you don't start inetd as service under LocalSystem but under
> another account, you have to [make sure] that that account has several
> user rights set in the user manager resp. local/domain security
> policy mmc snap in:
> "Act as part of the operating system"
> "Replace process level token"
> "Increase quotas"
> "Logon as a service"
> Note that administrators do not have all that user rights set
> by default!
- I'm afraid I don't know what "mmc snap" means - ah, from google
I get something about microsoft management console tools ...
(I hope I won't have to become a Certified Microsoft Engineer...)
- I see that, under the control-panel -> services ->+ cygwin-inetd
I can choose between system account and 'this account'. Default is
system account. Why would I use "this account"? Why would I use
the system account, or what problems lurk for me there?
- if I try to use "this account", I must enter a password. Where
does this come from? My own password does not seem to work.
I probably won't ask these questions, except that my employer has
got the security turned down pretty tight, so trying things out isn't
very satisfactory.
>
> For all application started via NT/W2K service manager under
> LocalSystem account, the following restrictions apply:
>
> - The environment variable CYGWIN must be either set in the system
> environment to be active from start on or you can set CYGWIN thru
> the registry:
> Under the key HKLM\Software\Cygnus Solutions\Cygwin\Program Options
> create a REG_SZ (String) named like the full DOS path to the application,
> eg. "C:\usr\bin\inetd.exe" and with the value equal to the preferred
> CYGWIN settings, eg "binmode tty ntsec".
When I do that, I can't create files anymore. My id is (clearly)
uid=500(Administrator) gid=513(Kein) groups=513(Kein)
- How do I get it to be otherwise? Will I have to login in twice,
once to nt and once to cygwin?
- I read somewhere that I need to put my RID in the GCOS field of
a password entry for me. I couldn't find the RID in my registry.
Where can I find it?
Thanks in advance.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 19+ messages in thread
* RE: problem starting inetd as NT service
2002-05-07 5:39 Mellman Thomas
@ 2002-05-07 8:06 ` Larry Hall (RFK Partners, Inc)
0 siblings, 0 replies; 19+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2002-05-07 8:06 UTC (permalink / raw)
To: Mellman Thomas, 'john@vincent.as', YuriLeikind; +Cc: cygwin
At 08:38 AM 5/7/2002, Mellman Thomas wrote:
> >>-----Original Message-----
> >>From: john@vincent.as [mailto:john@vincent.as]
> >>Sent: Tuesday, May 07, 2002 1:50 PM
> >>To: YuriLeikind@scnsoft.com
> >>Cc: cygwin@cygwin.com
> >>Subject: Re: problem starting inetd as NT service
> >>
> >>
> >>.... (I assume you read the README file
> >>I mentioned earlier). Also if you're using the NTFS file
> >>system, you may also need to set the CYGWIN environment
> >>variable to "ntsec".
>
>
>I am also having problems getting the inetd services to run.
>
>Due to constraints poised by my employer, I guess, I'm having basic
>problems meeting the requirements:
>
>
> > If you don't start inetd as service under LocalSystem but under
> > another account, you have to [make sure] that that account has several
> > user rights set in the user manager resp. local/domain security
> > policy mmc snap in:
> > "Act as part of the operating system"
> > "Replace process level token"
> > "Increase quotas"
> > "Logon as a service"
> > Note that administrators do not have all that user rights set
> > by default!
>
>
>- I'm afraid I don't know what "mmc snap" means - ah, from google
> I get something about microsoft management console tools ...
> (I hope I won't have to become a Certified Microsoft Engineer...)
Me too! ;-)
>- I see that, under the control-panel -> services ->+ cygwin-inetd
> I can choose between system account and 'this account'. Default is
> system account. Why would I use "this account"? Why would I use
> the system account, or what problems lurk for me there?
Just use the "SYSTEM" account. It's the default and gets you
what you need. It means you need to know a whole lot less. You don't need
to play with the "mmc snap" mentioned above if you use "SYSTEM".
>- if I try to use "this account", I must enter a password. Where
> does this come from? My own password does not seem to work.
>
>I probably won't ask these questions, except that my employer has
>got the security turned down pretty tight, so trying things out isn't
>very satisfactory.
Right. So you probably only have the option of using "SYSTEM" as the account
anyway.
> >
> > For all application started via NT/W2K service manager under
> > LocalSystem account, the following restrictions apply:
> >
> > - The environment variable CYGWIN must be either set in the system
> > environment to be active from start on or you can set CYGWIN thru
> > the registry:
> > Under the key HKLM\Software\Cygnus Solutions\Cygwin\Program Options
> > create a REG_SZ (String) named like the full DOS path to the application,
> > eg. "C:\usr\bin\inetd.exe" and with the value equal to the preferred
> > CYGWIN settings, eg "binmode tty ntsec".
>
>
>When I do that, I can't create files anymore. My id is (clearly)
>uid=500(Administrator) gid=513(Kein) groups=513(Kein)
>
>- How do I get it to be otherwise? Will I have to login in twice,
> once to nt and once to cygwin?
I'd recommend just adding "ntsec" to the system version of the CYGWIN
environment variable. This will ensure that you're using ntsec both for
services and for interactive tasks, which is the best if you're using NTFS.
>- I read somewhere that I need to put my RID in the GCOS field of
> a password entry for me. I couldn't find the RID in my registry.
> Where can I find it?
The lack of this data in your /etc/passwd file is probably the reason you
are having permission problems with ntsec turned on. Just run "mkpasswd"
again with the appropriate flags for your installation. So long as it can
find your login name, it will add the appropriate information to your
/etc/passwd file for you.
Larry Hall lhall@rfk.com
RFK Partners, Inc. http://www.rfk.com
838 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: problem starting inetd as NT service
@ 2002-05-07 4:56 john
0 siblings, 0 replies; 19+ messages in thread
From: john @ 2002-05-07 4:56 UTC (permalink / raw)
To: YuriLeikind; +Cc: cygwin
Make sure the cygwin1.ddl is in a directory that is specified
in the PATH environment variable that is used when the
service is started. (I assume you read the README file
I mentioned earlier). Also if you're using the NTFS file
system, you may also need to set the CYGWIN environment
variable to "ntsec".
I hope this helps.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 19+ messages in thread
* problem starting inetd as NT service
@ 2002-05-07 3:32 john
2002-05-07 3:52 ` Yuri Leikind
0 siblings, 1 reply; 19+ messages in thread
From: john @ 2002-05-07 3:32 UTC (permalink / raw)
To: YuriLeikind; +Cc: cygwin
If you look at the FAQ and documentation for inetd
you'll see that you don't use cygrunsrv to install
inetd. You run it with a special argument and it
installs itself (something like inetd --install-as-service)
if I remember right. If you've got the Cygwin files
installed, look at /usr/doc/Cygwin/inetutils-1.3.2.README
I hope this helps you.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: problem starting inetd as NT service
2002-05-07 3:32 john
@ 2002-05-07 3:52 ` Yuri Leikind
0 siblings, 0 replies; 19+ messages in thread
From: Yuri Leikind @ 2002-05-07 3:52 UTC (permalink / raw)
To: john; +Cc: cygwin
On 7 May 2002 10:32:44 -0000
john@vincent.as wrote:
> If you look at the FAQ and documentation for inetd
> you'll see that you don't use cygrunsrv to install
> inetd. You run it with a special argument and it
> installs itself (something like inetd --install-as-service)
> if I remember right. If you've got the Cygwin files
> installed, look at /usr/doc/Cygwin/inetutils-1.3.2.README
>
> I hope this helps you.
Oh yes it did work, thank you!
Only now I get
Trying 192.168.102.79...
Connected to martynenko.scnsoft.com.
Escape character is '^]'.
Connection closed by foreign host.
And there is nothing in logs
___
Best regards,
Yuri Leikind
Most programs fail because they are based on the theory that,
with nine women pregnant, you can get a baby a month.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 19+ messages in thread
* problem starting inetd as NT service
@ 2002-05-06 3:28 Yuri Leikind
2002-05-06 7:27 ` Larry Hall (RFK Partners, Inc)
0 siblings, 1 reply; 19+ messages in thread
From: Yuri Leikind @ 2002-05-06 3:28 UTC (permalink / raw)
To: cygwin
Hello all,
I cannot start inetd as NT service. I do this:
Install the service:
cygrunsrv --install inetd --path /usr/sbin/inetd.exe
And then try to start it:
cygrunsrv --start inetd
On this command I get the following error dialog:
The procedure entry point __progname could not be located in the dynamic link library cygwin1.dll
I have these packages:
inetutils 1.3.2-16
cygrunsrv 0.95-1
cygwin 1.3.10-1
and the OS is NT4.0
Where do I dig to solve the problem ?
___
Best regards,
Yuri Leikind
Most programs fail because they are based on the theory that,
with nine women pregnant, you can get a baby a month.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: problem starting inetd as NT service
2002-05-06 3:28 Yuri Leikind
@ 2002-05-06 7:27 ` Larry Hall (RFK Partners, Inc)
0 siblings, 0 replies; 19+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2002-05-06 7:27 UTC (permalink / raw)
To: Yuri Leikind, cygwin
At 06:30 AM 5/6/2002, Yuri Leikind wrote:
>Hello all,
>
>I cannot start inetd as NT service. I do this:
>
>Install the service:
> cygrunsrv --install inetd --path /usr/sbin/inetd.exe
>
>And then try to start it:
> cygrunsrv --start inetd
>
>On this command I get the following error dialog:
>
> The procedure entry point __progname could not be located in the dynamic link library cygwin1.dll
>
>
>I have these packages:
>
>inetutils 1.3.2-16
>cygrunsrv 0.95-1
>cygwin 1.3.10-1
>
>and the OS is NT4.0
>
>Where do I dig to solve the problem ?
The email list archives is one place to dig. Another is the output of
cygcheck -s -r -v. You'll be looking for a duplicate, older version of
cygwin1.dll on your system. Get rid of it.
Larry Hall lhall@rfk.com
RFK Partners, Inc. http://www.rfk.com
838 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2002-05-30 12:42 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-08 4:43 problem starting inetd as NT service Mellman Thomas
2002-05-08 7:37 ` Larry Hall (RFK Partners, Inc)
2002-05-08 13:25 ` Finding your SID (was Re: problem starting inetd as NT service) Jason Tishler
2002-05-09 4:29 ` Gerald S. Williams
2002-05-09 6:05 ` Jason Tishler
2002-05-09 7:51 ` Gerald S. Williams
2002-05-09 8:12 ` Jason Tishler
2002-05-09 15:43 ` Gerald S. Williams
2002-05-20 9:55 ` Jason Tishler
2002-05-30 9:10 ` Jason Tishler
-- strict thread matches above, loose matches on Subject: below --
2002-05-08 13:38 problem starting inetd as NT service Heribert Dahms
2002-05-08 7:40 Mellman Thomas
2002-05-07 5:39 Mellman Thomas
2002-05-07 8:06 ` Larry Hall (RFK Partners, Inc)
2002-05-07 4:56 john
2002-05-07 3:32 john
2002-05-07 3:52 ` Yuri Leikind
2002-05-06 3:28 Yuri Leikind
2002-05-06 7:27 ` Larry Hall (RFK Partners, Inc)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).