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 » General IBM MQ Support » How do I create a Principal on unix?

Post new topic  Reply to topic
 How do I create a Principal on unix? « View previous topic :: View next topic » 
Author Message
LouML
PostPosted: Fri Sep 28, 2007 4:44 am    Post subject: How do I create a Principal on unix? Reply with quote

Partisan

Joined: 10 Nov 2005
Posts: 305
Location: Jersey City, NJ / Bethpage, NY

Another newbie question here.

I have a Windows user running MQ Explorer. He is trying to connect to an MQ 5.3.12 server running on Solaris 9.

The first error he received was AMQ4043 (Queue Manager not available for connection.). I saw that there was no SYSTEM.ADMIN.SVRCONN channel, so I created it.

Now he receives error AMQ4036 (Access not authorized). I tried to use setmqaut to give him authorization but received error AMQ7026 (A principal or group name was invalid.). I do not see his userid in either /etc/passwd or /etc/group.

However, he said it works on another server, and I do not see his userid in either /etc/passwd or /etc/group on that server either. The SYSTEM.ADMIN.SVRCONN channel on this server is identical to the one I created on the original server.

Though I've been thrust into the Unix world, my background is Compaq NSK (Tandem). We had an altmquser command for MQ on NSK to create a Principal and Group. I see that there is no such equivilant for unix.

How do I create a Principal on unix? Is it created automatically when the sysadmin adds a userid?

Any ideas would be greatly apprciated.
Back to top
View user's profile Send private message
atheek
PostPosted: Fri Sep 28, 2007 5:08 am    Post subject: Reply with quote

Partisan

Joined: 01 Jun 2006
Posts: 327
Location: Sydney

AFAIK, the new principal is created when your sysadmin adds a new user. The reason for not seeing the user in the original server may be that you are using nis or nis+ mechanism. If so you wont see the user in /etc/passwd.


just try this for a start if you are using nis:

ypcat group|grep <username>

More Info is available http://www.cs.gsu.edu/nisar/csc3320fl02/nis/

so to create the missing principal better ask your sysadmin to add a new user

Regards,
Atheek
Back to top
View user's profile Send private message
LouML
PostPosted: Fri Sep 28, 2007 6:03 am    Post subject: Reply with quote

Partisan

Joined: 10 Nov 2005
Posts: 305
Location: Jersey City, NJ / Bethpage, NY

atheek wrote:
AFAIK, the new principal is created when your sysadmin adds a new user. The reason for not seeing the user in the original server may be that you are using nis or nis+ mechanism. If so you wont see the user in /etc/passwd.


just try this for a start if you are using nis:

ypcat group|grep <username>

More Info is available http://www.cs.gsu.edu/nisar/csc3320fl02/nis/

so to create the missing principal better ask your sysadmin to add a new user

Regards,
Atheek


I don't see the user using the ypcat group | grep <username> on either server.
Back to top
View user's profile Send private message
LouML
PostPosted: Fri Sep 28, 2007 7:34 am    Post subject: Reply with quote

Partisan

Joined: 10 Nov 2005
Posts: 305
Location: Jersey City, NJ / Bethpage, NY

Well, I found out why it works on one server and not the other. The previous admin disabled OAM.

When I do a ps -ef | grep -i AMQZFUMA on the server that works, I don't see the process, but when I do it on the server that he can't access, I see it running. (By the way, the server where it's disabled is a development machine)

I guess one of two things can happen:

1 - He has to get a proper id created on the server and then I can grant him access using setmqaut

2 - I can add 'mqm' to the MCAUSER of the SYSTEM.ADMIN.SVRCONN channel.

I should add that this access is supposedly only temporary, while someone he works with is on vacation (but that remains to be seen).
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Sep 28, 2007 7:38 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

LouML wrote:
The previous admin disabled OAM.




Third option is best choice. Create a generic user and group, for the role that this user will be acting in. Grant it priviledges using setmqaut, and then set that on MCAUSer.

NEVER EVER EVER set MCAUser to mqm. EVEN on Development.

You compromise every MQ queue manager that can be reached by the network.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Sep 28, 2007 8:04 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

And remember that on Unix setmqaut never grants permission to the user. Permissions are always granted to the group. If a user was mentioned in the command, the permissions are granted to the user's primary group.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » How do I create a Principal on unix?
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.