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 Installation/Configuration Support » disable logins to mqm user on Linux

Post new topic  Reply to topic
 disable logins to mqm user on Linux « View previous topic :: View next topic » 
Author Message
mcouture
PostPosted: Thu Jul 20, 2023 6:54 am    Post subject: disable logins to mqm user on Linux Reply with quote

Newbie

Joined: 13 Oct 2010
Posts: 3

Can we disable interactive logins to the mqm user?

Do we need to su to mqm for any reason or can personal IDs run all necessary admin commands (being members of group mqm)?
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Sun Jul 23, 2023 4:06 pm    Post subject: Re: disable logins to mqm user on Linux Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2495
Location: Melbourne, Australia

mcouture wrote:
Can we disable interactive logins to the mqm user?

Do we need to su to mqm for any reason or can personal IDs run all necessary admin commands (being members of group mqm)?


Disable interactive login - Yes

Use su - Yes - Actually, use sudo

Some MQ admin commands will result in MQ processes running as the current userid, or create MQ authority profiles for current userid.
To avoid any issues, we always "sudo -u mqm -l", with no password required, and run admin commands from an mqm shell.
_________________
Glenn
Back to top
View user's profile Send private message
mcouture
PostPosted: Mon Jul 24, 2023 6:01 am    Post subject: Reply with quote

Newbie

Joined: 13 Oct 2010
Posts: 3

Thank you. I "knew" it was possible but our Unix team has "officially" stated that disabling interactive logins AND having sudo available is not possible.

Everywhere I've supported MQ we've done it this way. I think I had one place that had us do MQ admin work with our personal IDs but cannot remember....long long ago...

I am having a meeting with that team this week....
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Mon Jul 24, 2023 4:08 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2495
Location: Melbourne, Australia

mcouture wrote:
Thank you. I "knew" it was possible but our Unix team has "officially" stated that disabling interactive logins AND having sudo available is not possible...

From a security perspective, it does not make sense to not allow sudo to mqm without a password, when it is required to properly maintain and operate MQ. What are they concerned about?
Code:

> sudo -l
User xxxxxxxx may run the following commands on yyyyyyy:
    (mqm) NOPASSWD: ALL

_________________
Glenn
Back to top
View user's profile Send private message
mcouture
PostPosted: Tue Jul 25, 2023 4:33 am    Post subject: Reply with quote

Newbie

Joined: 13 Oct 2010
Posts: 3

yes, there is the right way , the wrong way and "the way we do it" way....haha
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jul 25, 2023 7:58 pm    Post subject: Reply with quote

Grand High Poobah

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

gbaddeley wrote:
mcouture wrote:
Thank you. I "knew" it was possible but our Unix team has "officially" stated that disabling interactive logins AND having sudo available is not possible...

From a security perspective, it does not make sense to not allow sudo to mqm without a password, when it is required to properly maintain and operate MQ. What are they concerned about?
Code:

> sudo -l
User xxxxxxxx may run the following commands on yyyyyyy:
    (mqm) NOPASSWD: ALL

color me right there somewhere but doesn't sudo require the password of the user issuing the command?

Passwordless ssh to mqm can be done with ssh keys (RDQM) and I expect those would be secure...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
bruce2359
PostPosted: Wed Jul 26, 2023 12:15 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9399
Location: US: west coast, almost. Otherwise, enroute.

Out of curiosity, have your internal/external auditors approved password-less sudo?

Out of curiosity, do you allow root login without a password?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Wed Jul 26, 2023 5:14 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2495
Location: Melbourne, Australia

bruce2359 wrote:
Out of curiosity, have your internal/external auditors approved password-less sudo?

Yes, for specific sudo actions (eg. sudo -u mqm -l).
It is an approved way of working for all our UNIX product support teams, that team members can sudo from their team role userids (eg. MQ admin) to their service userids.

We have team role userids, rather than personal, and don't need a password for login to each server. The magic of CyberArk privileged access. It has single sign on with 2FA. Log in once in the morning. No further use of passwords to access any UNIX servers.

Quote:
Out of curiosity, do you allow root login without a password?

I don't know, probably not. MQ admins do not have root access.
_________________
Glenn
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 Installation/Configuration Support » disable logins to mqm user on Linux
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.