<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Service and application in single EXE? Update</title>
	<atom:link href="http://blog.delphi-jedi.net/2008/05/10/service-and-application-in-single-exe/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.delphi-jedi.net/2008/05/10/service-and-application-in-single-exe/</link>
	<description>Joint Endeavor of Delphi Innovators of Windows Programming</description>
	<lastBuildDate>Thu, 24 Nov 2011 17:58:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Oliver</title>
		<link>http://blog.delphi-jedi.net/2008/05/10/service-and-application-in-single-exe/comment-page-1/#comment-646</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Mon, 12 May 2008 19:06:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.delphi-jedi.net/?p=189#comment-646</guid>
		<description>Oh, sorry. That makes sense, of course.</description>
		<content:encoded><![CDATA[<p>Oh, sorry. That makes sense, of course.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Remko</title>
		<link>http://blog.delphi-jedi.net/2008/05/10/service-and-application-in-single-exe/comment-page-1/#comment-644</link>
		<dc:creator>Remko</dc:creator>
		<pubDate>Mon, 12 May 2008 18:44:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.delphi-jedi.net/?p=189#comment-644</guid>
		<description>@Oliver: I meant the Local Service account (sorry for the typo) which was introduced in win2003 (http://msdn.microsoft.com/en-us/library/ms684188(VS.85).aspx). The account has considerably less permissions than the System account.</description>
		<content:encoded><![CDATA[<p>@Oliver: I meant the Local Service account (sorry for the typo) which was introduced in win2003 (<a href="http://msdn.microsoft.com/en-us/library/ms684188(VS.85" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms684188(VS.85</a>).aspx). The account has considerably less permissions than the System account.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Robinson</title>
		<link>http://blog.delphi-jedi.net/2008/05/10/service-and-application-in-single-exe/comment-page-1/#comment-618</link>
		<dc:creator>Mark Robinson</dc:creator>
		<pubDate>Sun, 11 May 2008 10:20:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.delphi-jedi.net/?p=189#comment-618</guid>
		<description>Cheers. Forgot about svchost.exe too, but glad I could help!</description>
		<content:encoded><![CDATA[<p>Cheers. Forgot about svchost.exe too, but glad I could help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Wimmer</title>
		<link>http://blog.delphi-jedi.net/2008/05/10/service-and-application-in-single-exe/comment-page-1/#comment-590</link>
		<dc:creator>Christian Wimmer</dc:creator>
		<pubDate>Sat, 10 May 2008 19:51:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.delphi-jedi.net/?p=189#comment-590</guid>
		<description>Thank you. I updated the post with your information.</description>
		<content:encoded><![CDATA[<p>Thank you. I updated the post with your information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Robinson</title>
		<link>http://blog.delphi-jedi.net/2008/05/10/service-and-application-in-single-exe/comment-page-1/#comment-588</link>
		<dc:creator>Mark Robinson</dc:creator>
		<pubDate>Sat, 10 May 2008 17:19:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.delphi-jedi.net/?p=189#comment-588</guid>
		<description>Find out what the parent process is, it will always be &quot;services.exe&quot; if the app is running as a service.</description>
		<content:encoded><![CDATA[<p>Find out what the parent process is, it will always be &#8220;services.exe&#8221; if the app is running as a service.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Wimmer</title>
		<link>http://blog.delphi-jedi.net/2008/05/10/service-and-application-in-single-exe/comment-page-1/#comment-573</link>
		<dc:creator>Christian Wimmer</dc:creator>
		<pubDate>Sat, 10 May 2008 10:13:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.delphi-jedi.net/?p=189#comment-573</guid>
		<description>So what is the right way to determine whether my process is running as a service or not? I suspect it includes the service control manager - and a connection to it. Actually I don&#039;t have time to find it out, so maybe some wise guys can show it? thx</description>
		<content:encoded><![CDATA[<p>So what is the right way to determine whether my process is running as a service or not? I suspect it includes the service control manager &#8211; and a connection to it. Actually I don&#8217;t have time to find it out, so maybe some wise guys can show it? thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver</title>
		<link>http://blog.delphi-jedi.net/2008/05/10/service-and-application-in-single-exe/comment-page-1/#comment-572</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Sat, 10 May 2008 09:21:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.delphi-jedi.net/?p=189#comment-572</guid>
		<description>Lars, that&#039;s exactly how it should be done. Normally you would expect this to be done by installers, too, but too many people seem to think that running as SYSTEM is the only way. Especially outbound services should be run with as limited rights as possible.

Remko, this is only valid for CIFS/SMB connections and wasn&#039;t &lt;em&gt;new&lt;/em&gt; with Windows 2003, although it may be &lt;em&gt;even stricter&lt;/em&gt; there than it was previously. I know for sure that you can relax the policies in order to allows this, but this is a horrible horrible style. And for changing the password, it&#039;s good to have a service which stores this in the secret stash (for example IIS allows you to configure this behavior, by saying that IIS can manage its own user accounts).</description>
		<content:encoded><![CDATA[<p>Lars, that&#8217;s exactly how it should be done. Normally you would expect this to be done by installers, too, but too many people seem to think that running as SYSTEM is the only way. Especially outbound services should be run with as limited rights as possible.</p>
<p>Remko, this is only valid for CIFS/SMB connections and wasn&#8217;t <em>new</em> with Windows 2003, although it may be <em>even stricter</em> there than it was previously. I know for sure that you can relax the policies in order to allows this, but this is a horrible horrible style. And for changing the password, it&#8217;s good to have a service which stores this in the secret stash (for example IIS allows you to configure this behavior, by saying that IIS can manage its own user accounts).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Remko</title>
		<link>http://blog.delphi-jedi.net/2008/05/10/service-and-application-in-single-exe/comment-page-1/#comment-571</link>
		<dc:creator>Remko</dc:creator>
		<pubDate>Sat, 10 May 2008 08:05:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.delphi-jedi.net/?p=189#comment-571</guid>
		<description>AFAIK services running under the Local System account are denied access to the network (this was new in windows 2003). If you do need your service to access the network you should use the Network Service account in which case you need to give the computer account (computername followed by a $) permissions on the remote system (only possible in domain environments). If you need access to a remote share (CIFS/SMB) which does not permit anonymous access or access to the computer account you should use a (domain) user account.
If you do use a user account make sure it&#039;s not a domain admin, change the password at regular intervals etc. etc.</description>
		<content:encoded><![CDATA[<p>AFAIK services running under the Local System account are denied access to the network (this was new in windows 2003). If you do need your service to access the network you should use the Network Service account in which case you need to give the computer account (computername followed by a $) permissions on the remote system (only possible in domain environments). If you need access to a remote share (CIFS/SMB) which does not permit anonymous access or access to the computer account you should use a (domain) user account.<br />
If you do use a user account make sure it&#8217;s not a domain admin, change the password at regular intervals etc. etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lars Bargmann</title>
		<link>http://blog.delphi-jedi.net/2008/05/10/service-and-application-in-single-exe/comment-page-1/#comment-565</link>
		<dc:creator>Lars Bargmann</dc:creator>
		<pubDate>Sat, 10 May 2008 04:55:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.delphi-jedi.net/?p=189#comment-565</guid>
		<description>No, services are not restricted from the network, but running them under sys-account will most likely tick off your AD-people, if your service needs write-access to something... :-)
Where I work (Rather big IT-infrastructure) every service that needs to do anything on the network-drives, will be running under a service-account that is being maintained in the AD...</description>
		<content:encoded><![CDATA[<p>No, services are not restricted from the network, but running them under sys-account will most likely tick off your AD-people, if your service needs write-access to something&#8230; <img src='http://blog.delphi-jedi.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
Where I work (Rather big IT-infrastructure) every service that needs to do anything on the network-drives, will be running under a service-account that is being maintained in the AD&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver</title>
		<link>http://blog.delphi-jedi.net/2008/05/10/service-and-application-in-single-exe/comment-page-1/#comment-562</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Fri, 09 May 2008 15:24:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.delphi-jedi.net/?p=189#comment-562</guid>
		<description>Hi, if you mean CIFS/SMB, then you are most certainly right. But services have never been restricted using the network in any sense.</description>
		<content:encoded><![CDATA[<p>Hi, if you mean CIFS/SMB, then you are most certainly right. But services have never been restricted using the network in any sense.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

