Login for NT Services

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
LVL 7
MotazAsked:
Who is Participating?
 
FrodoBegginsConnect With a Mentor Commented:
  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
 
MotazAuthor Commented:
When I ommit ServiceStartName and Password, it works, but it cann't access network resources, such as MS-SQL servers
0
 
intheCommented:
did it give an error code so you can type
net helpmsg "errorcode"
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
FrodoBegginsCommented:
  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
 
MotazAuthor Commented:
Error code: 1069
The error message is:


"The service did not start due to logon failure"
0
 
FrodoBegginsCommented:
This is on Win2k. I have no NT4 arround here to see, but should be close to this.
0
 
MotazAuthor Commented:
FrodoBeggins, it works in 2000 but Where can I find that in NT4 WS.
0
 
FrodoBegginsCommented:
I have no nt4 arround, but I think it should be in Start -> Programs -> Administrative tools (common) -> User Manager
0
 
geobulCommented:
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
 
FrodoBegginsCommented:
And hope it starts, right, Geo? :)
0
 
geobulCommented:
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
 
MotazAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.