Find the answer to your Linux question:
Results 1 to 2 of 2
* add a group of users from an input file * generate a report *provide help when users enter wrong or incomplete commands 1. the script can only be executed ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2011
    Posts
    1

    shell script need help asap


    * add a group of users from an input file
    * generate a report
    *provide help when users enter wrong or incomplete commands

    1. the script can only be executed bu root user, admin or user with admin rights
    2.if the root user starts the program as specified , it should read the input file and check the new users information one by one. If the new users information is valid, it should create the account for the user and write the account information to report file. The report should have the following format
    account_name:user_id:group_id:created_date:user_fu llname
    3if the new user informantion is not valid the account will not be created and an error report should be writtern to a error report file .
    4.if the root user executes the script incorrect for example with the invalid parameters is should provide appropriate help.eg show the current usage of command
    5.if root user executes the command with the -h switch the program should give detailed information about the program and the file structure
    6.input file structure should be Usernameassword:groupname:fullname

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,410
    Hi and welcome.

    Sorry. The forum rules say, that homework questions will not be answered
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •