Questions about placing information online should be directed to a consultant at 515-3035 or send e-mail to help@ncsu.edu.
To give the world access to only your HTML files, you'll do several things:
First, you're going to alter the AFS file permissions for your home directory so that "system:anyuser" (which is everyone in the world) has "l" (which means "lookup") access. Think of your directories as a series of boxes inside each other. Before someone can 'lookup' and 'read' what's in the 'www' box, they have to be able to 'lookup' what's in your 'home directory' box first. Be aware that when you grant system:anyuser 'lookup' access to your home directory, anyone will be able to see the file and directory names in your home directory. They won't be able to read the files or move into subdirectories, just see the names.
Here is the syntax for the fs command:
fs sa directory [access list entries]
And here is what you should type:
cd
fs sa . system:anyuser l
Explanation: The cd command simply makes sure
you're in your home directory. The fs stands for "file system"
while the sa stands for "set access." The period means the
current directory (the one you're in). The moniker
system:anyuser means any person, and the l
means that anyone can 'lookup' file and directory names.If you would like to limit access to users within the NCSU computing realm, you can grant "rl" access to system:authuser. If you use this user name, only people with Unity/Eos computing accounts at NCSU will have read/lookup access to your document.
Second, create a directory called 'www'. All your HTML documents which you want to let others view will reside in this directory. The name of the directory will be a continual reminder that anyone can read what's inside.
To create the 'www' directory type the commands
cd
mkdir www
Explanation: The cd command simply makes sure you're in your home directory. The mkdir command actually creates the subdirectory.
Now move into the 'www' directory by typing the command
cd www
Once inside the www directory, you're ready to change its permissions to grant system:anyuser 'read' access.
Here is what you should type:
fs sa . system:anyuser rl
Important: never give system:anyuser any more rights than
'read' or 'lookup'.
Use the mv command (move) to move your HTML files into the 'www' directory. The synax for the move command is:
mv [what] [where]
For example, to move the file first.html from your home
directory to the subdirectory www, you'd type
mv test.html www
Warning: if the destination directory doesn't exist (in this
case the directory would be www), the mv
command will rename the file as the directory.
http://www4.ncsu.edu/system/directory_path/filenameAll "users" are on the www4 server. To figure out what the system and directory_path are, do the following:
/afs/unity.ncsu.edu/users/s/smitty/www/
(Instead of unity.ncsu.edu, you might see another system (such as eos.ncsu.edu), depending on where your home file space is.)
So far your URL looks like:
http://www4.ncsu.edu/unity/
Now use the rest of the path (everything after the unity.ncsu.edu part) as it
appears. Using the path above, the URL would be:
http://www4.ncsu.edu/unity/users/s/smitty/www/
http://www4.ncsu.edu/unity/users/s/smitty/www/homepage.htmlNote: You can use this method to figure out the URL of a document in a locker EXCEPT lockers will be on www2 rather than www4 (they are on different servers). Naturally, the locker must have the correct permissions set.
For example, to link to a document in a locker you'd use
http://www2.ncsu.edu/unity/lockers/users/s/smitty/file.html
http://www4.ncsu.edu/~userID/file.html
fs la .
You should see something like this:
[rmnixon]...>fs la . Access list for . is Normal rights: system:administrators rlidwka system:anyuser l rmnixon rlidwka jehrlich rl
Explanation: the fs part stands for "file system," the la stands for "list access," and the period stands for the current directory.
If you see something else, such as a user you don't know, you might consider contacting a Computing Services consultant at 515-3035.
fs sa . jehrlich none
Since your home directory has 'lookup' permissions for system:anyuser, the new subdirectory will automatically have the same rights. Be sure to remove system:anyuser rights on new directories if you don't want people looking at the file and directory list.