Skip to main content

Creating Student Accounts

Lincoln Center (erdos) / Rose Hill (storm):

All faculty with staff accounts on the dsm and storm servers can create student accounts there. The script will print account cards that contain their login credentials that can be handed to students.

Note: we use the sudo mechanism to grant non-root users authority to create users. The first time you use one of the scripts for this purpose, you will be given a short warning about responsible use of the sudo mechanism. Each time you run the scripts, you will be asked for a password. This will be your regular login password on storm or erdos (or dsm).

Important: for the erdos server, you must be logged in on dsm, to create accounts. Network Information Service (NIS) runs on dsm (but not storm). You can log in to dsm from erdos by running ssh dsm.

  1. Prepare the input file for the create-accounts script. We will assume it is named classlist.txt. If you are doing this outside the server, you will have to SFTP, e.g., with MobaXterm/Filezilla, or use a text editor (vi, nano, notepad) to copy and paste the contents of the HTML page.
    • If you are creating accounts for an entire class, it is convenient to create the input file from your class roster via the my.fordham.com portal, preferably with Firefox or Chrome. Go to the "Faculty" tab, then look for the "Faculty Dashboard" in the left side, and within "My Classes", click on the people icon People icon in Banner for your course to get a page showing all the students enrolled in the class. In that page, go into the roster area and save the page as plain HTML. In Firefox, do this by right-clicking on the page (ctrl-click on Mac), and selecting "Save Page As", then clicking "Save". In Chrome, right-click on the page (ctrl-click on Mac), select "View page source" and then right-mouse and select "Save as" and choose "Webpage, HTML only" from the dropdown in the bottom right. Choose a file name such as "cisc1100.html", save the file in your home directory on dsm or storm and run the following command, which will clean up the file, while using the left side of their @fordham.edu address as their username (the only caveat being some student use an @gmail.com address in Banner):
      $ accts-from-html-roster cisc1100.html > classlist.txt
    • Alternatively, by hand, use any text editor to create the text file classlist.txt with each account to be created on a separate line. The line begins with the username to be given to the user. This cannot have blank spaces. By convention, we use lowercase usernames, generally consisting of the left side of the user's @fordham.edu address. After the username, put a blank or tab, then the user's real name. Optionally after that put the user's preferred email address to which local Unix mail will be forwarded. A typical line might look like this:
      bovik Harry G. Bovik bovik@frobmail.com
  2. Feed the input file into the account creation script. Note that we reccommend you use -test (to see what will happen and check for existing usernames) and/or -help before the filename.
    $ create-accounts -test classlist.txt
    If the class is a graduate class, include the option -csga before the filename, so the accounts will be created in the csga directory. The account cards are printed on the default printer, which in LC is the HP LJ in room LL 612 and the HP LJ in JMH 302.
  3. To specify a different printer, for instance ps610-c, include the option -Pps612 but the filename should be the last option in the command so it would look like this: create-accounts -Pps612 classlist.txt
    1. Available Printers
      1. LC
        1. ps612 HPLJ P3015 in LL 612 (default)
        2. ps610-c HP color LJ in LL 610 hallway
        3. ps813 HPLJ P4014dn in LL 813
      2. RH
        1. jmh302, JMH 302 (default)
  4. If you'd prefer to "print to a file" you then use the -P- option like this:
    $ create-accounts -P- classlist.txt
    And that will print to a local file in your current directory called lpr.
  5. The script may report that some users already may exist. If their email address does NOT end in @fordham.edu (sometimes an @gmail.com appears in Banner), you can use the left side of their email address. i.e., the username. If the username exists and is not an obvious duplicate, use a CLI text editor to remove them from the input file. If it is simply a case of two students with the same last name, edit the file to change the username, for instance by prefixing it with the user's first initial. For instance, if username bovik is already taken, the input line in the example above could be changed to specify hbovik as the username instead. After correcting the input file, re-run the account-creation script.
  6. To reset a user password and have it print a new account card run the following command:
    gen-account-cards -Pps612 username
    • where username is the actual student username and -P can be any printer from the above list.
    • -P- will allow you to create a local file in your current directory called lpr (as in #4 above), e.g., gen-account-cards -P- username.
    • The storm server has a script called changepasswordof that can be run from any ssh session by a professor.