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 want to grant FTP access to specific folders, with specific user/passes on CentOS 5.5.

Example of directories: /var/www/html/userone /var/www/html/usertwo

Yes security would be important, read and write access of course.

I haven't tried anything as it's a fresh new server, I don't even think FTP is installed, and I don't know how on CentOS.

Thank you!

share|improve this question
    
What have you tried so far? Is this read-write access? Do you care at all about security for this? (Which is to say, do you have to use FTP?) –  mattdm Dec 2 '10 at 14:01
    
Yes security would be important, read and write access of course. I haven't tried anything as it's a fresh new server, I don't even think FTP is installed, and I don't know how on CentOS. –  Andrew Fashion Dec 2 '10 at 14:12

2 Answers 2

up vote 2 down vote accepted

"yum install proftpd" should install the ftpd server.

I would STRONGLY suggest just using SCP/SFTP instead though - which is part of SSH. Pretty much every app and file transfer program (i.e. filezilla) already supports this anyhow. It will give you encryption - so if someone is sending files from their home, someone cannot snoop the passwords.

The easiest thing to do would be to change the owner/permission on the folders to just those specific users

chown -R user1 /path/to/user1/dir

chown -R user2 /path/to/user2/dir

share|improve this answer

useradd someuser -d /var/www/html/userone -s /bin/false passwd someuser "and set 2 some pass"

share|improve this answer

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.