Score:0

What does Drop root mean in Linux

cn flag

I am fairly new to working on Linux/Ubuntu and I came across the statement Application need to start with root privilege, then drop the root

I am wondering what does the above statement mean?

Also when I executed the application binary, I could see the following statements being printed on the console

Warning: group= user1 not found in /etc/group file
Warning: UID 1041 not known in the system. Test may fail.
drop root to uid [1041] complete

Could someone please help me understand this? Thanks

FedKad avatar
cn flag
In this context "drop" means "change to user".
Score:1
ng flag

It simply means that you should start the application using root privileges and then afterwards, don't use root privileges for any other commands.

If you are using sudo to launch the application, you can run the following to "drop" the root privileges:

sudo -k

This will revoke the user's cached credentials. So the next time you try to run a command with sudo, you will have to enter your password.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.