Linux /usr/share Directory Explained¶
Linux Filesystem Standard (FHS)¶
/usr/share/ = Architecture-independent shared data
- System-wide location all users can access
- Package managers install here by default
- Tools expect wordlists here (hardcoded paths)
Other Common Paths¶
/usr/local/share/- Manually installed shared data/opt/- Optional third-party software~/- User-specific (not system-wide)
How to Install to /usr/share/¶
Version 1: Using APT (Automatic)¶
# Automatically installs to /usr/share/
sudo apt install seclists
sudo apt install wordlists
sudo apt install dirb
Version 2: Clone Directly¶
# Clone directly to /usr/share/
sudo git clone https://github.com/danielmiessler/SecLists.git /usr/share/seclists
Version 3: Download Then Move¶
# Download anywhere
git clone https://github.com/danielmiessler/SecLists.git ~/SecLists
# Move to system location
sudo mv ~/SecLists /usr/share/seclists
# Fix permissions
sudo chown -R root:root /usr/share/seclists
Version 4: Symbolic Link¶
Why /usr/share/ Specifically?¶
System-wide Access¶
- All users can read (no permission issues)
- Root owns it (security)
- Doesn't get deleted with user account