Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 192957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:28:11+00:00 2026-05-11T16:28:11+00:00

Hi I have 2 questions regarding linux directory permissions which I do not understand.

  • 0

Hi I have 2 questions regarding linux directory permissions which I do not understand.

I removed the execute flag from a folder named Documents. After that I cannot use cd on it but I still can do “ls Documents” from the parent directory and it still lists me the files in the Documents directory.
I though the missing x-flag denies reading this directory?

Then I want to know for why the sticky bit on directories was invented. I’ve heard it was used so that users cannot delete temp-files creates by other users. But this IMO violates the rule that for deletion of files we just need rights for this directory. Why not simply give each user a separate /tmp/ directory instead of introducing exceptions in the rule system?
I know what the flag does, but I want to know the reasoning on why is was invented.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T16:28:11+00:00Added an answer on May 11, 2026 at 4:28 pm

    Execute bit: The execute bit is needed to traverse a directory. Permission to read a directory is controlled by the read bit.

    See this shell dialogue for an example of this difference:

    As root:

    # find foo/ -ls
    drwxr-xr--   3 root     root         4096 Apr 27 12:57 foo/
    drwxr-xr-x   2 root     root         4096 Apr 27 12:57 foo/bar
    -rw-r--r--   1 root     root            0 Apr 27 12:57 foo/bar/file
    

    as user:

    $ ls foo/
    bar
    $ find foo/ -ls
    drwxr-xr--   3 root     root         4096 Apr 27 12:57 foo/
    find: foo/: Permission denied
    $
    

    The usual usage is the other way round though: removing read permissions but allowing traversal, e.g. to allow a web server into ~/public_html but not letting it do the default index listing by setting --x.

    Sticky bit: This was invented exactly to avoid the default rules about deletion within a directory so /tmp works. /tmp might reside on a different volume than /home and/or be governed by different quotas.

    The FHS codifies /tmp “for programs that require temporary files” while “[they] must not assume that any files or directories in /tmp are preserved between invocations”.

    Personally, I consider /tmp to be legacy from the heathen days when vi globals.h && make install was considered an installation procedure. Nowadays programs should honour $TMPDIR, which should point to a user-private system-managed directory, which should be cleaned at least on reboot. Even standardised functions like tmpfile(3) do not prescribe the actual path. Although there seem to be important compatibility and security concerns speaking for /tmp. Note though, that the last mail is from 1999, so things might have change since then.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 92k
  • Answers 92k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer When I run into this situation I use a class… May 11, 2026 at 6:30 pm
  • Editorial Team
    Editorial Team added an answer If every single word you can squeeze out of the… May 11, 2026 at 6:30 pm
  • Editorial Team
    Editorial Team added an answer You can simulate a distribution such as the one you… May 11, 2026 at 6:30 pm

Related Questions

I'm just starting out (reading up a lot for the past couple of days).
i have a statement int A = 10,B=6,C=5; and i want to write a
alt text http://barbarosalp.com/questions/list.png Hi, As you can see on the picture above i have
I am currently trying to write a Treetop grammar to parse Simple Game Format
Hi I have a JSON object that is a 2-dimentional array and I need

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.