Advertisement
scriptz-team

[SSH] Fix/Install Pure-FTPd

May 20th, 2013
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. _____ _____ _ _____ _____ _____ _____ _____ _____
  2. ___| | __ |_| _ |_ _|___ ___|_ _| __| _ | |
  3. |_ -| --| -| | __| | | |- _|___| | | | __| | | | |
  4. |___|_____|__|__|_|__| |_| |___| |_| |_____|__|__|_|_|_|
  5. |s C R i P T z - T E A M . i N F O|----------------------------
  6.  
  7. - iNfO -
  8.  
  9. [SSH] Fix/Install Pure-FTPd
  10.  
  11. - NOtIcE -
  12.  
  13. [root@prod1 ~]# cd /etc/yum.repos.d/
  14. [root@prod1 /etc/yum.repos.d]# wget http://centos.karan.org/kbsingh-CentOS-Extras.repo
  15.  
  16. [root@prod1 /etc/yum.repos.d]# vi kbsingh-CentOS-Extras.repo
  17. Change enabled=0 to enabled=1
  18.  
  19. [root@prod1 /etc/yum.repos.d]# rpm --import http://centos.karan.org/RPM-GPG-KEY-karan.org.txt
  20.  
  21. [root@prod1 /etc/yum.repos.d]# cd /etc/pure-ftpd/
  22. [root@prod1 /etc/pure-ftpd]# vi pure-ftpd.conf
  23.  
  24. Make sure you have these options enabled
  25. [...]
  26. # If you want simple Unix (/etc/passwd) authentication, uncomment this
  27. UnixAuthentication yes
  28. # If you want to log all client commands, set this to "yes".
  29. # This directive can be duplicated to also log server responses.
  30. VerboseLog yes
  31. # PureDB user database (see README.Virtual-Users)
  32. PureDB /etc/pure-ftpd/pureftpd.pdb
  33. # Automatically create home directories if they are missing
  34. CreateHomeDir yes
  35.  
  36. The CreateHomeDir option makes adding virtual users more easy by creating a user’s home directory upon login (if it doesn’t already exist).
  37.  
  38. [root@prod1 /etc/pure-ftpd]# pure-pw useradd test -u 7000 -g 7000 -d /home/test/test
  39. Password:
  40.  
  41. [root@prod1 /etc/pure-ftpd]# pure-pw mkdb
  42.  
  43. [root@prod1 /etc/pure-ftpd]# service pure-ftpd restart
  44. Stopping pure-ftpd: [ OK ]
  45. Starting pure-ftpd: [ OK ]
  46.  
  47. Test the user
  48. [root@prod1 /etc/pure-ftpd]# ftp localhost
  49. Connected to scriptz.lan.
  50. 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
  51. 220-You are user number 2 of 50 allowed.
  52. 220-Local time is now 00:47. Server port: 21.
  53. 220-IPv6 connections are also welcome on this server.
  54. 220 You will be disconnected after 15 minutes of inactivity.
  55. 500 This security scheme is not implemented
  56. 500 This security scheme is not implemented
  57. KERBEROS_V4 rejected as an authentication type
  58. Name (localhost:root): test
  59. 331 User test OK. Password required
  60. Password:
  61. 230-User test has group access to: 500
  62. 230 OK. Current directory is /
  63. Remote system type is UNIX.
  64. Using binary mode to transfer files.
  65. ftp>
  66. 6. Notes.
  67.  
  68. - Every time you add a virtual user, run
  69. [root@prod1 /etc/pure-ftpd]# pure-pw mkdb
  70.  
  71. to import pureftpd.passwd to pureftpd.pdb.
  72.  
  73. Fixing "cant create new dir" -> chown -R 7000:7000 /home/some_path/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement