Take the 2-minute tour ×
Server Fault is a question and answer site for 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

migration rejected from stackoverflow.com Apr 25 at 3:26

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by Andrew Schulman, EEAA, Katherine Villyard, Ward, masegaloeh Apr 25 at 3:26

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

    
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

2 Answers 2

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

Make a new group called your folder. Make a new user in that group (useradd -g ) Give that group read write for that folder

share

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