Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Can Win32::Daemon access remote shares?

by rah (Monk)
on Apr 13, 2003 at 18:58 UTC ( [id://250157]=note: print w/replies, xml ) Need Help??


in reply to Re: Can Win32::Daemon access remote shares?
in thread Can Win32::Daemon access remote shares?

That looks great Jenda. Though I don't know if it is what everyone else would want. I would love for the die to really die, i.e. stop the service. I think ot would be much safer that way. No risk of a runaway service.

For now, I think if I could just get the install to work as a network capable user, I would be home free. But setting the params in the info section always fails with :

Failed to install: The account name is invalid or does not exist.
If you or anyone could suggest a way around that, I'd appreciate it. Even if you just send me off in search of some other resources. :>

Replies are listed 'Best First'.
Re: Re: Re: Can Win32::Daemon access remote shares?
by Jenda (Abbot) on Apr 13, 2003 at 19:16 UTC

    That's why it would be optional. The reason why I do not want the die to really die is that IMHO most often the reason of the die is something temporary. Something I forgot the check for and that will eventualy work again. Like for example that the remote computer/database is temporarily inaccessible, because it's being rebooted or something similar. Therefore I only want to write the error into the log file and try to continue.

    Since I have scripts that process the log files each night, archive them and report any errors or unexpected messages, I do notice there was something uncaught at worst the next morning.

    To get back to your problem, did you specify the domain of the user? Or if the account is local then you should use either "computername\user" or ".\user". I think the only computer where you would not have to specify the domain would be a domain controler (Erm ... I don't know how Active Directory works in regard to this. I'm talking about the good old NT domain controlers.)

    Jenda
    Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
       -- Rick Osborne

    Edit by castaway: Closed small tag in signature

      Well. that fixed the install problem. Thank you. FWIW this is the PDC under gool ole NT. The .\user got the install to work, but starting the service now gives the following:
      System error 1069 has occurred. The service did not start due to a logon failure.
      I'm hoping this isn't something else simple that I've just missed. Is there anything special about how the password is entered?

        I don't think so. But the account must have the "Log on as service" user right. You can give it that right either using the "User Manager" or Win32::Lanman::GrantPrivilegeToAccount('', SE_SERVICE_LOGON_NAME, 'the_username').

        If you set the account for a service using Service Manager, the specified account gets that right automaticaly. Sorry I forgot about this before.

        HTH, Jenda
        Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
           -- Rick Osborne

        Edit by castaway: Closed small tag in signature

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://250157]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-20 00:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found