Solved

Login for NT Services

Posted on 2001-06-21
12
490 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
  • 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
 
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 50 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IExtractImage Delphi 14 198
URL for downloading Google Chrome for Win XP 2 118
JAudiorecorder record freezing the app 29 59
Dynamically Created Query 3 49
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

932 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now