?
Solved

RHEL User Management Script

Posted on 2014-03-18
4
Medium Priority
?
285 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 30

Accepted Solution

by:
serialband earned 2000 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

How to Create Failover DNS Record Sets in Route 53

Route 53 has the ability to easily configure DNS record sets specifically for failover scenarios. These failover record sets can be configured to failover to full-blown deployments in other regions or to a static HTML page that informs your customers of the issue.

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
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.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

719 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