Questions tagged [lock]

228 questions
46
votes
6 answers

How to unlock locked session?

I'm using xubuntu 14.04 on AMD based hardware. It is configured not to lock a session and not to power down automatically on longer idle times. There have been no recent changes or new software installations other than notified security updates. I…
6
votes
2 answers

What is the purpose of lock file?

I have seen a file named lock in /var/cache/apt/archives in my Ubuntu 14.04. This file has only root access. When I try to display the contents of this file using sudo nano lock the file seems empty. What is actually the purpose of this file?
Anandu M Das
  • 2,233
2
votes
2 answers

What is the role of lock files in a system?

I can see there are many lock file here and there in my system. What is the exact role and purpose of those lock files? In my system I got this…
sourav c.
  • 44,715
1
vote
1 answer

automatic lock screen issue

My Ubuntu 13.04 does automatic lock screen after X minutes, but the screen is still showing any opened windows. Only after we tried to click or type anything, Ubuntu will prompt password to unlock. How we completely hide any windows open once the…
Husni
  • 561
1
vote
0 answers

Manually Simulate "bad interpreter: Text file busy"

Sometimes I get an error: chmod +x a.sh ./a.sh Error a.sh: /bin/bash: bad interpreter: Text file busy I figured out the solutions was to add a sleep between the two…
1
vote
0 answers

ubuntu 18.04 locks itself after 5 mins from logging even if working

I had installed ubuntu 18.04 on my del inspiron lap. when I logging in and work it returns to lock screen after 5 minutes even if I am working.
0
votes
2 answers

How do I lock a file on linux without compressing or encrypting

Okay so my brother love to poke his nose in to my business whenever he can I want to make my folders safe from him and I don't want to encrypt the folders or turn it into a compress file is there another way that is password protected, maybe like a…
DoasLM
  • 11
0
votes
2 answers

Restrict access to windows system files

I have both Ubuntu and windows 8 in my PC, i just want to make sure that i don't accidentally delete windows files. Is there a way to do so?? Maybe a partition locking tool or anything. Is there a way to restrict access to windows files by Ubuntu…
0
votes
1 answer

restore files in path /var/lib/dpkg lock

I accidentally deleted /var/lib/dpkg/lock and /var/lib/dpkg /frontend files from my ubuntu 22.04 system. How do I return them?
hnyh
  • 1
0
votes
1 answer

Lock the Computer over Night and on Weekends

Given my computer runs on Ubuntu, and I can install on it whatever I like: If I would want to prevent myself from using the computer in the night and on the weekend, what software solution comes closest to putting the computer into a box locked with…