RHEL4 cannot add new user and cannot modify them too
Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
RHEL4 cannot add new user and cannot modify them too
Hi all, I'm using RHEL4 as server and i'm login as root on it, so my problem is that since 1 week, adding new user is imposible and it's the same history when i'm trying to modify the users that i've created before.I don't have any idea of what's happened! there's no error message when i'm doing these operations! need your help pls.
Could explain more on the method you using to create the new user. Is it the GUI tool or the command line ?. I would also suggest you to check the imunity if the password and shadow files. You explanation of the issue does not provide actual details of the issue you facing ..better if you elaborate more.
thanx for ur reply, first i'm using GUI tool when i tryed to create the user (user management tool), but i've also tryed to use command line and it said to me :"unable to open password file". Things i'm sure is that there's another process using this file!! , then i tryed to shutdown my computer normally so that all process will be stoped well and truly but it couldn't, so i checked in etc/X11/gdm/gdm.conf to make sure that the command line which calls the shutdown process is not in comment(it was in comment and i reactivate it),then i check inside /sbin and usr/sbin, surprise! there's no shutdown , reboot, restart, poweroff command file anymore, disappeared!
So in another way, i can't add an user, i can't modify them, and i can't shutdown or restart my computer normally.
I think that this explanation could satisfy you mether, but if need more pls feel free to ask me cos i need your help!
It seems the system is bad shape. I would really suggest you to check it for any intrusion. Regarding adding a user you can try the manual method . I know its tedious but current situation need it. I would like to see the output of below commands :
#lsattr /etc/passwd
#ls -l /etc/passwd
#ls -l /usr/sbin/adduser /usr/sbin/useradd
Also do you have SeLinux enabled on this system. For adding a use manually you need to first modify the passwd file, then shadow, /etc/group. Then create a home dir under /home and change its Owner/Group to username. Copy files from /etc/skel ( all are .?? files ).
I think that my server was burned by a hacker or sthing like that...i've already ran avast on it but nothing! thanx for the tips of the manual user creation but i think it's not the best solution for me, it's better to proceed with a new install cos time is money! anyway u can post ur help or other tips this is very helpfull for me.
to know whether Selinux is enabled or not run the getenforce command.
If it says that Enforcing, then edit the /etc/sysconfig/selinux file and disable it.
edit the /etc/sysconfig/selinux file and disable it.
If you think SELinux is causing problems then act on the cause instead of the symptoms. Look for SELinux warnings in syslog and audit.log, run them through audit2allow, review and set up your local policy. If unsure if it's SELinux post warning messages you think are related (between BB code tags) here.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.