Profile function is divided into two kinds encrypted and unencrypted
No encryption:
First to create several users, this is my built two
Example: command: useradd qiyuan
Then enter: passwd qiyuan, password change it
We look at the home directory the following:
The user already has three
Next, open the configuration file enter the command: vi /etc/httpd/conf.d/userdir.conf
The change of content:
We can see that these two user rights we created enough, so we give him added authority.
Now changing for the better, enough authority can create a folder.
Now go to our users, the website created data directory
Then write content Home
Then give the site directory permissions to enable access
Enter the command: setsebool httpd_enable_homedirs = on, this service opens the SELinux
Then open the browser
This allows the
encryption:
That way just is not less secure password authentication, we then try to join password
First, we use the htpasswd command to generate the password database (-c parameter for the first generation)
Enter the command: htpasswd -c / etc / httpd / passwd fireuser
Next, edit the configuration file open password authentication
Enter the command: vi /etc/httpd/conf.d/userdir.conf
Such configuration is authname message
After entering a user name and password entered