Have a lab final coming up and im rusty on implementing the commands
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Have a lab final coming up and im rusty on implementing the commands
It is using fedora...this is what I have to do and yes to experienced users im sure its very easy...but to me I really havent a clue. I know alot of commands but we dont get much lab time. IF anyone is willing to help me complete this I will paypal that person $40 in appreciation for the help....thanks!
Used linux fedora
Add the following users through CLI:
Login User ID Group ID GroupName
Msteele 3001 5000 finance
Jbiggins 3002 5000 finance
Jsawyer 3003 6000 sales
Wanderson 3004 6000 sales
1. Create 2 directories:
/home/finance
/home/sales
2. Modify the permissions of the /home/finance so that the owner is msteele and the group is finance
3. Modify the permissions of the /home/sales so that the owner is jsawyer and the group is sales
4. Modify the permissions as follows:
/home/finance owner = read/write/execute, group = read and execute, others = none
/home/sales owner = read/write/execute, group = read and execute, others = none
6. Become the jbiggins user
7. Create two empty files under his default home directory called: file1.txt and file2.txt
8. Show your instructor
• The configuration file related to the user’s account (login, default home dir, default shell, etc.)
• The configuration file related to Linux group.
• Permissions for /home/finance and /home/sales
• The contents of the default directory for jbiggins
1. Using the appropriate Linux command and options, delete the user jbiggins, his home directory and its contents.
2. Show your Instructor
3. Become the msteele user
4. Permanently change the user’s prompt through his hidden profile file. The prompt should now be:
username@current_date>
5. Make a directory called /home/finance/scripts
6. Create a BASH shell to print out the current directory followed by the current date and time. The script is called /home/finance/scripts/dir.sh
7. Change msteele’s environment so that /home/finance/scripts is in your path every time you login as msteele
8. Show your instructor:
• The new prompt
• Execute dir.sh
1. Become the jsawyer user
2. Modify jsawyer’s profile so that the following commands are equivalent:
• Showlocation = type
• Showfiletype = file
1. Show your instructor
2. Activate ftp
3. Modify the local configuration file so that your ip address equates to the host name:
Yourlogin.itt.com (192.168.20.6) Jordan.itt.com
1. Copy /home/finance/scripts/dir.sh into the public anonymous ftp directory
2. As the jsawyer user, create a directory called /home/sales/scripts.
3. As root create a tar archive of /home/msteele directory called msteele.tar
4. Copy the msteele.tar file into the public anonymous ftp directory
5. Connect to your own ftp server through anonymous ftp
• Change the ftp client directory to /home/sales/scripts
• Activate # markings
• Download the Dir.sh script and the msteele.tar archive into /home/sales/scripts from the anonymous ftp public directory
1. Copy /etc/passwd into /home/jsawyer
2. Use vi to modify /home/jsawyer/passwd
3. Show your instructor
• Delete 2 lines
• Go to the end of the file (first character of the last line)
• Go to the end of the line
• Go to the beginning of the line
• Copy and paste a line
1. As the user msteele, create a cron job to execute /home/finance/scripts/dir.sh after 2 minutes. Make sure to redirect the output of dir.sh into /home/msteele/dir.log
2. Show your instructor
If I were your instructor reading this, you would not be on my "good" list.
What is the class and why are you there?
Are you in school to learn---or to simply get a diploma?
After you get your diploma, will you be paying people to do your work assignments?
Read the rules you agreed to when you signed up!
You have broken a few of them, and your thread will be closed.
And I for one have no respect for someone who isn't willing
to do their work. http://www.catb.org/~esr/faqs/smart-questions.html
Closed. It's just a flame war, not worth to continue.
To the orginal poster: the tasks use basic Unix/Linux commands: mkdir, touch, chown, chmod and so on. Every Unix/Linux beginner book will cover them all. Also, the combination of apropos and man commands should give you enough (often too much) details.
Edit (to other posters from this thread): if you think that a post breaks LQ rules just report it and move along. There's no reason to get into arguments.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.