35
submitted 1 day ago by Remy@lemmy.today to c/linux@lemmy.ml

Hello,

I am looking for a program that can force me to stop using Linux when I need to do something else, like eating dinner or going to bed.

This time enforcement could be as simple as changing the user password and then logging me out at a certain time (of course it should also change the password back later)

It should also require a password (different from the user password) to change its settings or uninstall it, so that I can't tamper with it in a weak moment.

Is there such a program for Linux?

you are viewing a single comment's thread
view the rest of the comments
[-] CallMeAl@piefed.zip 12 points 1 day ago

I haven't personally used it but I think that is what pam_time is for.

[-] Remy@lemmy.today 1 points 1 day ago

Is this the Github of it: https://github.com/linux-pam/linux-pam ?

Could I pam_time root or something that has a higher rank and a different password then my main user?

[-] RIotingPacifist@lemmy.world 3 points 1 day ago

You can prevent root login entirely using sudo and no root password.

Of course you could then override your init to give you a root shell, which you could avoid by having a grub and bios password.

But you'd be able to reset the bios password if you have physical access anyway.

[-] SingularEye 1 points 1 day ago
this post was submitted on 30 Jul 2026
35 points (100.0% liked)

Linux

66725 readers
330 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS