Find Jobs
Hire Freelancers

Script to keep an eye on users shell activity.

$30-100 USD

Completed
Posted over 21 years ago

$30-100 USD

Paid on delivery
I need a script to grep /home/*/.bash_history and look for keywords or other users usernames. If it finds one of the keywords/usernames email me and make a copy of the .bash_history file. This is what I see the script doing. 1. get a list of users from /etc/passwd 2. search for /home/eachuser/.bash_history 3. When it finds .bash_history grep it for each keyword and the other usernames. Basically looking for the other usernames to make sure they are not messing with other users files. I would also like it to take different actions when it finds different keywords. [login to view URL] if it finds a keyword from this list it will: chsh /bin/false 2. If it finds a keyword from this list it will: /scripts/suspendacct 3. If found on this list it will just email. I would also like 3 to 5 more keyword lists that if the keyword is found it will run another script such as /scripts/something This will give me options for the future. I will also need a place to put a list of usernames 1. not to check at all 2. to check but not chsh or suspend. 3. chsh if any keywords/usernames are found if the keyword is in the suspend list just suspend the account. 4. suspend if any keywords/usernames are found 5. A list of users who's .bash_history needs to be checked but don't check other users .bash_history for their username. If their username is "ls" it would be found in every .bash_history file. It needs to be easy to configure. Everything at the top of the script or a separate config file. ## Deliverables Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased. ## Platform linux ## Deadline information 9/15/2002
Project ID: 2865243

About the project

20 proposals
Remote project
Active 22 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
See private message.
$34 USD in 14 days
5.0 (4 reviews)
4.0
4.0
20 freelancers are bidding on average $43 USD for this job
User Avatar
See private message.
$59.50 USD in 14 days
5.0 (620 reviews)
7.7
7.7
User Avatar
See private message.
$21.25 USD in 14 days
4.9 (211 reviews)
6.4
6.4
User Avatar
See private message.
$46.75 USD in 14 days
5.0 (59 reviews)
5.2
5.2
User Avatar
See private message.
$85 USD in 14 days
5.0 (11 reviews)
3.8
3.8
User Avatar
See private message.
$85 USD in 14 days
4.5 (9 reviews)
3.3
3.3
User Avatar
See private message.
$63.75 USD in 14 days
5.0 (12 reviews)
1.9
1.9
User Avatar
See private message.
$42.50 USD in 14 days
5.0 (2 reviews)
1.3
1.3
User Avatar
See private message.
$42.50 USD in 14 days
5.0 (2 reviews)
1.2
1.2
User Avatar
See private message.
$20.02 USD in 14 days
5.0 (2 reviews)
0.5
0.5
User Avatar
See private message.
$46.75 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$42.50 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$17 USD in 14 days
0.0 (1 review)
0.0
0.0
User Avatar
See private message.
$42.50 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$38.25 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$42.50 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$25.50 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$34 USD in 14 days
0.0 (1 review)
0.0
0.0
User Avatar
See private message.
$42.50 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$21.25 USD in 14 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Boone, United States
5.0
16
Payment method verified
Member since Mar 4, 2002

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.