Hello,
my question : i want a shell read a file but i don't want that the users can read this file with the cat (or more...) command. This file contains an important user/password.
test done : i put a sticky bit on my shell and restricted access on my file.
Result : execution shell with root login = ok
execution shell with user login = ko (no access file)
my shell :
-r-sr-xr-x 1 root system 30 /home/prc/jpg.prc
my /home/fic/jpg.txt file :
-rwx------ 1 root system 34 /u/fic/jpg.txt
Other solution based on shell command ?
Thanks for answers.
my question : i want a shell read a file but i don't want that the users can read this file with the cat (or more...) command. This file contains an important user/password.
test done : i put a sticky bit on my shell and restricted access on my file.
Result : execution shell with root login = ok
execution shell with user login = ko (no access file)
my shell :
-r-sr-xr-x 1 root system 30 /home/prc/jpg.prc
my /home/fic/jpg.txt file :
-rwx------ 1 root system 34 /u/fic/jpg.txt
Other solution based on shell command ?
Thanks for answers.