|
From: David R. <dre...@mo...> - 2003-05-08 14:52:03
|
Hi, Try using procexp from = http://www.sysinternals.com/ntw2k/freeware/procexp.shtml to check what = user a service is running as on NT. Regards, David Resnick MobileSpear Inc. -----Original Message----- From: Suo Anders [mailto:And...@sw...]=20 Sent: Thursday, May 08, 2003 16:41 To: wra...@li... Subject: SV: [Wrapper-user] Access network directories from NT service! Hi Leif, thanks for your reply. I've reinstalled the service a number of times and it seems to be ok as = far as the user in "log on as" is the one I set in the conf-file. I'd like the posibility to see what user the service runs as but it = doesn't seem to be possible in NT... I have tried both ways, G:\ and //server/dir, but it makes no = difference.=20 Actually, I have a Win2k machine on which it runs fine! But I can't tell = for sure what the difference is: the OS or the user privileges! But on = the WinNT machine, I do have access to the mapped drive as a "windows = user", I can create and delete files on that drive through Explorer. = It's just when I run my app as a servive it fails.=20 BTW, the jre I'm using for the service is 1.3.1_02. /Anders -----Ursprungligt meddelande----- Fr=E5n: Leif Mortenson [mailto:le...@ta...] Skickat: den 8 maj 2003 13:41 Till: wra...@li... =C4mne: Re: [Wrapper-user] Access network directories from NT service! Suo, Most people have gotten things working setting up an account. A few things for you to check. When you set the wrapper.ntservice.account and = wrapper.ntservice.password properties, id you uninstall and then reinstall the service. This is=20 important or the changes will not take effect. (This is probable ok because you said = you verified the settings in the control panel.) You say that the service is started, it is not running as the correct = user? How are you verifying this? If there was a problem with the user then the service would not start. Under XP, you can see the user that a service is running as by opening the Task Manager and enabling the User Name column. Most services run as SERVICE. Most likely the user is the one that is specified in your wrapper.ntservice.account property. If both of the above are true, then what exactly are you trying to do? Is the network drive mapped to a local drive. Ie R:/ or something or are you accessing the network drive directly? //machine/dir If it is the later, try the first? Just an idea, not sure it will make = a difference. I only have access to 2000 and XP servers. So I am unable to test NT directly. Do you have the ability to test on an XP or 2000 server? = There is nothing I am doing that is widows-version specific, but who knows... Cheers, Leif Suo Anders wrote: >Hi!=20 >I have a java app that monitor and reads/deletes files from a directory = that is mapped from a UNIX=20 >server. I have a user set up with the proper privileges to access the = directory. When I run my Java app through the debbugger or as a console = app, there is no problem. However, as I install the app as a NT service, = it can't access the directory. I use the wrapper.ntservice.account and = wrapper.ntservice.password properties of the conf-file to set the user = that the service should run as, and looking at the installed service = hrough control panel->services, it seems OK. But when I start the = service, it still doesn't seem to run as the correct user.=20 >I've seen that some other users of the Wrapper have come across = problems similar to mine but I haven't found the proper solution!=20 >OS is Win NT Server, Wrapper version 3.0.2. >Please help!=20 > >Regards,=20 >Anders=20 > =20 > ------------------------------------------------------- Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user ------------------------------------------------------- Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |