Abbreviation For Lock Daemon
.
Unix-Style Lock Written In Bash. Best Suitable For Termux.
-
Open Source.
-
Single-File Daemon.
-
Embeddable.
-
Robust.
-
Complex Architecture.
-
3 Factor Authentication (3FA) (
Hostname -> Username -> Password
). -
Uses Different Hostnames, Usernames, And Passwords, Than Actual System Hostnames, Usernames, And Passwords. No Need To Expose Confidential Details!
-
Multi-Level Classification Possible For Multi-User Systems.
-
Built-In Enabling/Disabling Feature For Entire Lock, By Setting Value Of
loggedin
Variable To Any Number Greater Than0
, And For Specific Authentication Factors, By Commenting Out Specific Factor Checking Conditional Statements Using#
. -
Custom Commands Can Be Embedded For Each Hostname And/Or User And/Or Password For Internal Mechanism Customization, As Well As User Desired Customization.
-
Highly Compatible With Termux.
-
Cannot Interrupt With
CTRL C
Or Any Type Of Interrupt Signal. -
Can Be Customized To Greet Individual Users With Individual Welcome Messages, And Run Various Commands Specifically As Per Individual User's Choice, As Desired.
-
Easy To Understand, For
Features -> 9.
. -
Can Increase And/Or Decrease The Number Of Attempts Of Failed Authentication Factors, By Changing The Values Of
failhnamecount
And/Orfailunamecount
And/Orfailpwordcount
To Desired Number Of Attempts.
-
Doesn't Uses Real Hostnames, Usernames, And Real Passwords For Classification.
-
Can Bypass If :-
-
External Access To Daemon File Is Possible.
-
If Any Time-Consuming Process Is Running Before LockD, And That Process Is Interrupted Manually. E.g. :-
Time-Consuming_Process && lockd
OrTime-Consuming_Process ; lockd
.
-
-
Malicious Actors Can Create Backdoors, If, External Access To Daemon File Is Possible.
-
Doesn't Natively Work On Shells Other Than Bash ( Might Work On Shells Based On Bash ). For Making It Work On Other Shells, Entire Code Of The
LockD
Mechanism Needs To Be Re-Written Using The Target Shell Scripting Language.
-
Download The LockD File
lockd
.-
Using
git clone
. -
Using
Download File
Feature Of This Repository.
-
-
Move The Downloaded
lockd
File In The Same Directory Where.bashrc
Is Stored. -
Provide
Execute
Permission Usingchmod x lockd
. -
Append This New Line In
.bashrc
:-./lockd
-
Change Hostname(s), Usernames(s) From Conditional Statements, And Password From Predefined Variable Of
lockd
File, As You Desire.
Note :- You Can Add More Hostnames, Usernames Per Single Hostname, Password Variables Per Single Username, As You Desire.
1. Make Sure That The `lockd` File Is Starting First, Before Any Time-Consuming Process Or Any Process That Cannot Be Interrupted ( E.g. :- Neofetch, Which Takes Time To Print System Information ).
2. If `.bashrc` Contains Important System Commands, Give Them First Priority, Then Second Priority To `lockd`, Then To Any Other Non-System Interruptable Process.
1. Make Sure That The `lockd` File Is Starting First, Before Any Time-Consuming Process Or Any Process That Cannot Be Interrupted.
If Any Issue/Defect/Bug/Error/Exception/Etc. Occurs And/Or Found, Leaving Your Device(s)/Computer(s)/Machine(s)/System(s) Vulnerable, STOP USING LockD AS SOON AS POSSIBLE!
-
If Any Loss ( Data/System/Etc. ) Occurs, I, The Creator Of This
LockD
Mechanism, Am Neither Responsible, Nor Liable. -
If Any Issue/Defect/Bug/Error/Exception/Etc. Occured And/Or Found In This
LockD
Mechanism, And Can Be Avoided By Modifying The Code Of ThisLockD
Mechanism, :--
If The Issue/Defect/Bug/Error/Exception/Etc. Is Locally Occured And/Or Found On A Single Device/Computer/Machine/System, Feel Free To Modify The Code Of This
LockD
Mechanism Locally In The Device/Computer/Machine/System, To Avoid The Occured And/Or Found Issue/Defect/Bug/Error/Exception/Etc, BUT, Then That Modifier/Person Who Modified The Code Of ThisLockD
Mechanism Locally, And/Or The Organization/Company/Group Of Companies/Etc. Under Which The Modifier/Person Who Modified The Code Of ThisLockD
Mechanism Locally, Is Working And/Or Contributing For, Is Entirely Responsible For Any Loss ( Data/System/Etc. ) Caused By The Locally Modified Code Of ThisLockD
Mechanism. -
If The Issue/Defect/Bug/Error/Exception/Etc. Is Globally Occured And/Or Found On Multiple Devices/Computers/Machines/Systems, Feel Free To Raise Issue(s) Or Pull Request(s) On This Repository, BUT, If Any Loss ( Data/System/Etc. ) Occurs Before And/Or After The Issue/Defect/Bug/Error/Exception/Etc. Is Occured And/Or Found, I, The Creator Of This
LockD
Mechanism, Am ( STILL ) Neither Responsible, Nor Liable.
-
Heck! Even This README Is Made in Nano On Termux.