Database Design – User Scaling in MongoDB

Our team has been responsible for a relatively open application for a MongoDB with multiple users able to access documents and submit them to collections for a graduate class. The team is new to MongoDB and does not know how to handle the storage side of the user.

The purpose of the internal team discussion is to: a] create a new limited role user at the database level as each user enters the service or b] to create a collection of users and there to store users and hashed passwords.

Does anyone have any advice on which method is the best and why?

Spamassassin by user database configured but not used

For each email user, I want to use their own bayes database.

The databases are located at /home/spamd/[domain]/[user], for example /home/spamd/example.com/testuser with 2 files: bayes_seen and bayes_toks.

In /etc/default/spamassassin I put virtual-config-dir:

OPTIONS="--create-prefs --max-children 1 -D --helper-home-dir --virtual-config-dir=/home/spamd/%d/%l -x -u spamd"

However, in the newspaper, I can see that no placeholders %d and %l works, they are replaced by empty strings:

sep 20 12:16:19 DietPi spamd[11167]: config: using "/home/spamd//" for user state dir 
sep 20 12:16:19 DietPi spamd[11167]: bayes: tie-ing toDB file R/O /home/spamd///bayes_toks 
sep 20 12:16:19 DietPi spamd[11167]: bayes: tie-ing to DB file R/O /home/spamd///bayes_seen

Anyone can help? Thank you.

web development – Why does the Google search result webpage link and the Facebook shared web page link of my website when the user clicks on it shows a 403 error forbidden?

I have a website. That works well. But since yesterday, if I click on the link of the Google search results web page of my website, the following error message is displayed:

It seems that you do not have permission to access this page. 403 Error. Not allowed.

If I share the webpage link of my website on my Facebook page, then if I click on the shared web page link, it also indicates the same error above.

However, in either case, I copy the link from the web page link (from Google search results or the Facebook page) and paste it into the browser. Then he opens well without showing any error.

I use Hostgator Shared Hosting.

I am really puzzled, why does this happen ?? Guide me please. After a day of hard work, I managed to generate traffic and now this problem is destroying the reputation gained by the search engine and the graph of the analysis is falling.

I hope you have understood the problem. Please help. Thank you in advance.

Enable or disable the Windows service based on the user who is logging in

So I want to disable or enable a service based on the name of the user who is logging in, because this is a service that should only be active for a specific user, otherwise it gobbles up unnecessary system resources.

