Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 02-12-2009, 04:38 PM   #1
LQ Newbie
Registered: Feb 2009
Posts: 12

Rep: Reputation: 0
Granting full write access to another users web directory

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 permission 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
Old 02-12-2009, 05:58 PM   #2
LQ Newbie
Registered: Jan 2009
Distribution: Linux Mint
Posts: 7

Rep: Reputation: 0
Hmmm... assuming all the files and folders under /home/userimgs are owned by userimgs and userimgs has a group called userimgs you should be able to put the user area1 in the group userimgs like so:

$ sudo usermod -a -G userimgs area1
Of course, I believe you'll have to have root access to do that. If it all works out you then just have to make sure that the files you are wanting to unlink have group write permissions, something like 664. For example:

$ ls -l
total 4
-rw-r--r-- 1 userimgs userimgs 1583 2009-02-12 16:52 image.jpg
$ sudo chmod 664 *.jpg
[enter your password]:
$ ls -l
total 4
-rw-rw-r-- 1 userimgs userimgs 1583 2009-02-12 16:52 image.jpg
Let me know if I'm being unclear or if you need any additional help. I'm still new to explaining how I accomplish Linux tasks to people.
Old 02-12-2009, 06:32 PM   #3
LQ Newbie
Registered: Feb 2009
Posts: 12

Original Poster
Rep: Reputation: 0
i sold the issue with this...

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.)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Granting full read/write permissions to all files for a specific user laserjim Linux - Security 10 01-31-2009 12:17 PM
Granting users access to external media devices? byebyebilliegates SUSE / openSUSE 5 07-22-2007 01:24 AM
Full access directory for all users mmowchenko Linux - Newbie 4 11-04-2005 08:15 AM
Full write access to vfat R¬dical_úD SUSE / openSUSE 2 03-18-2005 04:15 AM
Granting users full internet access!? adham1sa Linux - Networking 3 12-22-2004 07:08 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration