User (Personal) Web Spaces on SME 7

Sonora Communications, Inc.

  • Increase font size
  • Default font size
  • Decrease font size

User (Personal) Web Spaces on SME 7

E-mail Print PDF


Original location and files here. 

This is a mini-howto for creating user web spaces (SME7) by Damien Curtain, modified by Jean-Philippe PIALASSE.


You want to allow your users to have public web space accessable by http://www.your_domain/~user_name.

Note: this will create user web spaces for NEW users AND EXISTING users.


rpm -Uvh \ 

Answer YES to the question.


You can put a default index.html in /etc/e-smith/skel/user/home/public_html that will appear in the users webspace when the user is created.  

To copy the index.html file to all existing users: 

find /home/e-smith/files/users/ -type d -name public_html \
-exec cp /etc/e-smith/skel/user/home/public_html/index.html {} \;  \
-exec chmod 666 {}/index.html \;

To remove all index.html files in all user directories (DANGEROUS!) 

find /home/e-smith/files/users/ -type d \
-name public_html -exec rm -f {}/index.html \;

Disable Personal Web Spaces 

If at any stage you want to disable user webspace, enter these commands as root:

/sbin/e-smith/config set UserPublicWeb off

/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf

service httpd restart

Re-enable Personal Web Spaces

/sbin/e-smith/config set UserPublicWeb on

/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf

service httpd restart

The usual disclaimer: You are responsible for any changes you make to your server.

Last Updated on Sunday, 06 July 2008 21:21