The easiest way would be to create a batch file per user (it's a local system, so not too many users) and run this batch file when a user opens a session using net stop / start or sc config. The problem with this approach is that these commands require elevated privileges and that one of the users does not have elevated privileges.

Is there another way to proceed, or is there a way to temporarily grant high rights to a batch file?

Thank you.

windows 10 – Thunderbird fails to authenticate with dovecote for 0 seconds without user name

I've configured Dovecot with an efficient configuration (with dovecot -n)

# 2.3.7.2 (3c910f64b): /etc/dovecot/dovecot.conf
# OS: Linux 5.2.15-200.fc30.x86_64 x86_64 Fedora release 30 (Thirty)
# Hostname: 
auth_debug = yes
auth_mechanisms = plain login
auth_verbose = yes
listen = 10.168.0.9,
mail_location = mbox:~/mail:INBOX=/var/mail/%u
mbox_write_locks = fcntl
namespace inbox {
    inbox = yes
    location =
    mailbox Drafts {
        special_use = Drafts
    }
    mailbox Junk {
        special_use = Junk
    }
    mailbox Sent {
        special_use = Sent
    }
    mailbox "Sent Messages" {
        special_use = Sent
    }
    mailbox Trash {
        special_use = Trash
    }
    prefix =
}
passdb {
    driver = pam
}
protocols = imap
ssl_cert = /cert.pem
ssl_cipher_list = PROFILE=SYSTEM
ssl_key = # hidden, use -P to show it
userdb {
    args = blocking=no
    driver = passwd
}
verbose_ssl = yes

I'm trying to connect to that with Thunderbird 60.9.0 but no matter if I use port 143 or 993, the authentication does not take place. journalctl -efu dovecot.service exit:

Sep 21 21:43:58  dovecot(31705): auth: Debug: auth client connected (pid=2668)
Sep 21 21:43:58  dovecot(31705): imap-login: Debug: SSL: where=0x10, ret=1: before SSL initialization
Sep 21 21:43:58  dovecot(31705): imap-login: Debug: SSL: where=0x2001, ret=1: before SSL initialization
Sep 21 21:43:58  dovecot(31705): imap-login: Debug: SSL: where=0x2002, ret=-1: before SSL initialization
Sep 21 21:43:58  dovecot(31705): imap-login: Debug: SSL: where=0x2001, ret=1: before SSL initialization
Sep 21 21:43:58  dovecot(31705): imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS read client hello
Sep 21 21:43:58  dovecot(31705): imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write server hello
Sep 21 21:43:58  dovecot(31705): imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write certificate
Sep 21 21:43:58  dovecot(31705): imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write key exchange
Sep 21 21:43:58  dovecot(31705): imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write server done
Sep 21 21:43:58  dovecot(31705): imap-login: Debug: SSL: where=0x2002, ret=-1: SSLv3/TLS write server done
Sep 21 21:43:58  dovecot(31705): imap-login: Debug: SSL: where=0x2002, ret=-1: SSLv3/TLS write server done
Sep 21 21:43:58  dovecot(31705): imap-login: Debug: SSL: where=0x2002, ret=-1: SSLv3/TLS write server done
Sep 21 21:43:58  dovecot(31705): imap-login: Debug: SSL: where=0x2002, ret=-1: SSLv3/TLS write server done
Sep 21 21:43:58  dovecot(31705): imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write server done
Sep 21 21:43:58  dovecot(31705): imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS read client key exchange
Sep 21 21:43:58  dovecot(31705): imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS read change cipher spec
Sep 21 21:43:58  dovecot(31705): imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS read finished
Sep 21 21:43:58  dovecot(31705): imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write session ticket
Sep 21 21:43:58  dovecot(31705): imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write change cipher spec
Sep 21 21:43:58  dovecot(31705): imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write finished
Sep 21 21:43:58  dovecot(31705): imap-login: Debug: SSL: where=0x20, ret=1: SSL negotiation finished successfully
Sep 21 21:43:58  dovecot(31705): imap-login: Debug: SSL: where=0x2002, ret=1: SSL negotiation finished successfully
Sep 21 21:43:58  dovecot(31705): imap-login: Aborted login (no auth attempts in 0 secs): user=<>, rip=10.168.0.53, lip=, TLS, session=
Sep 21 21:43:58  dovecot(31705): imap-login: Debug: SSL alert: close notify

The error seems to be indicated in the penultimate line: "no attempt of authentication in 0 seconds".
Problems connecting the Thunderbird client to the dovecot installed on Ubuntu indicated a potential problem with certificate exceptions. I deleted the certificate stored in Thunderbird (Windows version), then got it again under Certificate Management and added the security exception. It did not help. In addition, the log file above implies that the certificate dialog was successful.

If I add cram-md5 as a supported authentication mechanism, I will also geti auth: Fatal: CRAM-MD5 mechanism can't be supported with given passdbs in the newspaper.

What do I not see or what do I misunderstand or do wrong? How can I make it work?

windows – Which software can be used to automatically set random passwords for local user accounts?

Previously, I worked in a company where the local administrator of each computer was replacing every day with a new random password. We could then use LAPS (Local Administrator Password Solution) from Microsoft to look up the current local administrator password for this computer.

The problem with LAPS is that there is a lot of configuration and that passwords are all stored in clear text on the AD server, as well as the limited ability to manage a single local account for all computers.

My question is what is the best solution for random automation of local password changes? Preferably with safety and convenience in mind.

sharepoint online – How to get the user ID of the user based on the email ID

Battery Exchange Network

The Stack Exchange network includes 175 question-and-answer communities, including Stack Overflow, the largest and most reliable online community on which developers can learn, share knowledge and build their careers.

Visit Stack Exchange

Hide picture displayed by WhatsApp of a certain user

I have Android 6.0.1 on my phone and WhatsApp version 2.19.258 is installed on it.
Now, I want to hide / change the displayed image of a given contact, says Mr. Alex on my phone. How do I do it?

Thank you!