Unix script, Operating System

Assignment Help:

As a group, you may need to make some enhancements to your development server (NOT your stable server!)  It needs to be able to run the makepasswd program, which may require installing a package with aptitude.  Other modifications may be necessary as well, depending on your solution to this part of the assignment.  If you do any of the work in making sure that this stuff is working for your group, be sure to log it with plod (the logging happens on your stable server, even though the work is being done on your development server).

Automating account creation -- Write a script called "create_user" which will will create a user account that will work with a group of other accounts. The user ID, unencrypted password, and a group name must be provided on the command line.  Your script should:

1.Create the user account, with the primary group being named the same as the user (as usual). It should have a standard home directory.
2.Change the user's .profile so that it sets their umask to make all created files and directories readable by everyone and writable by group (as well as by owner).
3.Create a group from the group name, and add the user to it as a secondary group for that user
4.Create a directory in /home for the group, named with the group name.  Make it owned by the root user and the group.  Make it so that any file created in this directory will be owned by the group as well.
5.It should do all these things without any interactive input.  All input should be provided by the values on the command line when the script is run.


Related Discussions:- Unix script

Explain process termination - operating system, Process termination A p...

Process termination A process terminates when it finishes implementing its final statement and asks the operating system to delete it by using the exit system call. At that tim

Blocking locks, We have talked about blocking locks, which voluntarily yiel...

We have talked about blocking locks, which voluntarily yield, and spinlocks, which just spin until they acquire the lock. At ?rst, it seems like spinlocks are verywasteful, and tha

Explain beladys anomaly, Explain Belady's Anomaly? Also called FIFO ano...

Explain Belady's Anomaly? Also called FIFO anomaly. Usually, on enhancing the number of frames allocated to a process virtual memory, the process implementation is faster, beca

Management Information Systems, Select any business process within this fir...

Select any business process within this firm, describe it as a set of steps then fill the following table (flow, information, sender and receivern #Minimum 100 words accepted#

What is multiprogramming, Q. What is Multiprogramming? Multiprogrammin...

Q. What is Multiprogramming? Multiprogramming When two or more programs are in memory at the same instance, sharing the processor is referred to multiprogramming opera

Operational management, explain the link between operations management and ...

explain the link between operations management and strategic planning of daily goods shop

Multiprogramming, what are the main advantages of multiprogramming

what are the main advantages of multiprogramming

What is preallocation, What is preallocation? Why do it? Allocating spa...

What is preallocation? Why do it? Allocating space for a file before making the file to allow for expansion. This reserves space for a certain file so that other files can't gr

Explain the types of system calls, Explain the Types of System Calls Th...

Explain the Types of System Calls The major types of system calls are like this: a. Process Control: These types of system calls are employed to control the processes.

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd