4 mango > admin
mango@mango:~$ mongo --version
MongoDB shell version v4.0.12
git version: 5776e3cbf9e7afe86e6b29e22520ffb6766e95d4
OpenSSL version: OpenSSL 1.1.1 11 Sep 2018
allocator: tcmalloc
modules: none
build environment:
distmod: ubuntu1804
distarch: x86_64
target_arch: x86_64
# couldn't connect to mongo with creds,
# but su admin works using admin:t9KcS3>!0B#2
mango@mango:~$ su - admin -c /bin/bash
Password:
bash: cannot set terminal process group (34014): Inappropriate ioctl for device
bash: no job control in this shell
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
admin@mango:/home/admin$ whoami;id
admin
uid=4000000000(admin) gid=1001(admin) groups=1001(admin)
Last updated