Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I try: adduser, but it says that the user already exists.
When you catpasswd, the user I am trying to add is not there.
I have tried userdel, but it comes up with a shadow error...and when you go to add him again, it still says that he exists.
The user did try logging on before he had an account added and he got a message saying "creating directories"...but then it said that "you have been locked out by administrator"
Do you know what I can do to add the user...and also stop this from happening again?
The server is authenticating via kerberos...LDAP. to an AD domain (with Windows DCs). The user wasn't locked out of AD...and other active directory users have been able to login to the RHEL server fine.
The fix:
I have managed to get the user to login. I tried creating the account via the "add user" tab on the GUI and was able to successfully create the account along with a home directory (even though the "useradd" command still wouldn't let me).
I then went into /etc/password and etc/shadow and manually changed the user details to match those of other users whom I wanted the account to match.
The only thing with this though, is when I created the account and new home directory, it asked to set a password. I set the password, but when the user logged in, he was able to do it via AD (which is what I want), but not via the new password I had set.
The above is what I wanted, but any ideas why this is the case (why I had to create the new password which wasn't needed anyway?)
Also, Is there anything I need to be wary of due to adding the account this round-about way?
If anyone could shed some light as to why the original issue would have occured in the first place, and how to prevent it from happening again i'd be truly grateful!
LDAP is doing your authenticating, so the user already exists in the LDAP DB. That's why I asked.
The acct should only be defined in one place. The user probably used the passwd in the LDAP db.
You need to read up on krb & LDAP, if you don't already have it down pretty good. (Apologies if you do)
I used this to start learning LDAP http://www.linuxhomenetworking.com/w...DAP_and_RADIUS
LDAP is doing your authenticating, so the user already exists in the LDAP DB. That's why I asked.
The acct should only be defined in one place. The user probably used the passwd in the LDAP db.
You need to read up on krb & LDAP, if you don't already have it down pretty good. (Apologies if you do)
I used this to start learning LDAP http://www.linuxhomenetworking.com/w...DAP_and_RADIUS
Thank you Chris.
Link appreciated. I could do with a more thorough read
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.