login about faq

To prove you're not a spammer, email newuser.lgqa@gmail.com with the subject "Account Request" to request an account.


I need to have FTP set up to allow <username> to access /home/<username>

Is this possible on CentOS?

Thanks

asked Oct 28 '10 at 08:07

Jackster1337's gravatar image

Jackster1337
8.5k185218303

closed Oct 28 '10 at 09:56

AppleHack23's gravatar image

AppleHack23
(suspended)

AppleHack23, Do not close this until it's got a answer....

(Oct 28 '10 at 10:03) Jackster1337 Jackster1337's gravatar image

sudo apt-get install proftpd

answered Oct 28 '10 at 08:42

AppleHack23's gravatar image

AppleHack23
(suspended)

Oh yes.... Sudo is definitely going to work with CentOS....... Witch is stated in the title......

(Oct 28 '10 at 09:29) Jackster1337 Jackster1337's gravatar image

Super-user do. It should work on any UNIX based filesystem. And if you're goin to downvote everybody's answer for your own fault by installing a limited operating system, then you're not going to get any help at all. You should be appreciating my contribution to help you. My suggestion is o install Ubuntu and go from there.

(Oct 28 '10 at 09:55) AppleHack23 AppleHack23's gravatar image

I do appreciate what you tried to do but i did state "CentOS" in my question.

So giving a answer that just would not work... Well its not much help is it.

(Oct 28 '10 at 09:57) Jackster1337 Jackster1337's gravatar image

I down-voted it anyway. Grow up applehack23.

(Oct 28 '10 at 10:52) SignOff SignOff's gravatar image

"your own fault by installing a limited operating system"

CentOS is one of the most developed lunix based systems...

Every thing from Cpanel to Direct admin is based on CentOS...

(Oct 28 '10 at 14:02) Jackster1337 Jackster1337's gravatar image
Create a FTP user group. eg: ftpaccounts

/usr/sbin/groupadd ftpaccounts

Add a new user to this group, and set the default path of that user to /home/user/.

/usr/sbin/adduser -g ftpaccounts -d /home/user/ testuser

Set a password for the newley created user.

passwd testuser

Set ownership of /home/user to the testuser and ftpaccounts.

chown testuser:ftpaccounts /home/user

Give Read/Write access to testuser and all members in ftpaccounts

chmod 775 /home/user

Edit /etc/vsftpd/vsftpd.conf file and make sure 'local_enable=YES' is uncommented.

Restart the vsftpd service.

/etc/init.d/vsftpd restart

. . . . Seams to work..... Something wrong with VSFTPD though ;P

answered Oct 28 '10 at 10:17

Jackster1337's gravatar image

Jackster1337
8.5k185218303

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported


Tags:

×261
×35
×14

Asked: Oct 28 '10 at 08:07

Seen: 4,915 times

Last updated: Oct 28 '10 at 14:02