'Problem with permissions on a linux executable
I have User with name "commander" in my system which doesnt have any permissions to passwd command and I have other users in my system that represent soldiers with names: (fighter01, fighter02, fighter03, fighter04...).
So what I want to do is when I am logged in as a commander I would be able to reset passwords (passwd command) only for those users of soldiers (fighter01, fighter02...) and for other users I would be able to do that.
I tried to use awk command but I dont really know how it helps me. Thought about using setfacl but this command works only for the files.
Can you please explain to me how do I do it?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
