WYNTK: UNIX System Admininistrator

Book description

If you use UNIX, you know that it can be a technically challenging environment. And if you're like most users, you have a job to do aside from exploring your operating system -- like analyzing that hot new stock, running another experiment, or typesetting another report. What happens when you have problems? What happens when the system slows to a crawl, when you can't get logged back in after a power failure, or when you've sent a file to the printer three times but have yet to find a printout? Your first choice for handling a problem might be to have the problem never occur. Your second choice might be to have someone else fix it, immediately. However, in the real world, sometimes you will have to investigate the problem and report it, and sometimes you will have to find an answer yourself. When You Can't Find Your UNIX System Administrator, part of our new What You Need to Know series, gives UNIX users tools for solving problems. It offers:

  • Practical solutions for problems you're likely to encounter in logging in, running programs, sharing files, managing space resources, printing, and so on

  • Just enough background on what's going on "behind the scenes" so that you can make sense of our suggestions, rather than simply memorizing keystrokes

  • An explanation of how to present problems to your sys admin so that you're more likely to get quick, accurate support

  • A list of the site-specific information to which you should have access, and a place to write it down

  • A quick-ref card summarizing what to try first, second, third for commonly encountered problems

  • The goal of this book is not to make you a guru in your own right. The goal of this book is to get you back to the job you'd rather be doing.

    Table of contents

    1. WYNTK: UNIX System Admininistrator
      1. What you need to know about this book
        1. This book is not for administrators.
        2. We do assume some things about the reader.
        3. This book has seven chapters, each ending in a quick-reference section.
        4. This series puts technology in context.
        5. This book is designed to be browsable.
        6. Contact us to suggest improvements, or for sales information.
        7. I’d like to thank some people...
      2. 1. What you need to know about solving problems
        1. There’s no magic involved.
        2. For user problems, administrators are more like detectives than like magicians.
        3. Administrators have many responsibilities; user support is only one of them.
        4. Educated users get better help.
        5. Put yourself in your administrator’s shoes.
        6. Gather the facts before you alert your administrator.
        7. Recreate the problem.
        8. Look at the error message.
        9. Try the most obvious answers .
        10. If it used to work, what changed?
        11. Try to identify (and eliminate) as many factors as you can.
        12. Tell the administrator what you tried.
        13. Quick Reference: contacting your administrator
      3. 2. What you need to know about logging in
        1. If you can’t log in, you can’t do anything else.
        2. Logging in is a series of steps; each must be successful.
        3. If the terminal doesn’t seem to be on, check the power supply.
        4. If the terminal is running, but there is no login prompt, check the cables and brightness control.
        5. If everything is plugged in and connected, reboot and try again.
        6. If you still can’t get the terminal to respond, let your system administrator know.
        7. The computer checks your login name and password.
        8. If your login isn’t accepted, it’s most likely a typing error. Try again.
        9. If you still can’t log in, try another terminal to rule out equipment problems.
        10. Passwords are stored in a database.
        11. Login accounts may be disabled by the system administrator.
        12. You can ask another user to check if your account was disabled in the password database.
        13. If you’ve forgotten your password, you’ll need to ask your system administrator for help.
        14. Quick Reference of login troubleshooting
      4. 3. What you need to know about running programs
        1. You run programs in UNIX by typing them on the command line.
        2. The error “Command not found” means that the command isn’t in your search path.
        3. Check if the command was misspelled.
        4. Most programs reside in bin directories.
        5. You can run a program using its full pathname.
        6. You can run a program without its full pathname because of your command “search path.”
        7. You can find the directory where a program is installed with the whereis or which command.
        8. Add directories to your search path.
        9. The command might run, but not work correctly.
        10. There may be more than one version of the same command on your system.
        11. When there are two versions of a program, the one executed is the one earliest in your search path.
        12. You can have “aliases” for commands.
        13. The which command tells you what version of a program you are using or whether you have an alias.
        14. If a program isn’t working properly, you could be running a different version of it.
        15. There might also be permission problems.
        16. The TERM environment variable tells programs what type of terminal you use.
        17. If TERM is not set, programs may not run.
        18. If TERM is set wrong, you may get gibberish.
        19. Use the man command to learn how to use a command.
        20. Try the apropos command(or man -k) to find the name of a command.
        21. Quick Reference of troubleshooting techniques
      5. 4. What you need to know about sharing files
        1. On a UNIX system, your files can be shared with other users.
        2. Security measures make sure that people aren’t reading or editing files that they shouldn’t be.
        3. Sometimes file security gets in the way of what you want to do.
        4. Each UNIX file has its own distinct set of permissions to define who can read, write, or execute the file.
        5. Each file is owned by a particular user.
        6. Each file is assigned to a particular “group” of users.
        7. Use ls -lg to find out to what group a file belongs.
        8. You can find out to what groups a user belongs.
        9. Each file has three separate sets of permissions: for the owner of the file, the group, and everyone else.
        10. If you don’t have read permission, you won’t be able to see the contents of the file.
        11. Just because you can read a file doesn’t mean that you can change it.
        12. Directory permissions refer to the ability to list the files or create new files.
        13. Use ls -l to learn the permissions on a file.
        14. Use ls -ld to see the permissions for a directory.
        15. If you need permissions changed, you can ask the owner of the file or the system administrator.
        16. The owner of a file can extend read and write permission to all users.
        17. The owner of a file can extend read and write permission to just the group.
        18. The owner of a file can change the group that the file belongs to.
        19. You can also remove permissions.
        20. You can change permissions for all files in a directory.
        21. You can “become” another user to gain their privileges.
        22. Only the administrator can legitimately change the ownership of a file.
        23. If you can read a file but can’t write it, you can copy the file and make your changes in the copy.
        24. If you have already made edits when you learn the file is read-only, you can still save your changes.
        25. Sometimes several users have to work on several sets of files at once.
        26. It’s dangerous if two people edit a file at the same time.
        27. There are systems for making sure that two people aren’t editing the same file.
        28. Quick Reference to file sharing
      6. 5. What you need to know about printing
        1. Printing is a multistep process for the computer.
        2. Print jobs are sent to the printer by a printer daemon.
        3. Printing works differently depending on whether you use System V or BSD UNIX.
        4. Files need to be translated into a format that printers recognize.
        5. On UNIX, most printers use the PostScript standard.
        6. A PostScript file has a unique header.
        7. The lpr or lp command prints PostScript files. Other commands are needed to translate and print other kinds of files.
        8. If a file doesn’t print, the problem might be the PostScript file.
        9. Although most of a PostScript file is incomprehensible, you can sometimes read page counts.
        10. You can control what printer a file goes to, cancel print jobs, or monitor the print queue.
        11. You can use the lpc status or lpstat -t command to identify printers.
        12. On BSD-derived UNIX, printers are defined in /etc/printcap.
        13. Each user is assigned a default printer.
        14. Change the printer you use on the command line or with the PRINTER environment variable.
        15. Check the printer queue to see the status of your print job.
        16. If the printer queue isn’t moving, a large file could be processing.
        17. You can cancel your print job with the lprm or cancel command.
        18. Rebooting will fix a “hung” printer.
        19. Fonts can look wrong if the fonts requested aren’t loaded on a printer.
        20. Quick Reference to printing
      7. 6. What you need to know about space and time
        1. You share space and time with other users.
        2. Even if your system resources are adequate today, they may not be tomorrow.
        3. Files are stored on disks.
        4. On UNIX, disks are mounted as directories, or filesystems.
        5. Disk space is shared on UNIX systems.
        6. Some filesystems are mounted from remote machines.
        7. You can look at disk names and the space available on each disk.
        8. You can look at how much disk space your files take up.
        9. You can look at the size of your directories and subdirectories.
        10. Commands may create temporary files that also take up disk space.
        11. Clean up your directories occasionally (or when you get a warning).
        12. Don’t forget to check saved mail messages.
        13. Always remove a “core” file.
        14. Look for temporary files that weren’t removed after they were created.
        15. Remove files that you can easily recreate as needed.
        16. If you save files, you can compress them to take up less room.
        17. When you get a message that a disk is full, first find out which filesystem is affected.
        18. You may be able to retrieve deleted files from backups.
        19. UNIX systems multitask by working on each process a little at a time.
        20. When the system gets slow, take an inventory of what you’re doing.
        21. You can use the ps command to see what processes you’re running.
        22. On a UNIX machine, you can run many programs simultaneously.
        23. X users commonly have many programs running at once.
        24. Some programs are more resource intensive than others.
        25. Commands with dynamic displays eat up more time than “snapshot” displays.
        26. X programs are much more resource intensive than character-based programs.
        27. Some single commands actually spawn multiple processes.
        28. Look for unwanted processes.
        29. You can stop processes with the kill command.
        30. Job control makes killing programs a little easier.
        31. Be aware of your resources.
        32. Quick Reference to space and time questions
      8. 7. What you need to know about everyone else
        1. UNIX is a multiuser system; you can find out what other users are doing.
        2. You can find out who is logged in.
        3. Use who with the more or grep command to find out if a particular user is logged in.
        4. You can find out what other users are doing with ps.
        5. Use grep with ps to see what a single person is doing.
        6. The finger command shows you how long terminals have been idle.
        7. Finger shows when other users last read their email.
        8. You can use the finger command to find out what people are doing on other systems.
        9. You can use finger to find out someone’s login name.
        10. Don’t believe finger when it tells you when someone last logged in.
        11. Some users have a .plan file to tell others what they’re up to.
        12. You can find out who is on a mail alias.
        13. Quick Reference to finding out about other people
      9. Index
      10. Colophon

    Product information

    • Title: WYNTK: UNIX System Admininistrator
    • Author(s): Linda Mui
    • Release date: April 1995
    • Publisher(s): O'Reilly Media, Inc.
    • ISBN: 9781565921047