ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » MSUR_MQADMIN & WinXP & File System Permissions

Post new topic  Reply to topic
 MSUR_MQADMIN & WinXP & File System Permissions « View previous topic :: View next topic » 
Author Message
RogerLacroix
PostPosted: Sun Nov 14, 2004 6:28 pm    Post subject: MSUR_MQADMIN & WinXP & File System Permissions Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi Jason,

Since you are IBM's resident MQ and Windows expert, I have a question for you: Does IBM do MQ file system security differently on Windows XP than Windows 2000 (or maybe its more of just Windows file system permissions).

I have wasted a week with really weird problems testing a MQ security exit on Windows XP. The MQ security exit code works perfectly on Windows 2000 and Solaris 8. Actually, the same DLL was tested on Windows 2000 & Windows XP but only WinXP showed weird errors.

Errors included (WinXP only):
- FDCs being generated
- amqrmppa crashing
- Windows running crash reporter to send a report to Microsoft
- No log files being generated by the security exit

I started out with Windows XP Home Edition SP2 and WMQ v.5.3 CSD7 and gcc v3.2.3. I thought maybe the OS or the order of the install items was the problem.

So, I deleted the OS and installed Windows XP Pro and SP2 first before any else (I applied all XP patches including some related to loopback). Then I installed WMQ v5.3 and applied CSD8 and my old version of Visual Studio v6.

I rebuild the security exit (dll) with Visual Studio v6 (rather than gcc) and got the same error. I just couldn't believe it.

I have 2 sets of 'logging code' in the security exit and I was bewildered why both sets produced nothing, so I decided to go through the code with a fine toothcomb. Anyway, I discovered for one set, after it issued a fopen for c:\log.log that I never tested to make sure the fopen was successful. I mean, how could opening c:\log.log fail when I have a C drive!?!?!

Of course, when I fixed this silly little error, I longer generated FDCs or amqrmppa crashing or launching MS reporter. But no log files. Then I remembered about problems a triggered application had last year of not having access to printers on Windows 2000 Server, so it got me thinking.

When I tried a location of C:\Temp\log.log life was fine. Then I created an extra temp directory level and tried C:\Temp\Temp\log.log and it worked. But if I used C:\log.log it would fail. Once I figured this out, I was able to write the 'GetLastError' to a file that I could view. I was getting an ErrorCode of 5, which is 'ERROR_ACCESS_DENIED'.

After this ordeal, I really want to know why MSUR_MQADMIN cannot write to a file in the root directory of the C drive (on Windows XP)???? Is IBM setting file system permissions for MSUR_MQADMIN or is it WinXP doing something special for a system account??

Of course, now I get to move on to Windows 2003 Server and discover more odd ball behavior.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
PeterPotkay
PostPosted: Sun Nov 14, 2004 7:15 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Roger, this isn't going to be much help, but MQ is not supported on XP Home (any level) or XP Pro with SP2. Only XP Pro SP1 is supported. Maybe this is the source of some, all or none of your errors with XP.

Hopefully Jason or Nigel will have something more specific.
_________________
Peter Potkay
Keep Calm and MQ On


Last edited by PeterPotkay on Mon Nov 15, 2004 4:52 am; edited 1 time in total
Back to top
View user's profile Send private message
JasonE
PostPosted: Mon Nov 15, 2004 2:01 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

Well, it would sound to me like MUSR_MQADMIN doesnt have write access to the root of the C drive. MQ doesnt do anything 'different' based on the operating system in this respect, but from your description I strongly suspect XP has tightened security on who can write to the root drive.

FWIW on my XP (Pro) system, the security of the C drive does not give Everyone write access. I have explicitly added musr_mqadmin to make my life easier. I dont think you can see secuirty permissions (easily?) on XP Home - On XP Pro you need to turn off simple file sharing to get the panels.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Mon Nov 15, 2004 10:11 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Thanks Jason.

Quote:
FWIW on my XP (Pro) system, the security of the C drive does not give Everyone write access. I have explicitly added musr_mqadmin to make my life easier.

You mean in Explorer you right-clicked on the C drive, and selected Sharing and preceed to added a share and then add MUSR_MQADMIN to it?? True?

Quote:
On XP Pro you need to turn off simple file sharing to get the panels.

Where did you find this?

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
JasonE
PostPosted: Tue Nov 16, 2004 2:02 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

No not Sharing, on XP Pro there is a security tab (which I suspect isnt present on XP Home). I dont own an XP Home system to play with, but does this link help?

http://www.tweakxp.com/tweak510.aspx

Quote:
Quote:
On XP Pro you need to turn off simple file sharing to get the panels.
Where did you find this?


Go to folder view options, bottom tick box. On XP Pro this gives you the security tab.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MSUR_MQADMIN & WinXP & File System Permissions
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.