| Author | 
		  Message
		 | 
		
		  | flwilliams87 | 
		  
		    
			  
				 Posted: Thu Sep 26, 2013 10:08 am    Post subject: MQ adding spaces at the end of my ID causing 2035 | 
				     | 
			   
			 
		   | 
		
		
		    Acolyte
 
 Joined: 04 Feb 2003 Posts: 66 Location: Chicago, IL 
  | 
		  
		    
			  
				I create a userid on Linus using useradd TEST01
 
I grant permission to created ID using setmqaut -m QM1 -t queue -n TESTQ -p TEST01 +allmqi
 
I sudo to created ID su - TEST01
 
and try to put messages on queue ./qmsput TEST1 QM1
 
 
FAIL!  I check the error logs and it says AMQ8077: Entity 'TEST01       ' has insufficeint authority to access object.
 
 
My question is... where did the extra spaces come from? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | JosephGramig | 
		  
		    
			  
				 Posted: Thu Sep 26, 2013 11:02 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand Master
 
 Joined: 09 Feb 2006 Posts: 1244 Location: Gold Coast of Florida, USA 
  | 
		  
		    
			  
				always add users in all lower case letters for all distributed platforms. Not uppper. Not mixed case.
 
 
Lower Case I said! | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | flwilliams87 | 
		  
		    
			  
				 Posted: Thu Sep 26, 2013 11:09 am    Post subject: Tried lower case. Sill adding appending spaces | 
				     | 
			   
			 
		   | 
		
		
		    Acolyte
 
 Joined: 04 Feb 2003 Posts: 66 Location: Chicago, IL 
  | 
		  
		    
			  
				| Just tried lower case and it is still showing/adding appending spaces in the error logs. Thoughts? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | exerk | 
		  
		    
			  
				 Posted: Thu Sep 26, 2013 11:10 am    Post subject: Re: Tried lower case. Sill adding appending spaces | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 02 Nov 2006 Posts: 6339
  
  | 
		  
		    
			  
				
   
	| flwilliams87 wrote: | 
   
  
	| Just tried lower case and it is still showing/adding appending spaces in the error logs. Thoughts? | 
   
 
 
Did you refresh security? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | flwilliams87 | 
		  
		    
			  
				 Posted: Thu Sep 26, 2013 11:19 am    Post subject: Did the refresh security command | 
				     | 
			   
			 
		   | 
		
		
		    Acolyte
 
 Joined: 04 Feb 2003 Posts: 66 Location: Chicago, IL 
  | 
		  
		    
			  
				| Did the refresh security command and it's still appending spaces... | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | exerk | 
		  
		    
			  
				 Posted: Thu Sep 26, 2013 11:27 am    Post subject: Re: Did the refresh security command | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 02 Nov 2006 Posts: 6339
  
  | 
		  
		    
			  
				
   
	| flwilliams87 wrote: | 
   
  
	| Did the refresh security command and it's still appending spaces... | 
   
 
 
Create a group, put the user in the group and make sure that the group you created is the user's Primary group. Run the command again using -g [group name] instead of the principle (-p) name. Refresh security and post the results again please. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | JosephGramig | 
		  
		    
			  
				 Posted: Thu Sep 26, 2013 11:31 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand Master
 
 Joined: 09 Feb 2006 Posts: 1244 Location: Gold Coast of Florida, USA 
  | 
		  
		    
			  
				First, when you grant in UNIX with -p it actually grants to the primary group of that ID.
 
 
Never grant with -p in UNIX.
 
 
Second, did you mean you su - test01
 
And then, ./amqsput TEST1 QM1
 
 
?
 
 
And what does amqoamd -s -m TEST1 |grep -v mqm
 
say? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | flwilliams87 | 
		  
		    
			  
				 Posted: Thu Sep 26, 2013 11:44 am    Post subject: created group and added user | 
				     | 
			   
			 
		   | 
		
		
		    Acolyte
 
 Joined: 04 Feb 2003 Posts: 66 Location: Chicago, IL 
  | 
		  
		    
			  
				created a group, deleted the user, recreated the user added it group.  granted the group +allmqi permissions to the queue.  Still getting error message with appending spaces...
 
 
                    VRMF(7.5.0.1) QMgr(QM1)
 
                   
 
AMQ8077: Entity 'newuser      ' has insufficient authority to access object
 
'QM1'. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | flwilliams87 | 
		  
		    
			  
				 Posted: Thu Sep 26, 2013 11:50 am    Post subject: I feel real special righ now... | 
				     | 
			   
			 
		   | 
		
		
		    Acolyte
 
 Joined: 04 Feb 2003 Posts: 66 Location: Chicago, IL 
  | 
		  
		    
			  
				| Please feel free to flame away.  I granted the group permission to my Queue Manager and viola.  I'm sorry for wasting everyone's time.  Thanks for the help. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | exerk | 
		  
		    
			  
				 Posted: Thu Sep 26, 2013 12:04 pm    Post subject: Re: I feel real special righ now... | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 02 Nov 2006 Posts: 6339
  
  | 
		  
		    
			  
				
   
	| flwilliams87 wrote: | 
   
  
	| Please feel free to flame away.  I granted the group permission to my Queue Manager and viola.  I'm sorry for wasting everyone's time.  Thanks for the help. | 
   
 
 
You didn't waste anyone's time - it keeps us sharp!    
 
 
More importantly, you learned a valuable lesson. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mvic | 
		  
		    
			  
				 Posted: Thu Sep 26, 2013 12:45 pm    Post subject: Re: MQ adding spaces at the end of my ID causing 2035 | 
				     | 
			   
			 
		   | 
		
		
		    Jedi
 
 Joined: 09 Mar 2004 Posts: 2080
  
  | 
		  
		    
			  
				
   
	| flwilliams87 wrote: | 
   
  
	| My question is... where did the extra spaces come from? | 
   
 
 
MQ very often appends spaces in fixed-length fields.  It's not an error. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |