Skip to the content

Kansas State University

[an error occurred while processing this directive]
[an error occurred while processing this directive] [an error occurred while processing this directive]
  1. K-State Home >
  2. Information technology >
  3. Help and training >
  4. Tools for web publishing >
  5. Creating your own personal home page

Creating your own personal home page

Before reading any of the following information and before creating your own web page read the Information Technology Use Policy. You are responsible for all information you make available via your HTML files.

You can create your own personal pages quite easily. To do so, follow these steps. These steps work when running a web browser (such as Netscape or Internet Explorer) on one of the Unix machines in the UCLs and on a PC or Mac, when working with a terminal emulater such as putty. A minimal working knowlege of Unix is helpful. If you have any questions or problems please contact the IT Help Desk in 313 Hale Library at 532-7722 or send email to helpdesk@k-state.edu.

  1. Make sure that your home directory has the appropriate permissions by logging into Unix and typing the commands below. The group and other permissions must have at least execute permissions set. Read access to your home directory is not required. For example:

    % chmod g-s ~
    % chmod og+xs ~
    % ls -ld ~
    drwx--s--x 24 guest guest 3072 Jun 3 10:51 /home/a/guest

    The permissions fields (the section with the drwx...) may not look identical to whats above. All that is important is that you do the chmod command exactly as it is listed there. That will allow people to access files and directories in your home directory that have world read and/or execute permissions (an r-x or --x in the last part of the permissions field). Use chmod go-rwx filename to make filename unaccessible by other people.

  2. Create a directory named .html in your home directory and give it appropriate permissions. This directory is where the web server will look for all of your public files. The group and other permissions must have at least execute access. If you do not plan to create a customized home page, you should give the directory read access for group and other.

    % mkdir ~/.html
    % chmod g-s,og+xs ~/.html
    % ls -ld ~/.html
    drwx--s--x 3 guest guest 512 Jun 3 02:59 /home/a/guest/.html

    This chmod command will allow everyone to access files and directories that are world readable and/or executable in your .html directory. Use chmod go-rwx filename to make filename unaccessible by other people.

  3. Copy this page to your HTML directory as index.html. The index.html file is the file that your home page is stored in and is the file that the web server searches for by default if you only specify a directory name. In Internet Explorer, under the "File" menu select "Save As...". In Netscape, under the "File" menu select "Save Page...". Specify HTML as the format for the saved document. Save it in the .html directory you created above and call it index.html.

    If you are using a web browser on a PC or Mac you can still save this page to a file and edit it, but you will need to use FTP to transfer it to your .html directory. All of the other commands mentioned below have to be run while logged into your CNS Unix account.

  4. Customize your home page. You will need some familiarity with HTML (HyperText Markup Language), the language in which web documents are created. Don't be put off by the word "language" in HTML. Creating HTML documents (at least simple ones) is quite easy.

    Internet Explorer and Netscape, as well as other WWW browsers, have the ability to show you the HTML source for any document that it shows you. In Internet Explorer, select the option "Source" from the "View" menu. In Netscape, select "Page Source" from the "View" menu. This is handy for seeing how someone did something in HTML.

  5. Set the permissions on your HTML file(s) so that they are world readable In order for anyone to see your pages on the web, the read permission must be turned on for group and world (other). For example:

    % chmod ugo+r ~/.html/index.html

    will add read permission for owner, group and the world (other) to your index.html file in your .html directory. You will need to do this for every file you want people to be able to access under your .html directory. If you have files that you are working on that you don't want people to access, do "chmod go-r filename" to remove the read permission from filename.

  6. Your home page can now be referenced with the URL (Universal Resource Locator) "http://www-personal.ksu.edu/~eid/". eID is your eID at K-State.

    Other files in your ~/.html directory can be accessed with the URL "http://www-personal.ksu.edu/~eid/filename".

Other Useful Resources


If you have any problems creating your home page, please contact the InfoTech Help Desk at helpdesk@k-state.edu or 532-7722.