Skip to main content

Questions tagged [lock]

Use for questions regarding the mechanism to prevent concurrent access to shared resources by means of lock files or in-memory synchronization primitives. For the mechanism to prevent access to unattended desktop computers, use "screen-lock" instead. For questions regarding the unresponsive computer programs, use "freeze" instead.

0 votes
0 answers
94 views

We have a Samba file server and use Debian Linux for both server and clients. Everything works fine. Except for one thing: If someone opens a LibreOffice document (mainly Calc / *.ods), nobody else ...
MrSnrub's user avatar
  • 157
0 votes
0 answers
44 views

I've been playing with this autoslock.service file: [Unit] Description=Lock the screen on suspend +Before=sleep.target [Service] User=garrett Environment=DISPLAY=:0 ExecStart=/usr/local/bin/slock [...
kmaximus's user avatar
0 votes
1 answer
46 views

I am using Open File Description (OFD) owned locks on Linux (fcntl with command F_OFD_SETLK). After locking a file, I memory mapped it, and closed the file descriptor. Another process tried to lock ...
Érico Rolim's user avatar
2 votes
1 answer
74 views

fnctl (https://man7.org/linux/man-pages/man2/fcntl.2.html) supports locking a portion of a file (specified by start position and length). Behind the scenes, what does the algorithm look like? I'm ...
Novice User's user avatar
  • 1,429
0 votes
0 answers
336 views

I have a few directories that I want to lock. This lock should provide the following: Disallow anyone (including myself) from removing from that directory without a password Disallow anyone (...
David's user avatar
  • 173
3 votes
1 answer
169 views

Is there a way to have the OS (specifically, FreeBSD) or filesystem (specifically, ZFS) enforce that all access (or, at least, all non-root access, I guess) to a certain file must be done while the ...
Bob Vesterman's user avatar
5 votes
3 answers
948 views

I'm trying to find a way to lock a script based on a parameter given, but was unsuccessful in finding a proper answer. What I'm trying to achieve is prevent another user from running a script based on ...
classicmusiclover's user avatar
0 votes
1 answer
137 views

I have implemented faillock in all nodes in cluster, so If any user failed login attempts three time through ssh he will be locked for certain period.It is working fine on individual node but I wanted ...
akash kumar's user avatar

15 30 50 per page
1
2 3 4 5
10