473,699 Members | 2,734 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Local service accounts and network shares

ok, so I kow that the local system accoutn can't get to a network share, and
if you want to do that and not lose any of your other priveliges you need to
run under a user name and password that is configured at installation.

So now for the problem.

How do I get around this ?

I really would liek to be able to reduce the amount of steps that the user
has to take to deploy my aplication, and I really don't want to send the user
in to modify local account policies. Also it creates a lot of hell for tech
support each time a user changes their password and the services all decide
to die due to privelige issues.

How do you clean this issue up ?

any hints/commnets/sugestions will be greatly appreciated.
Nov 16 '05 #1
2 4563
Hi Bas,

You're talking about network resource security vs. user friendly, and
the two are often disparate (at least in a well secured network
environment). The best way I've found to work in a disconnected
environment is to test the network resource, trap any errors, and prompt
the user for a username/password. I then store the information they
provide in an encrypted resource file in their local account folder
(C:\Documents and Settings\[UserName]\Application Data\[MyApp]).

The stored information in the encrypted file can be used so that the
user only gets prompted once when a particular resource account login
changes. However, you must be considerate of security policies and
issues at any given location if using this type of approach.

Hope this helps.

- Glen

Bas Hamer wrote:
ok, so I kow that the local system accoutn can't get to a network share, and
if you want to do that and not lose any of your other priveliges you need to
run under a user name and password that is configured at installation.

So now for the problem.

How do I get around this ?

I really would liek to be able to reduce the amount of steps that the user
has to take to deploy my aplication, and I really don't want to send the user
in to modify local account policies. Also it creates a lot of hell for tech
support each time a user changes their password and the services all decide
to die due to privelige issues.

How do you clean this issue up ?

any hints/commnets/sugestions will be greatly appreciated.

Nov 16 '05 #2
The "LocalSyste m" account uses the machine account to access network
resources, if you run in a AD domain realm (were all machine accounts are
considered normal user accounts) you simply have to grant this account the
required access rights to the resource.
If this is not possible, you could call NetUseAdd through PInvoke in order
to establish a use record (specifying the user credentials with appropriate
privileges) .

Willy.

"Bas Hamer" <Ba******@discu ssions.microsof t.com> wrote in message
news:E2******** *************** ***********@mic rosoft.com...
ok, so I kow that the local system accoutn can't get to a network share,
and
if you want to do that and not lose any of your other priveliges you need
to
run under a user name and password that is configured at installation.

So now for the problem.

How do I get around this ?

I really would liek to be able to reduce the amount of steps that the user
has to take to deploy my aplication, and I really don't want to send the
user
in to modify local account policies. Also it creates a lot of hell for
tech
support each time a user changes their password and the services all
decide
to die due to privelige issues.

How do you clean this issue up ?

any hints/commnets/sugestions will be greatly appreciated.

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
18168
by: Kona | last post by:
Hello, My server is part of a W2K domain. What do you advice me as account to run my SQL*Server, service started with a domain user account or as local system ? I need advices from a security point of view. Thank's in advance
3
1722
by: AHartman | last post by:
What are gotchas for starting Sql & the agent with a Local system account versus a system Domain account.
6
2933
by: Rob | last post by:
Hi, I am working on a project that requires a Windows Service which performs the following file transfer functions. 1. It monitors a specific local directory on a Windows 2003 Server. 2. When it finds files with a specific extension, it queries a SQL Server database to determine what workstation will be the destination of a File.Copy. 3. It copies those files to the appropriate workstations on the LAN,
3
13351
by: Bonj | last post by:
I need to write a windows service, and the only way it can access a shared drive on a file server on the network is if the installer is put in "User" mode - "LocalService", "LocalSystem" and "NetworkService" don't work. i.e. it can't access the shared drive. But in "User" it can. But I don't want it in user mode, if possible. I would rather it be a service. Is there any way to do it?
5
2689
by: pberna | last post by:
Dear all, I built a Web Form application to start and stop a Windows Service remotely. I successful tested the application on Windows 2000 server + IIS. I must include the ASPNET user to the Administration group (on server side) to have the necessary authorization to start a Windows Service (I don't understand why "Power User" rights are not enough to do the same thing) Although I'm able to start a service using windows 2000 server...
3
1606
by: jimmyfishbean | last post by:
Hi, My client has the following network structure: 2 Windows 2003 servers : Server 1 - Web server running IIS, ftp import and export folder, ASP.NET SOAP web service and asp code on here. Server 2 - SQL server with database on. Want to store images on here accessed via a share.
2
17705
by: ABCL | last post by:
Hi All, Can any one tell me that what is the difference between Network Service, Local Service and Local System ACcount for window services ABCL
4
1794
by: Daniel | last post by:
Can someone please describe why impersonation requires the impersonator to be local admin?
5
6678
by: lmttag | last post by:
ASP.NET 2.0 (C#) application Intranet application (not on the Internet) Using Windows authentication and impersonation Windows Server 2003 (IIS6) Server is a member server on a domain Logged into server as a domain user that is in the local Administrators group on the server Workstation is on the same domain Logged into the workstation as a domain user, which is also in the local Administrators group on the server and workstation
0
8612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9171
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9032
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8880
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6532
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2342
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.