Jump to content

[SOLVED] Granting full write access to another users web directory


acctman

Recommended Posts

i have two web areas /home/area1/public_html/ this holds the main site and php files, and /home/userimgs/public_html/  all the user images are held here. my problem is i dont have permession to unlink files from "userimg" from "area1"...

 

how do I sent full access write permission for user area1 to delete files on userimgs? FTP is not an open i'd like to look into, its just not stable enough to handle massive amounts of files passing through every few second with requiring a restart. what would be the proper way to do this with group and user write access

"my problem is i dont have permession to unlink files from "userimg" from "area1"... "

 

 

That doesn't make sense.  The previous CWD does not matter when trying to operate on files.

 

 

 

Anyway, you will want to either change the permissions with chmod or change the owner of the files with chown.  Or, you could make a group, put area1 and userimgs in it, and make area1 and the group the owners,

opps sorry about that, its been a long day.

 

correct: my problem is, I do not have permission to unlinked filed from "userimg" when accessing from "area1". area1 needs premission to remove files from userimg

 

how would I setup the groups, i'm been looking around the net for an example and have yet to find one.

groupadd userimggrp

 

(for lack of a better name, "userimggrp" lol.)

 

usermod -a -G userimggrp username

usermod -a -G userimggrp someotheruser

 

chown -R userimgs:userimggrp /home/userimgs/

 

(That would make the user userimgs the owner, and the group userimggrp the owning group.)

 

Then you would want to chmod it so that the owners would have full access.

 

chmod -R ug+rw /home/userimgs/

 

(Or ug+rwx is you plan on executing files under that path.)

groupadd userimggrp

 

(for lack of a better name, "userimggrp" lol.)

 

usermod -a -G userimggrp username

usermod -a -G userimggrp someotheruser

 

chown -R userimgs:userimggrp /home/userimgs/

 

(That would make the user userimgs the owner, and the group userimggrp the owning group.)

 

Then you would want to chmod it so that the owners would have full access.

 

chmod -R ug+rw /home/userimgs/

 

(Or ug+rwx is you plan on executing files under that path.)

 

thanks, that did it. YOU ROCK!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.