Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by Jenda (Abbot)
on Apr 13, 2003 at 19:16 UTC ( [id://250160]=note: print w/replies, xml ) Need Help??


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

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

Replies are listed 'Best First'.
Re: Re: Re: Re: Can Win32::Daemon access remote shares?
by rah (Monk) on Apr 13, 2003 at 19:25 UTC
    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

        Thought I had gotten Win32::LanMan installed, but when I try the snippet you provided, or a variant using LsaAddAccountRights I get undefined subroutine errors. Guess I'll have to wait for Monday and a GUI.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-12-12 18:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (65 votes). Check out past polls.