4
2
In linux some of the applications are able to remember authentication for sometime. For example,
File manager remember authentication for a while, when we provide password to mount a partition. If we mount another partition soon after mounting first one, it won't ask for a password.
Terminal applications, if we execute some task with
sudo
and provide password, it won't ask for nextsudo
action if it is performed within a time period.
How this functionality is implemented? How can I make my application to remember root authentication for sometime?
Authentications are not mostly stored in cache as it might be a security threat. until unless you are providing remember me web applications too wont save the password. If it windows operation then OS used to save in it encrypted temp format and that too wont be valid after machine restart – vembutech – 2016-07-29T08:32:27.763
As a side note, you should just list internal partitions in
/etc/fstab
to have them auto-mounted. – user1686 – 2016-07-29T09:18:19.907@vembutech Properly designed web applications will never save the password at all! – Scott – 2016-07-29T14:05:52.243