permission woes

Red Squirrel

No Lifer
May 24, 2003
70,662
13,834
126
www.anyf.ca
I'm trying to give access to a directory for a regular user to write to. The only way afaik to do t his is that the user has write access to every parent folder too. Is there a way around this? It's just not viable to do this. I only want the user to have access to that one folder. i made the user the owner and it's chmodded 775 and it just wont work. Get permission denied when try to create a file.
 

degibson

Golden Member
Mar 21, 2008
1,389
0
0
Make sure the path from root to the folder has read and execute access for all, or for the user's group. e.g. 555 on /export, 555 on /export/home, 755 or 775 on /export/home/user.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
degibsion is right, you don't need write access to all of the parent directories otherwise / would have to be 777 for /tmp, /home/username, etc to work.
 

Red Squirrel

No Lifer
May 24, 2003
70,662
13,834
126
www.anyf.ca
Yeah realized when I was testing I was logging in and the user's shell is /dev/null for security reasons (not normally a user that logs in - just a service account) so when I tried I was still as another user.

Got it sorted out now.