root@mongodb-lab-01:/var/log/mongodb# mongo -usantanaj -pwrongpassword --authenticationDatabase=admin MongoDB shell version v3.4.4 connecting to: mongodb://127.0.0.1:27017 MongoDB server version: 3.4.4 2017-04-27T10:53:11.596+0200 E QUERY [thread1] Error: Authentication failed. : DB.prototype._authOrThrow@src/mongo/shell/db.js:1459:20 @(auth):6:1 @(auth):1:2 exception: login failed root@mongodb-lab-01:/var/log/mongodb# cat mongod.log 2017-04-27T10:14:20.450+0200 I CONTROL [main] ***** SERVER RESTARTED ***** 2017-04-27T10:14:20.453+0200 I CONTROL [initandlisten] MongoDB starting : pid=7756 port=27017 dbpath=/var/lib/mongodb 64-bit host=mongodb-lab-01 2017-04-27T10:14:20.453+0200 I CONTROL [initandlisten] db version v3.4.4 2017-04-27T10:14:20.453+0200 I CONTROL [initandlisten] git version: 888390515874a9debd1b6c5d36559ca86b44babd 2017-04-27T10:14:20.453+0200 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1t 3 May 2016 2017-04-27T10:14:20.453+0200 I CONTROL [initandlisten] allocator: tcmalloc 2017-04-27T10:14:20.453+0200 I CONTROL [initandlisten] modules: none 2017-04-27T10:14:20.453+0200 I CONTROL [initandlisten] build environment: 2017-04-27T10:14:20.453+0200 I CONTROL [initandlisten] distmod: debian81 2017-04-27T10:14:20.453+0200 I CONTROL [initandlisten] distarch: x86_64 2017-04-27T10:14:20.453+0200 I CONTROL [initandlisten] target_arch: x86_64 2017-04-27T10:14:20.453+0200 I CONTROL [initandlisten] options: { config: "/etc/mongod.conf", net: { bindIp: "0.0.0.0", port: 27017 }, security: { authorization: "enabled" }, storage: { dbPath: "/var/lib/mongodb", journal: { enabled: true }, wiredTiger: { engineConfig: { cacheSizeGB: 1.0 } } }, systemLog: { component: { accessControl: { verbosity: 5 } }, destination: "file", logAppend: true, logRotate: "reopen", path: "/var/log/mongodb/mongod.log", quiet: true } } 2017-04-27T10:14:20.470+0200 I - [initandlisten] Detected data files in /var/lib/mongodb created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'. 2017-04-27T10:14:20.471+0200 I STORAGE [initandlisten] 2017-04-27T10:14:20.471+0200 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine 2017-04-27T10:14:20.471+0200 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem 2017-04-27T10:14:20.471+0200 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=1024M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0), 2017-04-27T10:14:20.672+0200 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/var/lib/mongodb/diagnostic.data' 2017-04-27T10:14:20.673+0200 I NETWORK [thread1] waiting for connections on port 27017 2017-04-27T10:15:12.548+0200 I NETWORK [conn1] received client metadata from 127.0.0.1:41159 conn1: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "3.4.4" }, os: { type: "Linux", name: "PRETTY_NAME="Debian GNU/Linux 8 (jessie)"", architecture: "x86_64", version: "Kernel 3.16.0-4-amd64" } } 2017-04-27T10:39:07.190+0200 I NETWORK [conn2] received client metadata from 127.0.0.1:41160 conn2: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "3.4.4" }, os: { type: "Linux", name: "PRETTY_NAME="Debian GNU/Linux 8 (jessie)"", architecture: "x86_64", version: "Kernel 3.16.0-4-amd64" } } 2017-04-27T10:39:22.176+0200 I NETWORK [conn3] received client metadata from 127.0.0.1:41161 conn3: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "3.4.4" }, os: { type: "Linux", name: "PRETTY_NAME="Debian GNU/Linux 8 (jessie)"", architecture: "x86_64", version: "Kernel 3.16.0-4-amd64" } } 2017-04-27T10:43:29.770+0200 I NETWORK [conn4] received client metadata from 127.0.0.1:41162 conn4: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "3.4.4" }, os: { type: "Linux", name: "PRETTY_NAME="Debian GNU/Linux 8 (jessie)"", architecture: "x86_64", version: "Kernel 3.16.0-4-amd64" } } 2017-04-27T10:45:46.509+0200 I NETWORK [conn5] received client metadata from 127.0.0.1:41163 conn5: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "3.4.4" }, os: { type: "Linux", name: "PRETTY_NAME="Debian GNU/Linux 8 (jessie)"", architecture: "x86_64", version: "Kernel 3.16.0-4-amd64" } } 2017-04-27T10:45:53.393+0200 I NETWORK [conn6] received client metadata from 127.0.0.1:41164 conn6: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "3.4.4" }, os: { type: "Linux", name: "PRETTY_NAME="Debian GNU/Linux 8 (jessie)"", architecture: "x86_64", version: "Kernel 3.16.0-4-amd64" } } 2017-04-27T10:46:18.005+0200 I NETWORK [conn7] received client metadata from 127.0.0.1:41165 conn7: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "3.4.4" }, os: { type: "Linux", name: "PRETTY_NAME="Debian GNU/Linux 8 (jessie)"", architecture: "x86_64", version: "Kernel 3.16.0-4-amd64" } } 2017-04-27T10:50:00.017+0200 I NETWORK [conn8] received client metadata from 127.0.0.1:41166 conn8: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "3.4.4" }, os: { type: "Linux", name: "PRETTY_NAME="Debian GNU/Linux 8 (jessie)"", architecture: "x86_64", version: "Kernel 3.16.0-4-amd64" } } 2017-04-27T10:50:00.020+0200 I ACCESS [conn8] Unauthorized: not authorized on admin to execute command { replSetGetStatus: 1.0, forShell: 1.0 } 2017-04-27T10:50:15.685+0200 I NETWORK [conn9] received client metadata from 127.0.0.1:41167 conn9: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "3.4.4" }, os: { type: "Linux", name: "PRETTY_NAME="Debian GNU/Linux 8 (jessie)"", architecture: "x86_64", version: "Kernel 3.16.0-4-amd64" } } 2017-04-27T10:50:15.688+0200 I ACCESS [conn9] Unauthorized: not authorized on admin to execute command { replSetGetStatus: 1.0, forShell: 1.0 } 2017-04-27T10:51:57.360+0200 I NETWORK [conn10] received client metadata from 127.0.0.1:41168 conn10: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "3.4.4" }, os: { type: "Linux", name: "PRETTY_NAME="Debian GNU/Linux 8 (jessie)"", architecture: "x86_64", version: "Kernel 3.16.0-4-amd64" } } 2017-04-27T10:51:57.361+0200 I ACCESS [conn10] Unauthorized: not authorized on admin to execute command { getLog: "startupWarnings" } 2017-04-27T10:51:57.363+0200 I ACCESS [conn10] Unauthorized: not authorized on admin to execute command { replSetGetStatus: 1.0, forShell: 1.0 } 2017-04-27T10:51:59.738+0200 I ACCESS [conn10] Unauthorized: not authorized on admin to execute command { listDatabases: 1.0 } 2017-04-27T10:53:11.580+0200 I NETWORK [conn11] received client metadata from 127.0.0.1:41169 conn11: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "3.4.4" }, os: { type: "Linux", name: "PRETTY_NAME="Debian GNU/Linux 8 (jessie)"", architecture: "x86_64", version: "Kernel 3.16.0-4-amd64" } } 2017-04-27T10:53:11.596+0200 I ACCESS [conn11] SCRAM-SHA-1 authentication failed for santanaj on admin from client 127.0.0.1:41169 ; AuthenticationFailed: SCRAM-SHA-1 authentication failed, storedKey mismatch root@mongodb-lab-01:/var/log/mongodb#