Unix script, Operating System

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.

Posted Date: 2/22/2013 8:19:48 AM | Location : United States

Related Discussions:- Unix script, Assignment Help, Ask Question on Unix script, Get Answer, Expert's Help, Unix script Discussions

Write discussion on Unix script
Your posts are moderated
Related Questions
How can the deadlock be prevented-Safe State Safe state : A state is safe if the system is able to allocate resources to each process in some order and still avoid deadlock.

Essential Properties of Operating System 1. Batch: Jobs with similar needs are batched together and run through the computer as a group by an operator or automatic job sequen

It uses unix commands such as forks and pipe .I need solution to this project

i need to complete project on lan architceture RAIDs etc

Q. Explain the differences in terms of cost between the three storage types nonvolatile, volatile and stable. Answer: Volatile storage refers to main as well as cache memory an

Discuss the role of discovery and developmental prototypes in defining requirements for this project.Are throwaway prototypes appropriate, or should the project team quickly gather

The principle is that of ordinary addition; however remember the highest number is 1.   Calculate the following:                             11001 +                           11

Q. Explain the File-system manipulation? File-system manipulation there is several details in file allocation, creation, deletion and naming that users should not have to perfo

What is an I/O subsystem? The control of devices connected to the computer is a main issue while designing operating systems. Because I/O deices differ widely in their function

Explain the various methods for handling deadlocks.      A set of processes is deadlocked if every process in the set is waiting for an event that only a process in the