Find Jobs
Hire Freelancers

Unix Script

$30-5000 USD

Closed
Posted about 20 years ago

$30-5000 USD

Paid on delivery
Add two new menu options to the previous script. The two new options will be: CM ??" create a user with your own script CS ??" create a user with useradd ## Deliverables **Option CM:**valid for 45 days (hint : look at the /etc/[login to view URL] file) Create a script that would automate adding users. The script SHOULD NOT use the functionality useradd that comes with the system, to create users. Each user should write their own script. Creating the password should also be incorporated in the script. That means, when you call the script to create a user, you also give it the password value, and then, your script will create the user and also create the password without prompting you for anything. (hands-free) This script will read all the information from a file similar to **studentInfo**. The script will prompt the user for the filename, and the information will be read from the file. Your will create the password by using a combination of the username and the uid. Example: Password for Joe Bennet would be joeb1001 Assume the name of your script is *create_users*. The command should take the arguments: ./create_users *username uid gid initial_password user_information home_directory default_shell* Make sure that group names are assigned to any new group ids (gid) that you find in the information file. ( if you find a gid 601, which is not defined as a group, on your system, you would have to define that group first, before you create a user belonging to that group) A .profile file and a .login file should automatically be copied into the home directory, every time a user is created. The system will incorporate the shadow password file. The password should automatically have the default values for the following: passwd length should be at least 6 characters The password should be valid for 45 days (hint : look at the /etc/[login to view URL] file) **Option CS:** This time, user the **useradd** script to create users. The script will prompt the user for the filename, and the information will be read from the file. Your will create the password by using a combination of the username and the uid, just like before. Make sure that group names are assigned to any new group ids (gid) that you find in the information file. A .profile file and a .login file should automatically be copied into the home directory, every time a user is created. The system will incorporate the shadow password file. The password should automatically have the default values for the following: passwd length should be at least 6 characters The password should be 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables): a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform Must be using bourne shell.
Project ID: 3139323

About the project

1 proposal
Remote project
Active 20 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
1 freelancer is bidding on average $34 USD for this job
User Avatar
See private message.
$34 USD in 4 days
5.0 (31 reviews)
4.4
4.4

About the client

Flag of UNITED STATES
United States
5.0
8
Member since Nov 10, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.