How to Create FTP Users in CentOs 6.4?
- Add a user called "bira"
# useradd bira
Add a password for the user "bira"
# passwd bira (Enter)
New password: (enter your password)
Retype new password: (enter the same password again)
passwd: all authentication tokens updated successfully.
Now give the directory access for the user.
Change the ownership for the "html" directory
# chown bira /var/www/html
Change the group for this "html" directory .
#chgrp bira /var/www/html
list the directories and check
# ls -l
drwxr-xr-x. 3 bira bira 4096 Nov 21 13:23 html
Finally re-start the vsfptd server.
# service vsftpd restart
list the directories and check
# ls -l
drwxr-xr-x. 3 bira bira 4096 Nov 21 13:23 html
# service vsftpd restart
All done! just trying to connect with your FileZilla ftp client.
if not:
Do you have SELinux enabled?
To check: # sestatus
If SELinuxstatus = on & Current mode = enforcing, it's all enabled...
so lets turn it to permissive mode.
Permissive mode: # setenforce 0
Check sestatus again, and it should be Current mode = permissive. This basically leaves SELinux on, but in a log only manner.
All done! just trying to connect with your FileZilla ftp client.
If you still having issues please let me know my self.
No comments:
Post a Comment