Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

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


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

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?

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

    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.

        It's Win32::Lanman! If you do use Win32::LanMan the module doesn't initialize properly and doesn't export the constants!

        On the other hand I did have the code a little wrong. I now tried

        use Win32::Lanman; Win32::Lanman::GrantPrivilegeToAccount( Win32::NodeName(), SE_SERVICE_ +LOGON_NAME, ['Guest']);
        and it worked fine. Sorry.

        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://250161]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-16 03:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found