Beruflich Dokumente
Kultur Dokumente
Topic Covered in this unit:Creating, and Deleting Users Disabling User Accounts Creating and Deleting Groups Changing Group Memberships Managing Password Aging Policies
User and Group Administration:Example : How do you access the users and groups management utility System-Administration-User and Groups
# lab-grade-newusers
Topics covered in this unit: *Linux file system hierarchy Absolute path names File/directory management commands Relative path names
Practce Quiz:Linux File system Hierarchy 1. /etc contains most of the system configuration files. 2. / is the root directory. 3. User home directory are found below--/home but roots home directory Is /root. 4. The /var directory contains variable data like web sites and FTP sites. 5. Temporary files are stored in /tmp and /var/tmp. 6. Removable devices are normally mounted on /media. 7. Device files are kept in /dev 8. Files used during the boot process are stored in /boot.
Practce Quiz:Linux File system Hierarchy 1. ------------- contains most of the system configuration files. 2. --------------- is the root directory. 3. User home directory are found below----------- but roots home directory Is ------------. 4. The --------- directory contains variable data like web sites and FTP sites. 5. Temporary files are stored in ----------- and -----------------. 6. Removable devices are normally mounted on -----------------. 7. Device files are kept in ---------------. 8. Files used during the boot process are stored in ----------------.
Manage files with absolute path Names:An absolute path name always begins with a forward slash (/).identifying The complete file name starting from the root directory, through any intervening directories , to the name of the file .an absolute path name represents a unique name for a file on the file system. Path names can be used as arguments to any command that takes a file name argument.
Practice Performance Checklist Manage files with absolute path Names:Before you begin.. Ans[root@serverx] lab-setup-filmgmt [student@serverx] mkdir /home/student/bowe-labs [mark@serverx] mv /home/mark/mp3/mozart/call-me.mp3 /home/mark/mp3 /blondie [mark@serverx] mv /home/mark/mp3/mozart/roxanne.mp3 /home/mark/mp3/the-police [mark@serverx] rm /home/mark/mp3/playlist.txt
[root@serverx] lab-grade-filemgmt-1
Practice Performance Checklist Relative Path:Before you begin--Run lab-setup-server on desktopx Run lab-setup-filemgmt on serverx 1. log in as student on serverx. 2. Create a folder called bowe-labs in your home Directory
Ans:[root@desktopx]lab-setup-server [root@server]lab-seup-filemgmt [student@serverx] mkdir bowe-labs [student@serverx] cp ~bowe/chemistry/* bowe-labs [mark@serverx]cd mp3 [mark@serverx mp3]mv mozart/call-me.mp3 blondie [mark@serverx mp3] mv mozart/roxanne.mp3 the-police [mark@serverx mp3] cd [mark@serverx] rm mp3/playlist.txt [root@serverx] lab-grade-filemgmt-2 [student@serverx] mkdir marks-music [student@serverx] cp ~mark/mp3/*/*.mp3 marks-music
Criterion Test:Organizing Brads photo Collection :Before you begin... Run lab-setup-filemgmt on serverx ANS:[root@serverx] lab-setup-filemgmt [root@serverx]su brad [brad@serverx] rm camera/*bad* [brad@serverx] mv camera/jenny_* photos/family/ [brad@serverx] mv camera/new_york* photo/places [brad@serverx] mv camera/tokyo* photo/places [brad@serverx] mv camera/redhat* photo/work [brad@serverx] cd photos [brad@serverx] ln -s family jenny
Topics covered in this unit :User/Group/Other (UGO) Nautilus file security Command line file security
User/Group/Other (UGO)
User, Group, Other (UGO) Concepts
Permission:-
Practice Quiz Linux User, Group, Other Concepts:Answer the True/False questions based on the following user and file configure User and Their group : Lacy lucy,ricardo Ricky ricky,ricardo Ethe1 ethel,mertz Fred fred,mertz File attributes (permissions , user & group ownership, name): Drwxrwxr-x ricky ricardo dir (which contains the following files) -rw-rw-r--- lucy ricardo lfile1 -rw-r--rw- lucy ricardo lfile2 -rw-rw-r-- ricky ricardo rfile1 -rw-r----ricky ricardo rfile2
Questions regarding the lfile1 file . 1. lucy can change the contends of lfile1 A . True B . False 2. fred can change the contents of lfile1 A . True B. False 3. fred can delete lfile1. A. True B. False 4. ricky can change the contends of lfile1. A. True B. False 5. ricky can delete lfile1 A. True B. False
Criterion Test Securing the stooges Run lab-setup-stooges root from desktopx Your serverx machine has three accounts, curly, larry, and moe, who are members of a group called stooges . Create a directory called /home/stooges where these three users can work Collaboratively on files. Modify the permissions on this directory so only The user and group access,create, and delete files in that directory . Files Create in this create in this directory should automatically be assigned a group Ownership of stooges.
Criterion Test Securing the stooges ANS:[root@serverx] mkdir /home/stooges [root@serverx] chgrp stooges /home/stooges [root@serverx] chmod 2770 /home/stooges [root@serverx] ls -ld /home/stooges
Criterion Test Securing the stooges ANS:[root@serverx] mkdir /home/stooges [root@serverx] chgrp stooges /home/stooges [root@serverx] chmod 2770 /home/stooges [root@serverx] ls -ld /home/stooges
Topics covered in this unit: Remote shell access Remote file transfer Archives and compression SSH keys
Remote shell Access:The secure shell (ssh) is one of the most versatile System administration tools. It allows login and execution of commands on remote system . It uses strong encryption and host keys as a protection against network sniffing. It is the only network service which is enabled by default and is remotely accessible. The open SSH server configuration usually does not Require modification
Remote shell Access:1. ssh is more secure than telnet because all communication between host Is -----------------------------2. ssh -x user@host iniiates a remote connection to --------------as user 3. the first time an ssh connection is made to a system, the -------------------Of the remote system is stored locally so its identify can be verfied each Connection is started 4. the -------------------- command is used to finish an ssh session and return to the local shell.
Remote shell Access:1. the disk utility command is palimpsest ------------------ is the name of the Hard drive on serverx 2. ----------------------------- is the name of the OS release according to /etc/redhat -release 3 . run nautilus or use the command-line in the remote shell on serverx to perform the following . . create a file named a1.txt in /root . create a directory named b2 in /home/student which is owned by the student user and the student group
Remote shell Access:1. the disk utility command is palimpsest /dev/vda is the name of the Hard drive on serverx 2. Red Hat Enterprise Linux 6 is the name of the OS release according to /etc/redhat-release 3 . run nautilus or use the command-line in the remote shell on serverx to perform the following . . create a file named a1.txt in /root . create a directory named b2 in /home/student which is owned by the student user and the student group
Remote File Transfers rsync is a fast and extraordinarily versatile file copying tool. It can copy locally, to/from another host over any remote shell