Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Login for NT Services

Posted on 2001-06-21
12
Medium Priority
?
510 Views
Last Modified: 2008-02-01
I encounterd an error while starting service that has login name in ServiceStartName. The error occured when starting the service:

net start MyServiceName

The error is:

login failed for user ...

I need a help
Thanks
Motaz
0
Comment
Question by:Motaz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
  • 2
  • +1
12 Comments
 
LVL 7

Author Comment

by:Motaz
ID: 6213734
When I ommit ServiceStartName and Password, it works, but it cann't access network resources, such as MS-SQL servers
0
 
LVL 17

Expert Comment

by:inthe
ID: 6213830
did it give an error code so you can type
net helpmsg "errorcode"
0
 
LVL 2

Expert Comment

by:FrodoBeggins
ID: 6213858
  Basicaly NT services are started with SYSTEM account. You may not be able to access the network.
   In the other hand is your account, which may connect to the network, but can't start as a service. I think you should go to "Local Security serrings" => "Local policies" => "User rights assignment" and allow "Logon as a service" to your account
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 7

Author Comment

by:Motaz
ID: 6213869
Error code: 1069
The error message is:


"The service did not start due to logon failure"
0
 
LVL 2

Accepted Solution

by:
FrodoBeggins earned 200 total points
ID: 6213879
  Basicaly NT services are started with SYSTEM account. You may not be able to access the network.
   In the other hand is your account, which may connect to the network, but can't start as a service. I think you should go to "Local Security serrings" => "Local policies" => "User rights assignment" and allow "Logon as a service" to your account
0
 
LVL 2

Expert Comment

by:FrodoBeggins
ID: 6213885
This is on Win2k. I have no NT4 arround here to see, but should be close to this.
0
 
LVL 7

Author Comment

by:Motaz
ID: 6213959
FrodoBeggins, it works in 2000 but Where can I find that in NT4 WS.
0
 
LVL 2

Expert Comment

by:FrodoBeggins
ID: 6214009
I have no nt4 arround, but I think it should be in Start -> Programs -> Administrative tools (common) -> User Manager
0
 
LVL 17

Expert Comment

by:geobul
ID: 6214234
Hi,
Start-Settings-Control Panel-Services:
Select your service and press 'StartUp' button. Here you have an option to start that service under an account different than System.

Regards, Geo
0
 
LVL 2

Expert Comment

by:FrodoBeggins
ID: 6214311
And hope it starts, right, Geo? :)
0
 
LVL 17

Expert Comment

by:geobul
ID: 6218534
I hope so. Motaz could try different users this way to see what exactly the problem is. I've tried a simple service program which copies a remote file with no login problems with:
- ServiceType : stWin32
- StartType : stManual
using ServiceStartName:
- blank : system account;
- local account (administrator);
- domain account (domain\user).

procedure TGeoService.ServiceExecute(Sender: TService);
begin
  CopyFile('\\computer\public\test.txt','c:\temp\');
  while not Terminated do begin
    ServiceThread.ProcessRequests(False);
  end;
end;

Regards, Geo
0
 
LVL 7

Author Comment

by:Motaz
ID: 6220874
Thanks FrodoBeggins you guided me to the right way. The solution as geobul stated, is to try different login in Services manager. When you click ok, Log as service will be granted automatically to that login.

geobul, I'll post to you points!

Motaz
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question