Difference between revisions of "Network Questions"

From CS Support
Jump to: navigation, search
(Created page with "<div id="FileServer"></div> == What network storage is available to me? == All CIS users have storage on the department file server. Anything you place in your home directory...")
 
(How do I login remotely to CIS resources?)
Line 145: Line 145:
 
== How do I login remotely to CIS resources? ==
 
== How do I login remotely to CIS resources? ==
  
As of August, 2012, ITS Security team is blocking remote access to desktop computers from off-campus.  Only certain systems will be available from off-campus.
+
See [[Remote Access]]
 
 
Windows (Remote Desktop):
 
* remote.cis.ksu.edu (uses your CIS login)
 
* remote-ksu.cis.ksu.edu (uses your KSU eID login)
 
 
 
Linux (SSH):
 
* cislinux.cis.ksu.edu
 
 
 
There are no publicly-accessible Mac hosts in our department, only systems that are owned or used by individuals or projects.
 
 
 
'''Wireless users please note:''' For SSH or RDP access to our remote access servers, you must not be connected to the "KSU Guest" wireless network.  This network only allows web traffic (http/https) and nothing else.  You must be connected to "KSU Wireless" or "KSU Housing" if you are on-campus.
 
 
 
If you need access to any other CIS system and don't want to go through one of the above hosts first, you may install the campus VPN client on your remote systems (home desktops, laptops, etc), which you can download [http://www.ksu.edu/its/security/vpn/ here].  When you run it, you should login with your KSU eID and connect using the "Full Tunnel" option.  This routes all your desktop network traffic through the KSU network, effectively putting your desktop behind the campus firewall.  You can now use Remote Desktop or SSH client to connect to any CIS system.
 

Revision as of 16:32, 23 January 2015

What network storage is available to me?

All CIS users have storage on the department file server. Anything you place in your home directory is backed up nightly, with revisions stored going back six months.

On department linux systems, your home directory is automatically mounted as $HOME. The full path to your home directory can be found if you use the finger command on yourself on any linux host.

$ finger testacct
Login: testacct                 Name: Testing Tester
Directory: /home/ugrads/testacct        Shell: /bin/bash
Never logged in.
No mail.
No Plan.

In this case, testacct's home directory is /home/ugrads/testacct.

On department Windows systems, your home directory should be mounted as the U: drive. If you are manually mounting a drive, use the URI \\homefiles.cis.ksu.edu\<username> where <username> is your login.

If you need a large amount of space temporarily, you can request space in the transient volume (send an email to help@cis.ksu.edu). There are no quotas on directories in this volume, but there are also no backups made of files here. Support staff may also ask you to clean files out periodically to make room for others. On department linux systems, your transient directory will be found in /transient/<username. On department Windows systems, you can mount the share \\homefiles.cis.ksu.edu\transient\<username> to a drive letter of your choosing.

How do I setup CGI on my web page?

This question has been answered in the CIS UserGuide. Please see the section on Personal_Web_Pages.

Why don't you have an FTP server?

FTP is a very old protocol. It was designed before security considerations were a major part of protocol design. As such, passwords to the FTP server are sent in plain text---any clever user on the network can snoop your packets and steal your password. This would allow that user to gain access to your account, which is an unacceptable violation of our security.

If you need to access your home directory from a remote location, there are two different methods for doing so. See the documentation in the CIS Systems UserGuide for Remote Access or in the FrequentlyAskedQuestions about how to access your home directory from a non-CIS computer.

How do I use HTTP authentication?

To setup password authentication for a directory in your personal web space follow these steps from a linux shell (you will want to change passwordProtectedDir to whatever name you want and use your own usernames). <your_home_dir_path> is the full path to your home directory. If you don't know what this is, use the finger command from the command prompt of any linux host ("finger <eid>", where <eid> is your eID).

cd ~/public_html/
mkdir passwordProtectedDir
cd passwordProtectedDir
htpasswd -c .htpasswd user_who_gets_access
htpasswd .htpasswd other_user
cat << EOF > ~/public_html/passwordProtectedDir/.htaccess
AuthType Basic
AuthName "Checking Password"
AuthUserFile <your_home_dir_path>/public_html/passwordProtectedDir/.htpasswd
Require valid-user
EOF

Now create any files you want in the directory and set permissions appropriately.

chmod o+rx ~/public_html/passwordProtectedDir
chmod o+r ~/public_html/passwordProtectedDir/*.*

If you would like your files to only be password protected off-campus, use this command to make your htaccess file.

cat << EOF > ~/public_html/passwordProtectedDir/.htaccess
AuthType Basic
AuthName "Checking Password"
AuthUserFile <your_home_dir_path>/public_html/passwordProtectedDir/.htpasswd
Require valid-user
Order Allow,Deny
# This restricts access without a password to the KSU network
Allow from 12# 130.0.0/16
# This restricts access without a password to the CIS network
#Allow from 12# 130.8.0/22
Satisfy any
EOF

Why am I getting 500 Interal Server Error on all my scripts?

We use programs named suexec and suphp to make sure that all of your scripts run as you. This allows your scripts to access files that would normally be private and inaccessible by the web server. However, for security these programs will not allow your scripts to run unless the permissions set on your files and on the directories containing them are safe.

For CGI scripts, you must make sure the following are true:

  1. Your script must be stored in your home directory in the subdirectory named public_html/cgi-bin. You cannot place your scripts anywhere else.
  2. You must make sure that your home directory, the public_html directory, and the cgi-bin directory are not group or other writable:
  3. chmod 755 ~
    chmod 755 ~/public_html
    chmod 755 ~/public_html/cgi-bin
    

  4. Finally, you must make sure your scripts are executable, but not group or other writable:
  5. chmod 755 ~/public_html/cgi-bin/my-script.cgi
    

  6. If you have problems, try checking the end of the logs for additional information while pressing reload on your browser:
  7. tail -f /web/logs/error_log /web/logs/suexec_log
    

For PHP scripts, you must make sure the following are true:

  1. Your script must be stored in your home directory under the directory named public_html or a subdirectory of that directory.
  2. You must make sure that your home directory, the public_html directory, and every directory above your PHP script is accessible but not group or other writable:
  3. chmod 755 ~
    chmod 755 ~/public_html
    chmod 755 ~/public_html/otherdir
    

  4. Finally, you must make sure your scripts are readable, but not group or other writable:
  5. chmod 644 ~/public_html/index.php
    chmod 644 ~/public_html/otherdir/index.php
    

  6. If you have problems, try checking the end of the logs for additional information while pressing reload on your browser:
  7. tail -f /common/weblogs/polara/error.log /common/weblogs/polara/suphp.log
    

How do I setup ssh keys?

To setup ssh keys for authentication between CIS Linux and Solaris hosts, follow these steps

chmod go-w ~
cd ~/.ssh/
chmod 700 .
ssh-keygen -t dsa
cat id_dsa.pub >> authorized_keys
chmod 600 *

How do I access the wireless network in Nichols?

The CIS Wireless network is now managed by the K-State Computing and Telecommunications Services (CTS) networking department. To gain access to the network, you will need to have a valid K-State eID and follow these instructions listed on the CTS website.

How do I access the campus VPN?

Please see the K-State page on how to download, install, and use the VPN client for off-campus connection.

http://www.ksu.edu/its/security/vpn/

How do I login remotely to CIS resources?

See Remote Access