Allow certain users to access a specific directory?
Posted
by animuson
on Server Fault
See other posts from Server Fault
or by animuson
Published on 2010-02-22T19:39:55Z
Indexed on
2010/03/26
0:03 UTC
Read the original article
Hit count: 402
I'm trying to figure out how to allow certain users who are also me to access a directory of files that I want to use for all of my users. I'm using cPanel and I used WHM to create three separate accounts.
The files I want to use are on account1
in the directory /home/account1/public_html/source/engines
and I want the directory /home/account2/public_html/source/engines
to use the same exact files without having to upload them to both places every time I change them, so I created a simple symbolic link and added account2
to the group account1
(while still keeping its own group as the primary). It still gives me a Permission Denied error though. Is there any way I can grant account2
and other accounts that I create for myself access to those files? I don't want them to be global to all users because I don't want my hosted users to be able to access them, only my users.
groups account1
returns account1 : account1
groups account2
returns account2 : account2 account1
/home/account1/public_html/source/engines
and all its files belongs to account1:account1
Any other information you might need just ask.
© Server Fault or respective owner