acctman Posted February 12, 2009 Share Posted February 12, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/144971-solved-granting-full-write-access-to-another-users-web-directory/ Share on other sites More sharing options...
corbin Posted February 12, 2009 Share Posted February 12, 2009 "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, Quote Link to comment https://forums.phpfreaks.com/topic/144971-solved-granting-full-write-access-to-another-users-web-directory/#findComment-760797 Share on other sites More sharing options...
acctman Posted February 12, 2009 Author Share Posted February 12, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/144971-solved-granting-full-write-access-to-another-users-web-directory/#findComment-760813 Share on other sites More sharing options...
corbin Posted February 12, 2009 Share Posted February 12, 2009 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.) Quote Link to comment https://forums.phpfreaks.com/topic/144971-solved-granting-full-write-access-to-another-users-web-directory/#findComment-760825 Share on other sites More sharing options...
acctman Posted February 12, 2009 Author Share Posted February 12, 2009 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! Quote Link to comment https://forums.phpfreaks.com/topic/144971-solved-granting-full-write-access-to-another-users-web-directory/#findComment-760889 Share on other sites More sharing options...
corbin Posted February 12, 2009 Share Posted February 12, 2009 Quote Link to comment https://forums.phpfreaks.com/topic/144971-solved-granting-full-write-access-to-another-users-web-directory/#findComment-760914 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.