Git Product home page Git Product logo

Comments (3)

IBMRob avatar IBMRob commented on August 22, 2024

What image are you running this command on?

If I use the prebuild version from docker hub I don't see this error:

Bergkamp-stable$ docker run -it --entrypoint=/bin/bash ibmcom/ace-mq -i
(ACE_11:)root@726eb778b4a4:/home/aceuser# sudo su - mqm
No directory, logging in with HOME=/
$ id
uid=999(mqm) gid=999(mqm) groups=999(mqm)
$ exit

If i run the non mq version I do see the warning about sudo but this image does not include an mqm user so would expect the sudo command to fail.

from ace-docker.

dunder-tc avatar dunder-tc commented on August 22, 2024

I followed the instructions to first build the ace-only image, and after that I built the ace-mqclient image. I was trying to update the "mqclient.ini" file under "/var/mqm" to add the "CertificateLabel=" line, but everything is owned by "mqm" and the "aceuser" is not part of that group. The "id" command below does show "aceuser" as part of the "sudo" group but it can't run sudo commands.

[docker@reg2lxap0034 ubuntu]$ docker exec -it aceserver /bin/bash
To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details.
(ACE_11:)aceuser@c64d72f45074:~$ id
uid=1000(aceuser) gid=1001(aceuser) groups=1001(aceuser),27(sudo),1000(mqbrkrs)
(ACE_11:)aceuser@c64d72f45074:~$ sudo su - mqm
sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?

from ace-docker.

dunder-tc avatar dunder-tc commented on August 22, 2024

FYI, my objective is to use the "mqKeyRepository" property in the server.conf.yaml file to set up an SSL connection to a remote MQ server. In the "ubuntu/installMQClient.sh" script I had to add the "ibmmq-gskit" debian package to allow me to run the "runmqakm" command to create a kdb for my MQ client. In order to temporarily circumvent the "sudo su - mqm" command issue, I had to add "usermod -a -G mqm aceuser" in the script file so that I could update the "mqclient.ini" file.

It would still be nice to be able to run the "sudo" command.

from ace-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.