Originally Posted by bkcreddy17
But my motto is, when we try to open a folder, it should prompt for password. How can we do it?
You are asking for contradictory criteria.
How to give all users to have complete access but not complete access.
Everyone logs in as root, meaning everyone has complete control over everything.
Everyone need to enter a different password for individual folders.
The reason "root" is root is to NOT have to enter password for everything.
Root is to setup, cleanup, fixup the mess ups.
User is to use the computer.
Give each user a name, a username.
There is a reason why you don't run as root,
you will discover this reason the hard way.
Take the advice now or take it later but you will take it.