Assignment:
In your report / assignment submission and for each exercise below and whenever applicable explain what you did to accomplish the task. Make sure that you list and discuss all steps made, commands used together with their options, and problems encountered
zypper
command to see what online repositories are configured at the moment. # | Alias | Name | Enabled | GPG Check | Refresh | Priority | Type | URI | Service --+-----------------------------+------------------------------------+---------+-----------+---------+----------+------+--------------------------------------------------------------------------------------+-------- 1| openSUSE-Leap-15.4-1 | openSUSE-Leap-15.4-1 | Yes | (r ) Yes | No | 99 |rpm-md| cd:/?devices=/dev/disk/by-id/ata-VMware_Virtual_IDE_CDROM_Drive_10000000000000000001 | 2| repo-backports-debug-update | Update repository with updates ... | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/update/leap/15.4/backports_debug/ | 3| repo-backports-update | Update repository of openSUSE B... | Yes | ( p) Yes | Yes | 99 | NONE | http://download.opensuse.org/update/leap/15.4/backports/ | 4| repo-debug | Debug Repository | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/distribution/leap/15.4/repo/oss/ | 5| repo-debug-non-oss | Debug Repository (Non-OSS) | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/distribution/leap/15.4/repo/non-oss/ | 6| repo-debug-update | Update Repository (Debug) | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/update/leap/15.4/oss/ | 7| repo-debug-update-non-oss | Update Repository (Debug, Non-OSS) | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/update/leap/15.4/non-oss/ | 8| repo-non-oss | Non-OSS Repository | Yes | ( p) Yes | Yes | 99 | NONE | http://download.opensuse.org/distribution/leap/15.4/repo/non-oss/ | 9| repo-oss | Main Repository | Yes | ( p) Yes | Yes | 99 | NONE | http://download.opensuse.org/distribution/leap/15.4/repo/oss/ | 10| repo-sle-debug-update | Update repository with debuginf... | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/update/leap/15.4/sle/ | 11| repo-sle-update | Update repository with updates ... | Yes | ( p) Yes | Yes | 99 | NONE | http://download.opensuse.org/update/leap/15.4/sle/ | 12| repo-source | Source Repository | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/source/distribution/leap/15.4/repo/oss/ | 13| repo-update | Main Update Repository | Yes | ( p) Yes | Yes | 99 | NONE | http://download.opensuse.org/update/leap/15.4/oss/ | 14| repo-update-non-oss | Update Repository (Non-Oss) | Yes | ( p) Yes | Yes | 99 | NONE | http://download.opensuse.org/update/leap/15.4/non-oss/ |What command options did you use to see them all and listed with the URI included?
man perldata
and man perlfunc
.jim
and joe
adjust tunable filesystem parameters on ext2/ext3/ext4 filesystems.
These two users (and only them) can run command /sbin/tune2fs
through sudo
on your own machine and also on the machine named lbc
The same sudoers
file
copied onto another machine (other then lbc
) will not allow jim and joe to run needed command with elevated privileges.bob
, bill
, and barbara
to kill jobs on all 192.168.8.x/24 hosts and reboot them.
Create all users needed for the assignment on your cs480 virtual machine using yast.
BUT do not to use yast for sudo configuration!
Instead, use the visudo command to modify the sudoers file.
Assume that none of the users mentioned above knows root's password.
Make sure that sudo works for your users on your VM as expected
without them knowing root's password
Check the sudoers file carefully for instructions on how to disable the default
(unconfigured) behavior when sudo asks for target user's password (root's password).
Test it all!
For example, log into the system as user barbara and test that she can kill any process.
Remember that Barbara does not know root's password. She needs to authenticate to sudo using HER OWN password!
Note: I uploaded Perl related chapter from the previous edition of our textbook to canvas. I believe that the chapter explains the language sufficiently for anything that we will need in our class.
Execute the script on your cs480 virtual host and submit a transcript of the session showing the correct execution of your program. Example of the desired output:
ivan@ivan:~/cs480> ./2.4.pl root id=0 groups: root messagebus id=499 groups: messagebus systemd-network id=497 groups: systemd-network ... sshd id=488 groups: sshd ivan id=1000 groups: users
NOTE: Your solutions to all of the exercises above must be implemented, tested, and needs to execute correctly on your cs480 virtual machine. Among your attachments (as part of the tar.bz2 file) submit also transcript file showing the correct execution of the script on your cs480 virtual machine. As shown in the example below, you can use the script command to record the session and submit the resulting files (2.4_trascript.txt for the execution of the perl script) with your homework assignment as part of your bz2 file submitted into your directory under /home/CS480.
Example:
ivan:~/cs480 # ls -al total 4 drwxr-xr-x 1 root root 12 Aug 26 11:36 . drwx------ 1 root root 94 Aug 26 11:36 .. -rwx------ 1 root root 777 Aug 26 11:29 2.4.pl ivan:~/cs480 # script 2.4_trascript.txt Script started, output log file is '2.4_trascript.txt'. ivan:~/cs480 # ./2.4.pl root id=0 groups: root messagebus id=499 groups: messagebus systemd-network id=497 groups: systemd-network ... sshd id=488 groups: sshd ivan id=1000 groups: users ivan:~/cs480 # exit exit Script done. ivan:~/cs480 # ls -al total 8 drwxr-xr-x 1 root root 46 Aug 26 11:37 . drwx------ 1 root root 94 Aug 26 11:36 .. -rwx------ 1 root root 777 Aug 26 11:29 2.4.pl -rw-r--r-- 1 root root 838 Aug 26 11:37 2.4_trascript.txt
Submitted files, overall quality, length, and feedback:
Please remember the submission requirements:
If you want to correct or add something to already submitted assignment than you need to do so before the deadline and resubmit the whole report again and also resubmit your new tar.bz2 file .
Please remember that late submissions are penalized 20% / day and NO submissions that are late 3 or more days will be accepted. You can be late at most 2 days to receive any points.