Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _____ _____ _ _____ _____ _____ _____ _____ _____
- ___| | __ |_| _ |_ _|___ ___|_ _| __| _ | |
- |_ -| --| -| | __| | | |- _|___| | | | __| | | | |
- |___|_____|__|__|_|__| |_| |___| |_| |_____|__|__|_|_|_|
- |s C R i P T z - T E A M . i N F O|----------------------------
- - iNfO -
- [SSH] Fix/Install Pure-FTPd
- - NOtIcE -
- [root@prod1 ~]# cd /etc/yum.repos.d/
- [root@prod1 /etc/yum.repos.d]# wget http://centos.karan.org/kbsingh-CentOS-Extras.repo
- [root@prod1 /etc/yum.repos.d]# vi kbsingh-CentOS-Extras.repo
- Change enabled=0 to enabled=1
- [root@prod1 /etc/yum.repos.d]# rpm --import http://centos.karan.org/RPM-GPG-KEY-karan.org.txt
- [root@prod1 /etc/yum.repos.d]# cd /etc/pure-ftpd/
- [root@prod1 /etc/pure-ftpd]# vi pure-ftpd.conf
- Make sure you have these options enabled
- [...]
- # If you want simple Unix (/etc/passwd) authentication, uncomment this
- UnixAuthentication yes
- # If you want to log all client commands, set this to "yes".
- # This directive can be duplicated to also log server responses.
- VerboseLog yes
- # PureDB user database (see README.Virtual-Users)
- PureDB /etc/pure-ftpd/pureftpd.pdb
- # Automatically create home directories if they are missing
- CreateHomeDir yes
- The CreateHomeDir option makes adding virtual users more easy by creating a user’s home directory upon login (if it doesn’t already exist).
- [root@prod1 /etc/pure-ftpd]# pure-pw useradd test -u 7000 -g 7000 -d /home/test/test
- Password:
- [root@prod1 /etc/pure-ftpd]# pure-pw mkdb
- [root@prod1 /etc/pure-ftpd]# service pure-ftpd restart
- Stopping pure-ftpd: [ OK ]
- Starting pure-ftpd: [ OK ]
- Test the user
- [root@prod1 /etc/pure-ftpd]# ftp localhost
- Connected to scriptz.lan.
- 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
- 220-You are user number 2 of 50 allowed.
- 220-Local time is now 00:47. Server port: 21.
- 220-IPv6 connections are also welcome on this server.
- 220 You will be disconnected after 15 minutes of inactivity.
- 500 This security scheme is not implemented
- 500 This security scheme is not implemented
- KERBEROS_V4 rejected as an authentication type
- Name (localhost:root): test
- 331 User test OK. Password required
- Password:
- 230-User test has group access to: 500
- 230 OK. Current directory is /
- Remote system type is UNIX.
- Using binary mode to transfer files.
- ftp>
- 6. Notes.
- - Every time you add a virtual user, run
- [root@prod1 /etc/pure-ftpd]# pure-pw mkdb
- to import pureftpd.passwd to pureftpd.pdb.
- Fixing "cant create new dir" -> chown -R 7000:7000 /home/some_path/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement