Questions tagged [lock]

A generic term for placing a restriction of some sort. It could refer to placing a password-based or biometric protection over a device, a system or a set of data. It could also refer to placing read-only protection on certain configuration or data (like files). Questions using this tag can also be regarding the opposite action of unlocking.

Locking is a generic term for which the meaning could depend on the context.

Most notably, in general computer usage, it refers to placing a password-based or biometric protection over a device, a system or a set of data. Examples include the operating system's lock screen, and password protection on files and folders.

It could also refer to freezing certain configuration or data (like files) so that it is protected from misconfiguration or unintended change by the user who locked it or by others. Examples include the administrative locks placed on system configuration modules, and the act of making files read-only for the users or inaccessible for other applications by the application opening them (known as file locking).

Questions using this tag can also be regarding the opposite action of unlocking. These questions could be about problems that appear during the attempt to reverse the effects of a lock, or that persists after the unlock has been performed.

In computer programming, locking refers to a method of synchronization between two contenting applications or threads sharing the same data. Questions regarding this are best asked in Stack Overflow.

162 questions
9
votes
7 answers

Is there a way to shut down and lock a PC at a predetermined time?

I have a 14 year old boy who's obsessed with his gaming PC so much that he stays awake all night sometimes and sleeps all day. Normally that would cause havoc with his schooling but he's being home schooled where he lives with his mother. Is there…
Jim
  • 91
1
vote
1 answer

Release flock for a single command in bash script

I have a script that is launched by cron every day. The launch command looks something like this: flock -n /tmp/mylock.LOCK /path/to/script/script.sh Script script.sh updates configuration files for my server and tries to restart it (if it is…
Anton Guryanov
  • 133
  • 1
  • 8
1
vote
0 answers

Unable to restore "Acronis" image file of my System drive to Target drive due to activation of TPM 2.0 in my BIOS

I made the error of switching from "Discrete TPM 1.2 to Firmware TPM 2.0 in order to upgrade my Windows 10 Pro to W11. Foolishly I ignored the warning given by the BIOS configuration. "Intel PTT is a hardware TPM 2.0 implementation integrated in…
1
vote
1 answer

Is i3lock saving information about failed unlocking attempts?

My version of i3lock is 2.7 (2015-05-20). I checked the manpage and there is -f option to show the number of failed unlocking attempts: -f, --show-failed-attempts Show the number of failed attempts, if any. It prints them on locked…
Jezor
  • 63
1
vote
1 answer

I get a lock file like this, but don't know what does it do?

when I open a file , and the program creates this file, what does this lock file do ? is it a prevention from simultaneous run ?
Farzad64
  • 163
0
votes
1 answer

Lock a logo in Word 2016

We have a new logo and people are asking for us to add the logo to their word documents. We want to lock the image only so that it can not be lifted or altered but that they can still make changes to their copy with in the document. I know how to do…
-1
votes
1 answer

How do I configure the SlickRun Magic Word to lock my computer?

I want to setup a magic word in SlickRun to lock my computer like Win+L would do. Can someone please help me out with this request?