Solved

RHEL User Management Script

Posted on 2014-03-18
4
279 Views
Last Modified: 2014-03-23
Does someone has a User Management script on RHEL, Which will create/delete, unlock, reset and set expiration date, a menu option is very much preferred. So can someone help.

If the user already exists, It should prompt that user also exist.
0
Comment
Question by:aanya247
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 13

Expert Comment

by:Daniel Helgenberger
ID: 39938253
I have none, and I would think not many have one because if you have many users to manage everyone will use a directory server of a kind (ldap, active directory, NIS...).

But of curse this is might not be helpful. If you provide a use case and the specs of your distro I think I or someone else can come up with something.
0
 
LVL 13

Expert Comment

by:Sandy
ID: 39938909
Agree with Daniel

TY/SA
0
 
LVL 29

Accepted Solution

by:
serialband earned 500 total points
ID: 39939616
If you're talking about just the basic linux tools.  Redhat has the documentation on their site.
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-Managing_Users_and_Groups.html

There's the Redhat User Manager GUI too, but I've never used that.
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s1-users-configui.html

I've only used the command line tools that are available on any standard linux/unix system.
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s1-users-tools.html


Otherwise, as things get more complex with more users, most admins would move on to a directory server as Daniel has mentioned.  It doesn't make sense to reinvent the wheel.
0
 
LVL 62

Expert Comment

by:gheist
ID: 39940882
useradd/usermod/userdel should fulfill your request (count the help text on wrong parameters as menu items if you like)
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question