I've been searching google on how to add additional security to a specific command without using sudo
.
Is it possible to add on a security feature without actually using sudo
?
For example:
Whenever I use the xxd
command. There is a need for an additional input in order for the command to run or it won't work at all.
What I was doing is that I used xxd
command in order to convert a string into garbage hex. So it is basically revertible into the original string. Now, what I am trying to accomplish is that no one must be able to use the xxd -r
, except to only few people who know the password in order to run it, so that the hex values won't be reverted to the original string.
/etc/passwd
), and if so, whose? – jasonwryan 2 days ago/etc/passwd
. Everyone can use it, the only thing different is you have to input something like if the password to run it is123456
then I have to typexxd -r 123456
or I can add a new sub-command likexxd -r -p 123456
Is that possible? – user2851287 2 days agoxxd
instead of using the system's password-protected one ? What if they just usexxd
on their own computer to convert the values to the original string ? If you want to keep something secret use cryptography, not some trivial obfuscation. – André Daniel 2 days ago