Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have just setup the basic stuff for vsftpd. I got that working fine with root use thats all. I have also stupidly installed something to the root user home directory which I would like another user to access can this be done and how?

So for example I have the root folder "/root/installedapp/plugins" and I want to create a user called pluginmod to only have access to that folder.

Can someone please and explain how this is possible?

share|improve this question
    
The topic of having user accessible things in /root came up on ServerFault recently in reference to a similar issue. You might find the discussions there useful. –  Caleb Jun 25 '11 at 9:50
add comment

1 Answer 1

Run the following commands as root. First you need to add a new user.

# useradd -G ftp -b "/root/installedapp/plugins" pluginmod

Then set a password.

# passwd pluginmod

Then run chown to give ownership of the files to the user

# chown pluginmod "/root/installedapp/plugins/*"

After you restart vsftpd, you should be able to login to the user pluginmod over ftp with the password you set.

share|improve this answer
    
This answer will hit several gotchas, including any interaction between root and the pluginmod user will constantly create permission conflicts. Also it's a really bad idea to keep user accessible stuff in /root, and that should be mentioned in any answers that don't suggest a better way to do this. –  Caleb Jun 25 '11 at 9:10
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.