Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have never worked on linux and dont plan on working on it either - The only command I probably know is "ls" :)

I am hosting my website on Eapps and use their cpanel to setup everything so never worked with linux.

Now I have this one time case - where I need to provide access to a contractor to fix the CSS issues on my website. He basically needs FTP (read/write) access to certain folders.

At a high level - this is my code structure

/home/webadmin/example.com/html/images
                               /css
                               /js
                               /login.php
                               /facebook.php

/home/webadmin/example.com/application/library
                                      /views
                                      /models
                                      /controllers
                                      /config
                                      /bootstrap.php

/home/webadmin/example.com/cgi-bin

I want the new user to be able to have access to only these folders

/home/webadmin/example.com/html/js
/home/webadmin/example.com/html/css
/home/webadmin/example.com/application/views 

He should not be able to view even the content of other folders including files like bootstrap.php or login.php etc

If any sys admins can help me set this account up - will really appreciate it. Thanks

share|improve this question

migrated from stackoverflow.com May 1 '10 at 2:17

This question came from our site for professional and enthusiast programmers.

    
You might have better luck on superuser with this. –  Andrew B May 1 '10 at 1:18
    
I do have root access if thats what you mean by superuser –  Gublooo May 1 '10 at 1:22
    
hehehe, superuser.com –  Cesar May 1 '10 at 1:36
    
Thanks Cesar :) –  Gublooo May 1 '10 at 1:50
add comment

1 Answer

Create a new user in your control panel.

Add both the new user and your main user to a new group.

Give that group read/write permissions on the folders and files in question. Make sure that the files and folders are group writeable.

Make sure that the new users group is not the same as your current user.

share|improve this answer
    
Thanks Paul - I tried playing around by creating new user and groups in the control panel but there is no provision to specify what folders or files that group or user should have access to - So I'm assuming I need to do this from the command line as a root user - Thanks –  Gublooo May 1 '10 at 1:25
    
That's because you don't grant access to a folder on a user, you change the permissions of the folder. Specifically, you should give that folder read and write permissions, and change its ownership to the new user you create. –  Ernie Feb 9 '11 at 17:09
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.