search | site map

Scott Granneman

panorama-152.jpg
  • Writing
    • Books
    • SecurityFocus
    • Linux Magazine
    • Others
    • Swings & Misses
  • Presentations
    • Interviews
    • Ladue Chapel
  • Teaching
    • Current Courses
    • Student Evaluations
    • Washington University
    • Webster University
    • St. Louis Community College
    • Archives
  • Web Development
    • Becoming a Web Developer
    • Coding
    • Programming
    • Editors
    • Web Browsers
    • Domains
    • Hosting
    • Graphics & Multimedia
    • Content
  • Tech Info
    • Background
    • Tools
    • Intellectual Property
    • Security
    • Email
    • Networking
    • Blogs, Podcasts, RSS
    • Search
    • Linux
    • Windows
    • Education
  • Personal
    • Work
    • Movies
    • Music
    • Reading
    • Poetry
    • Prose
    • Photos
    • Journals
    • Commonplace Book
    • Our Home
    • Opinions & Editorials
Home > Tech Info > Linux > The Linux Environment > Permissions

Permissions

After typing ls -l, you'll get a list of all files & directories, along with other information, including permissions associated with those files & directories. These permissions might look like any one of the following:

-rw-rw-r--
lrwxrwxrwx
-rwxr-xr-x

These permissions can be divided up as follows:

position 1 = type of object
positions 2-4 = permissions for owner
positions 5-7 = permissions for group
positions 8-10 = permissions for world

Possible types for position 1:
d = directory
- = file
l = link to another file or object (like a Windows shortcut)
s = socket
= = pipe
b = block device (eg, a disk drive that handles data a block at a time)
c = character device (eg, serial or parallet ports that handle data on byte, or character, at a time)

Positions 2, 3, & 4 tell us if the owner has read, write, & execute permissions for the file or object.

2 r read
3 w write (create, modify, delete)
4 x execute (run)

A - in any position indicates that the user does NOT have permission to read, or write, or execute.

Positions 2-4 correspond to positions 5-7 and 8-10 for the group and the world, respectively.

In other words, permissions can be read as follows:

<object type><owner read><owner write><owner execute><group read><group write><group execute><world read><world write><world execute>

Contact

Email scott@granneman.com
Voice 314-780-0489
Address
39 Summit Place
St. Louis, MO 63119
United States

Work

For work info, see WebSanity.

All content, unless under a Creative Commons license, is © 1997-2011 Scott Granneman.

(Take a look around—a lot of content is licensed under a Creative Commons license, which gives YOU a lot of freedom to reuse my work.)

facebook_32.png Facebook   twitter_32.png Twitter
linkedin_32.png LinkedIn   friendfeed_32.png FriendFeed
flickr_32.png Flickr   lastfm_32.png Last.fm
youtube_32.png YouTube   rss_32.png RSS