Seems a bit off topic for the site, but oh well. I'm not quite sure what you mean by "go straight to the directory"... I'm assuming you don't want a directory listing to be allowed. Since this is in reference to maleteen2000's question, I'm guessing you're refering to file system permissions rather than web permissions (though "Forbidden" sounds more like a httpd error than an OS error). If that's so, I don't think you can do that (i.e. prevent directory listings while allowing file access), at least not according to a quick test I did on Solaris. But I don't know why you would want to, either... you'll hear quite often that security through obscurity isn't security at all. Can you be more specific about what you want to do?

As for what the three concerned parties are (u, g, o), do an 'ls -l' in a directory to see all the file permissions and owner and group settings. Each file has an owner (you, if you created the file), and a group. When trying to access a file, the OS first checks to see whether you're the owner of the file; if so, owner (u) permissions apply. If not, it checks to see whether you're a member of the group to which the file belongs; if so, group (g) permissions apply. If neither of these is true, other users' (o) permissions apply. Unless you've explicitly set up groups so that the group is trusted somehow more than others, you'll probably want to set the permissions for group and others the same (almost always without write, read and execute depend on what you want).


In reply to Re: More Directory Permissions by athomason
in thread More Directory Permissions by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.