Locking Your Files-Computing Services - Carnegie Mellon University

Locking Publication: Course & Personal Pages

If, for whatever reason, you would like to ensure that no one (including you) can inadvertently publish your personal or course web pages, you can "lock" the pages from publishing by saving a file named .notpublish in your WWW directory.

Follow these steps:

  1. Launch a telnet session.
  2. Type the following command to set your working directory to WWW:

    cd www

    where pathname is the full path name for your your course's project volume or the www directory you created for your web pages.
  3. Type the following command to create the file that will tell the server not to publish your files:

    touch .notpublish

Unlocking Your Web Pages

When you lock your pages, even you won't be able to publish them. If you want to publish your files, remove the .notpublish file by typing the following UNIX command while in your www directory:

  • rm .notpublish

Last Updated: 6/3/13