How to keep Ubuntu unlocked when some condition applies?How to disable lock screen based on which WIFI network I'm connected to?how to keep ubuntu on and unlocked while closing the laptop lid?Locked computer gets very hot despite no CPU-intensive tasks runningSuspend on lid close doesn't work 16.04How to disable lock screen based on which WIFI network I'm connected to?How do I call `dbus` code that monitors when screen is locked/unlocked?Screen lock shuts down all applications in 17.10Lubuntu 18.04 refuses to not dim the screen
What does exhaust smell on oil and transmission dipstick mean?
What's the most profitable use for an elemental transmuter?
How do I figure out how many hydrogens my compound actually has using a mass and NMR spectrum?
Define a command differently in inline vs display mode
Responsibility for arrangement of elements - frontend or backend?
Why do some switching regulator require tantalum or electrolytic capacitors instead of ceramic?
Can anyone give me a suggestion of a good monk sto study to learn Buddhism
How does kinetic energy work in braking a vehicle?
What term can we propose for someone who prioritizes equipment over musicianship?
Does animal blood, esp. human, really have similar salinity as ocean water, and does that prove anything about evolution?
How to answer to the "We do not want to create any precedent" argument in salary negotiation?
For a command to increase something, should instructions refer to the "+" key or the "=" key?
Relying on default values - is bad programming style?
Permissions using a TYPE as a Table Valued Parameter
Plain Hunt Bell-Ringing
Antonym for “boilerplate” or “cookie-cutter”
How can I filter an EntityClass by _not_ having a property?
Greek diacritic with English letter
What's a good strategy for offering low on a house?
Can Tankless & Conventional water heaters Join forces?
where does black come from in CMYK color mode?
instead of pressurizing an entire spacesuit with oxygen could oxygen just pressurize the head and the rest of the body be pressurized with water?
Equivalent of phrase 'emu parade' in other English-speaking places
Pass variable to sed and change backslash to forward slash
How to keep Ubuntu unlocked when some condition applies?
How to disable lock screen based on which WIFI network I'm connected to?how to keep ubuntu on and unlocked while closing the laptop lid?Locked computer gets very hot despite no CPU-intensive tasks runningSuspend on lid close doesn't work 16.04How to disable lock screen based on which WIFI network I'm connected to?How do I call `dbus` code that monitors when screen is locked/unlocked?Screen lock shuts down all applications in 17.10Lubuntu 18.04 refuses to not dim the screen
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I want to avoid having to re-enter my password after every few minutes of inactivity when my laptop is in a safe environment (e.g. docked - it's a ThinkPad with a Thunderbolt dock - or connected to my home wifi). How do I approach that problem?
Is there some generic utility for this or does it have to be done differently for every definition of "safe environment"? I looked for relevant PAM modules but could not find anything, and not sure if that's even the right approach (ideally I'd want the window manager to not lock in the first place, not circumwent passwords for login). How to disable lock screen based on which WIFI network I'm connected to? is relevant but the answers given there (hook into network state changes and disable/reenable using a lock screen depending on what network we have just switched to) seems fragile and insecure - I'd imagine the ideal solution to leave the lock screen enabled but perform some kind of check before locking, and delay locking for another N minutes if that check succeeded.
18.04 security laptop lock-screen
add a comment
|
I want to avoid having to re-enter my password after every few minutes of inactivity when my laptop is in a safe environment (e.g. docked - it's a ThinkPad with a Thunderbolt dock - or connected to my home wifi). How do I approach that problem?
Is there some generic utility for this or does it have to be done differently for every definition of "safe environment"? I looked for relevant PAM modules but could not find anything, and not sure if that's even the right approach (ideally I'd want the window manager to not lock in the first place, not circumwent passwords for login). How to disable lock screen based on which WIFI network I'm connected to? is relevant but the answers given there (hook into network state changes and disable/reenable using a lock screen depending on what network we have just switched to) seems fragile and insecure - I'd imagine the ideal solution to leave the lock screen enabled but perform some kind of check before locking, and delay locking for another N minutes if that check succeeded.
18.04 security laptop lock-screen
add a comment
|
I want to avoid having to re-enter my password after every few minutes of inactivity when my laptop is in a safe environment (e.g. docked - it's a ThinkPad with a Thunderbolt dock - or connected to my home wifi). How do I approach that problem?
Is there some generic utility for this or does it have to be done differently for every definition of "safe environment"? I looked for relevant PAM modules but could not find anything, and not sure if that's even the right approach (ideally I'd want the window manager to not lock in the first place, not circumwent passwords for login). How to disable lock screen based on which WIFI network I'm connected to? is relevant but the answers given there (hook into network state changes and disable/reenable using a lock screen depending on what network we have just switched to) seems fragile and insecure - I'd imagine the ideal solution to leave the lock screen enabled but perform some kind of check before locking, and delay locking for another N minutes if that check succeeded.
18.04 security laptop lock-screen
I want to avoid having to re-enter my password after every few minutes of inactivity when my laptop is in a safe environment (e.g. docked - it's a ThinkPad with a Thunderbolt dock - or connected to my home wifi). How do I approach that problem?
Is there some generic utility for this or does it have to be done differently for every definition of "safe environment"? I looked for relevant PAM modules but could not find anything, and not sure if that's even the right approach (ideally I'd want the window manager to not lock in the first place, not circumwent passwords for login). How to disable lock screen based on which WIFI network I'm connected to? is relevant but the answers given there (hook into network state changes and disable/reenable using a lock screen depending on what network we have just switched to) seems fragile and insecure - I'd imagine the ideal solution to leave the lock screen enabled but perform some kind of check before locking, and delay locking for another N minutes if that check succeeded.
18.04 security laptop lock-screen
18.04 security laptop lock-screen
edited May 30 at 14:18
Prince Kumar Barnwal
1137 bronze badges
1137 bronze badges
asked May 30 at 10:54
TgrTgr
4375 silver badges12 bronze badges
4375 silver badges12 bronze badges
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
You might want to use systemd like so:
https://unix.stackexchange.com/questions/210604/how-to-write-a-systemd-service-unit-file-so-it-waits-until-a-specific-interface
Along with
gnome-screensaver-command --inhibit
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1147381%2fhow-to-keep-ubuntu-unlocked-when-some-condition-applies%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You might want to use systemd like so:
https://unix.stackexchange.com/questions/210604/how-to-write-a-systemd-service-unit-file-so-it-waits-until-a-specific-interface
Along with
gnome-screensaver-command --inhibit
add a comment
|
You might want to use systemd like so:
https://unix.stackexchange.com/questions/210604/how-to-write-a-systemd-service-unit-file-so-it-waits-until-a-specific-interface
Along with
gnome-screensaver-command --inhibit
add a comment
|
You might want to use systemd like so:
https://unix.stackexchange.com/questions/210604/how-to-write-a-systemd-service-unit-file-so-it-waits-until-a-specific-interface
Along with
gnome-screensaver-command --inhibit
You might want to use systemd like so:
https://unix.stackexchange.com/questions/210604/how-to-write-a-systemd-service-unit-file-so-it-waits-until-a-specific-interface
Along with
gnome-screensaver-command --inhibit
answered Jul 20 at 17:19
UnstuckUnstuck
414 bronze badges
414 bronze badges
add a comment
|
add a comment
|
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1147381%2fhow-to-keep-ubuntu-unlocked-when-some-condition-applies%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown