🛠️
Ghoul's Den
WebsiteGhoulsec-Vault
  • Ghoul's Den
  • Index of Tools
  • Index of Links
  • Top Ports
  • Initial Environment Deployment
    • Python3 & Pip Installation
    • Docker 🛳
    • Setting up AWS CLI
    • Msfconsole
    • Netplan configuration & Cloudinit
    • Wordlist Generation - CEWL
    • Apache2 Server
  • Information Gathering & Recon Tools
    • GHDB : Google Hacking Database
    • Sherlock : Social Media Footprinting
    • Nslookup
    • Dig (Domain Information Groper)
    • Recon-ng
    • HTTrack & Web Data Extractor
    • Email Tracker Pro
    • Shodan
    • ARIN Website Registry
  • Network Scanning Enumaration & Vulnerability Detection Tools
    • NMAP & SuperENUM
    • Nmap
      • Target Specification
      • Host Discovery
      • Port Scanning Techniques
      • Port Specification & Scan Order
      • Service Version Detection
      • OS Detection
      • Nmap Scripting Engine
      • Timing & Performance
      • FW / IDS / IPS Evasion
      • Miscellaneous Options
    • Colasoft Packet Builder & Megaping
    • Global Network Inventory
    • LDAP Enumeration > Active Directory Explorer
    • NetBIOS Enumerator
    • SMBEagle
    • RPC Scan
    • Nikto - Web Application Scanner
    • Enum4Linux
  • File Sharing Enumeration
  • Cloud Computing
    • AAD Internals
    • AWS CLI & S3
    • Trivy Scanner
    • S3 Scanner
    • LazyS3
  • Cryptography & stegnography
    • Veracrypt
    • Cryptanalysis Tools
    • Whitespace Cryptography - Snow
    • Creating a Self signed certificate in IIS
    • Steghide & Stegcracker
    • snow
  • Wireless Attacks
    • Aircrack-ng
  • Mobile Attacks
    • PhoneSploit-Pro
    • AndroRAT
    • ADB
  • SQL Injection Vulnerability
    • SQLMap
    • DSSS
  • IOT & OT Hacking
  • Social Engineering
  • Honeypot & IDS
    • Cowrie Honeypot
  • Sniffing & DDos
    • Sniffing
      • Capturing Remote packets using Wireshark
      • Detecting Sniffing using Nmap
    • Denial of Service (Dos & DDos)
      • DDos Protection using DDos Guardian
  • Malware Attacks
  • Password Cracking & Windows exploitation tools
    • Hydra
    • John
    • Hashcat
    • CrackMapExec
    • Impacket
    • Powerview
    • BitsAdmin
    • Rubeus (Kerberoasting) & Winpeas
    • AD-DC Querying
    • mstsc - RDP
  • System hacking & buffer overflow
    • Responder
    • Reverse Shell Generator
    • Clearing Traces
  • Session Hijacking
    • Caido
    • Bettercap
  • Web Servers & Applications
  • Linux Fundamentals
    • Find Command
    • Grep Command
Powered by GitBook
On this page

Linux Fundamentals

In Ubuntu (and Linux in general), file permissions are represented by three characters: r (read), w (write), and x (execute). These permissions are assigned to three different categories of users: the owner of the file, the group associated with the file, and others (everyone else).

Each of these characters has a numeric equivalent, which is used when setting permissions via the chmod command.

Here are the values:

Permission Characters and Their Values

Permission
Symbol
Numeric Value

Read

r

4

Write

w

2

Execute

x

1

No Permission

-

0

Understanding the Numeric Representation

The permissions are represented by a 3-digit number (for user, group, and others). The number is a sum of the individual permissions, where:

  • Owner: First digit (User permissions)

  • Group: Second digit (Group permissions)

  • Others: Third digit (Other users' permissions)

Common Permission Sets

Here are some common examples of permissions with their numeric equivalents:

Permission
Symbol
Numeric Value

rwxrwxrwx

777

Full permissions for everyone (owner, group, others)

rwxr-xr-x

755

Owner can read/write/execute; group/others can read/execute

rw-r--r--

644

Owner can read/write; group/others can read

r--------

400

Owner can read only

rwx------

700

Owner can read/write/execute; group/others have no permissions

Get the permissions back as in human readable format with :

stat -c "%a" <filename>
PreviousWeb Servers & ApplicationsNextFind Command

Last updated 3 months ago