restrict access to directory

Posted on 2006-04-05
Last Modified: 2013-12-27
Could someone tell me how to restrict access to a directory so that only authorized individuals have access to it or direct me to the right documentation for implementing this?
Question by:sikyala
    1 Comment
    LVL 7

    Accepted Solution

    man chown
    man chmod

    allow only members of group "foo" complete access to directory "dir"
    chown root:foo dir
    chmod 770 dir

    allow only root complete access to directory "dir", members of "foo" are allowed to list contents:
    chown root:foo dir
    chmod 750 dir


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Suggested Solutions

    Title # Comments Views Activity
    sort command HPUX 11 42
    tar syntax help 5 128
    NTP Server in VMware 5 89
    What are recommended OS for exim mail server? 10 45
    A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
    Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    This tutorial goes over how to archive and restore FreeBSD jails that are managed by ezjail.

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now