This assignment asks for a series of screen shots. If possible, show only your terminal window in
the shot. On a Mac, use the Applications/utilities/Grab. Turn in the screen shots listed below,
numbered Ponds1, Ponds2, etc.
• Mark Morton has set up a shared machine for us at UNH.w1mem.com. I set up an account for
you on that machine. Your login name and your initial password have been emailed to you.
• Open a shell on your own home computer. Make it as long as your screen allows and as wide
as needed to show whole commands.
• Use ssh to log into your account at UNH. Suppose your name was Janis Ponds; then your
login command would be:
ssh jponds@UNH.w1mem.com
If you don’t like this strange long login, I suggest you create a short alias for it.
• Immediately change your password using the command passwd. You will be prompted to
enter the old password and then a new one, twice. Choose one that is at least 8 chars long
and contains a digit or special character. Take a screen shot showing the login and process
of changing the password.
• Your home directory has the wrong permissions. Right now, too many people can read it.
Change the permissions on your home directory to shut everyone else out:
chmod 700 ∼jponds
• Use cd .. to move upward one level in the file directory. Then list the long form of the
directory. (ls -l or ll) Take a screen shot showing showing the ll command and the permissions
on your home directory. cd back to your home directory.
• Open up the .txt file in an editor (use emacs or vi) and put your name on the first line. Store
the changed file under the same name.
• Use mv to change the name of that file to anything you like, with a .txt extension.
• List the files in your home directory again. Display your modified file on the screen using cat.
Take a screen shot showing the listing and the contents of the file.
• Use more to list the contents of the file .bash_profile. Take a screenshot. Note the colon
and dot on the end of the path name. This will be loaded every time you log in. It permits
you to omit the ./ on the beginning of your commands.
• Use less to list the contents of the file .bashrc. Take a screenshot. I have entered a few
commands for you. One shows you the bash syntax for defining an alias. This will be loaded
when you log in and every time you create a shell interactively. Add your personal aliases
here.
• On your home machine, use rsync to copy the two bash files from the remote machine to your
home machine. Be sure your are in the home machine, home directory, then do:
rsync jponds@UNH.w1mem.com: /.bash_profile .
rsync jponds@UNH.w1mem.com: /.bashrc . Do an la on your home machine an take
a screen shot showing the listing with the two new files.
4547, 6647, CSCI, Login, Project, Remote, solved
[SOLVED] Csci 4547 / 6647 project 2: remote login
$25
File Name: Csci_4547___6647_project_2__remote_login.zip
File Size: 376.8 KB
Reviews
There are no reviews yet.