Find Jobs
Hire Freelancers

Fix useradd linux bash script

$10-30 USD

In Progress
Posted over 5 years ago

$10-30 USD

Paid on delivery
#!/bin/bash if [ $(id -u) -eq 0 ]; then Sudo echo "Enter username: " Sudo useradd -d /home/user1 -s /usr/lib/sftp-server -M -N user1 [ $? -eq 0 ] && echo "User has been added to system!"|| echo "Failed to add a user!" Sudo mkdir -p /home/user1/public_html /home/user1/WebApp /home/user1/.ssh Sudo chown user1 /home/user1/public_html /home/user1/WebApp /home/user1/.ssh Sudo chmod 700 /home/user1/.ssh Sudo passwd user1 else echo "Only root may add a user to the system" exit 2 fi
Project ID: 17608104

About the project

1 proposal
Remote project
Active 6 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
Awarded to:
User Avatar
Using linux since 5 years . Have strong cs background and have good knowledge of bash scripting as well as fundamentals of linux.
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of SPAIN
b, Spain
5.0
1
Payment method verified
Member since Oct 25, 2014

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.