How to remove a user in mongodb

db.removeUser() On this page Definition Deprecated since version 2.6: Use db.dropUser() instead of db.removeUser() Definition db.removeUser(username) Removes the specified username from the database. The db.removeUser() method has the following parameter: Parameter Type Description username string The database username. Hits: 1

Change User name in MongoDB

I need to change a username in mongodb 3.4 due to re-branding to floatingcloud.io   db.system.users.update({“user”:”oldname”}, {$set:{“user”:”newname”}}) From: https://stackoverflow.com/questions/35265277/how-to-rename-a-user-in-mongodb   Hits: 1

Reset AWS AMI Windows 2016 Password for use in Marketplace

In Windows PowerShell, run the following command to schedule the script to run as a Windows Scheduled Task. The script runs one time during the next boot and then disables these tasks from running again. PS C:\> C:\ProgramData\Amazon\EC2-Windows\Launch\Scripts\InitializeInstance.ps1 -Schedule     https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2launch.html Hits: 6

HowTo: Install MongoDB Replica Set with Docker Swarm in Multiple Regions

Running your MongoDB in replica set is a really great idea, using Docker is a quick way to deploy it. The simplest way to create a multi region MongoDB Replica set using Docker Swarm is to use our scripts that are already written. They launch a CloudFormation and the scripts written below. Please leave a comment Read more about HowTo: Install MongoDB Replica Set with Docker Swarm in Multiple Regions[…]

Dovecot imap send spam to junk – Server Fault

Still trying to make a spam solution for opensource Also see https://rspamd.com/doc/quickstart.html https://www.vultr.com/docs/simple-mailserver-postfix-dovecot-sieve-centos-7 https://www.vultr.com/docs/simple-mailserver-postfix-dovecot-sieve-debian I am using Ubuntu 18.04 64 bit dovecot 2.2.33.2 spamassassin 3.4.1 amavisd The goal is to run an e-mail server, which I achieved already. I can access the e-mails at the server using Thunderbird and the imap protocol. For the postfix Read more about Dovecot imap send spam to junk – Server Fault[…]

install horde for dovecot webmail with imp

https://www.horde.org/apps/imp/docs/INSTALL Configuring Horde for IMP [OPTIONAL]If you would prefer that your users authenticate directly with IMP, without having to authenticate through Horde first, load theAdministration/Configuration/Authentication page and from the What backend should we use for authenticating users to Hordepulldown menu select Let a Horde application handle authentication (see the note below about new installs). Select imp from the The application which is Read more about install horde for dovecot webmail with imp[…]

Automating deployments on Windows with Jenkins and PsExec

I went looking for a way to be able to remotely restart a Windows service from the Jenkins server. After googling for a bit I came across PsExec which is small utility program to run remote scripts on Windows machines which would me restart the Windows service from our remote Jenkins server. After downloading this Read more about Automating deployments on Windows with Jenkins and PsExec[…]

Reset Windows password to random EC2

For our Floating Cloud images the proccess is to run the password reset scripts copy the config.xml file to C:\Program Files\Amazon\Ec2ConfigService\Settings directory: Create AMI without power off or reboot [Windows Server 2016 and later] Configure settings using EC2Launch. To generate a random password at launch time, use the adminPasswordType setting. For more information, see Configuring EC2Launch. Read more about Reset Windows password to random EC2[…]

Using API to send emails with HmailServer

COM API Overview The hMailServer COM API lets you write your own scripts and applications that integrate with hMailServer. Almost all objects in hMailServer are accessible using the COM library. As an example, both hMailServer Administrator and the PHP WebAdmin is entirely based upon the COM library. Besides writing application like theese two, you can Read more about Using API to send emails with HmailServer[…]

How to get reverse DNS for your EC2 instance as well as to raise email sending limit. Amazon Web Services

Request to Remove Email Sending Limitations In order to maintain the quality of Amazon EC2 addresses for sending email, we enforce default limits on the amount of email that can be sent from EC2 accounts. If you wish to send larger amounts of email from EC2, you can apply to have these limits removed from Read more about How to get reverse DNS for your EC2 instance as well as to raise email sending limit. Amazon Web Services[…]

Set WordPress all of your pages to private so that you can un-publish them

Just set them to private in the database, using the following query: This would set all posts to private, I guess you won’t really use that query. Instead, to only set articles to ‘private’ use: and to only disable pages, use: Post-revisions have the status ‘inherit’ and thus get the right inherited from the parent page or Read more about Set WordPress all of your pages to private so that you can un-publish them[…]