Timeline for Why does hostnamectl not require a password to change the hostname?
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 25, 2018 at 10:15 | vote | accept | KIAaze | ||
| Jul 25, 2018 at 10:15 | comment | added | KIAaze | Thanks for the digging. :) At least it is seen as a TODO item. (Hopefully they will combine it with a timestamp resetting option like sudo.) | |
| Jul 25, 2018 at 4:41 | history | edited | telcoM | CC BY-SA 4.0 |
added 157 characters in body
|
| Jul 25, 2018 at 4:28 | history | edited | telcoM | CC BY-SA 4.0 |
finally found out where the authentication timeout is defined
|
| Jul 25, 2018 at 4:16 | comment | added | telcoM | That took quite a bit of digging, but this discussion gave me a clue. Here's the relevant file in polkit upstream source code: the time is defined in lines 3231-3236 and, sadly, is apparently still hard-coded. On the other hand, OpenSuSE seems to have extended this into "keep while the asking program is running", "keep for entire session" and "keep forever" levels. | |
| Jul 25, 2018 at 0:15 | comment | added | John Eikenberry | @KIAaze You ever find out the answer to the 'sudo -k' question. Trying to dig that out myself. Thanks. | |
| Apr 26, 2018 at 10:09 | comment | added | KIAaze | Thanks. So it should have asked for a password. Do you happen to know an equivalent of "sudo -k/--reset-timestamp" for polkit? | |
| Apr 23, 2018 at 0:06 | history | answered | telcoM | CC BY-SA 3.0 |