We help IT Professionals succeed at work.

restrict access to directory

sikyala
sikyala asked
on
Medium Priority
409 Views
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?
Comment
Watch Question

Commented:
man chown
man chmod

example:
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


HTH,
-XoF-

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.