LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-04-2004, 12:37 AM   #1
Zeke55
LQ Newbie
 
Registered: Dec 2004
Distribution: Redhat 9
Posts: 5

Rep: Reputation: 0
Unhappy Can't create users!


I installed RedHat 9 on a new hard drive (NIC card is too old to work with Fedora) and did not create any users except root; got everything working, then tried to create users using adduser. None of them work - cannot even log in from the console. The "Users and Groups" system tool shows them all and they appear to be correct. I've tried deleting and recreating with the GUI tool, everything looks okay, I get no error messages, but the system recognizes no one except root.
When logged in as root, I can su to any other user I've created and it lets me do that without a password. But if I try to log in as another user, it doesn't recognize any of them. It seems like passwords just don't exist. From my tiny bit of experience with Solaris, I know with that system you can create a user and leave the password blank until the first login. Can you do that with RH? Any other suggestions?
Thanks!
Z
 
Old 12-04-2004, 12:59 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
You need to set the password for the new user with passwd. Also, make sure you're giving the new users a valid shell, e.g. /bin/bash. failing that, try creating the users through the CLI with useradd.
 
Old 12-04-2004, 11:31 AM   #3
Zeke55
LQ Newbie
 
Registered: Dec 2004
Distribution: Redhat 9
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the reply.
I logged in as root, su'd to another user, then tried passwd. It responded with "Authentication token manipulation error". After some looking on the web, I checked to see if /etc/security/opasswd exists. It does, that wasn't the problem. I tried creating users from the CLI and the GUI tool. Each time it seems to work okay - I get no error messages and the table of users viewable through the GUI gets populated, but none of the users can log in. Any suggestions of things to try would be greatly appreciated.
 
Old 12-04-2004, 01:29 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Check the /etc/passwd, /etc/shadow, and /etc/group files to make sure the new entries are being created successfully, and there isn't some malformed entry screwing things up. I've found that usually an "authentication token manipulation error" usually means that something is wrong in either /etc/passwd or /etc/shadow.
 
Old 12-04-2004, 09:11 PM   #5
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Is this the method you're using:
Code:
[scuzzy@slackdell /home/scuzzy]$ su -
Password:

Men who cherish for women the highest
respect are seldom popular with them.
                -- Joseph Addison

root@slackdell:~# adduser

Login name for new user []: username
User ID ('UID') [ defaults to next available ]: PRESS ENTER
Initial group [ users ]: PRESS ENTER
Additional groups (comma separated) []: PRESS ENTER
Home directory [ /home/username ] PRESS ENTER
Shell [ /bin/bash ] PRESS ENTER
Expiry date (YYYY-MM-DD) []: PRESS ENTER
New account will be created as follows:
---------------------------------------
Login name.......:  username
UID..............:  [ Next available ] 
Initial group....:  users 
Additional groups:  [ None ] 
Home directory...:  /home/username 
Shell............:  /bin/bash 
Expiry date......:  [ Never ] 
This is it... if you want to bail out, hit Control-C.  Otherwise, press
ENTER to go ahead and make the account.
 PRESS ENTER
Creating new account...
Changing the user information for username
Enter the new value, or press ENTER for the default
        Full Name []: PRESS ENTER
        Room Number []: PRESS ENTER
        Work Phone []: PRESS ENTER
        Home Phone []: PRESS ENTER
        Other []: PRESS ENTER
Changing password for username
Enter the new password (minimum of 5, maximum of 127 characters)
Please use a combination of upper and lower case letters and numbers.
New password: ENTER A PASSWORD
Re-enter new password: RE-ENTER PASSWORD
Password changed.

Account setup complete.
root@slackdell:~#

Last edited by scuzzman; 12-04-2004 at 09:13 PM.
 
Old 12-04-2004, 09:15 PM   #6
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 25, 26, RHL 5.2
Posts: 560

Rep: Reputation: 56
Have you tried setting the password while you are root? For example, userid is mickey, as root you would set the password by typing passwd mickey and follow the prompts.

Another option that will allow a user to login without a password the is to edit /etc/passwd. Remove the 'x' right after the userid like this:
Code:
mickey:x:525:100:Mickey Mouse:/home/mickey:/bin/bash
mickey::525:100:Mickey Mouse:/home/mickey:/bin/bash
The user can then set their password using the passwd command after they logon. For security reasons I don't have to tell you not to let accounts that can login without a password sit around.

Bill
 
Old 12-06-2004, 11:31 AM   #7
Zeke55
LQ Newbie
 
Registered: Dec 2004
Distribution: Redhat 9
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks all!

Thanks to all who replied. It's Monday morning here so I'm back at work and can spend some time on this. I tried setting the password to blank and then logging in. It told me there was a permissions error on the home directory. The way it's set up is /Users/individualuser. I set /Users to 777 and I could log in! I then tried to passwd to the password I had used initially, and it told me it did not have enough unique characters. So, I guess I had two problems. Anyway, that's working, so thanks again to all of you. I really appreciate your help!
 
Old 12-06-2004, 01:04 PM   #8
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 25, 26, RHL 5.2
Posts: 560

Rep: Reputation: 56
I would advise against setting the permissions to 777 on your /Users directory. This would give any user the ability to create other directories under /Users and in some circumstances delete other individual users directories. More secure permissions would be 755 with owner and group set to root. The permissions on an individual users directory is normally set to 700 with owner=username and group=defaultgroup. In my example, owner=mickey and group=users. A GID of 100 on most systems is the groupname users.

I'm sure you have your reasons, but why did you create a /Users directory? The standard on all Linux and Unix systems is to create user directories in /home.

Bill

Last edited by wmakowski; 12-06-2004 at 01:10 PM.
 
Old 12-06-2004, 11:28 PM   #9
Zeke55
LQ Newbie
 
Registered: Dec 2004
Distribution: Redhat 9
Posts: 5

Original Poster
Rep: Reputation: 0
Bill:
Thanks for your interest and advise. I'll change the /Users permission to 755. I made the /Users directory because it's on a separate (from the OS) hard drive and I want to export it via nfs. Now that users are working (thanks to your advice!) I also have nfs working. Maybe you can help with a couple of questions on nfs.
I followed an example I found and set up /etc/exports as:
/Users *.my.sub.domain(rw,sync,insecure,no_root_squash).
It works but that word "insecure" makes me uneasy. What's up with that?

Also, I've manually started nfs, to get it to automatically start on reboot, do I need to put a command in one of those rc.d/xxx directories?

Thank you!

Zeke
 
Old 12-08-2004, 01:23 PM   #10
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 25, 26, RHL 5.2
Posts: 560

Rep: Reputation: 56
The way you set up your mount for /Users will work, but it leaves another opening. The insecure option isn't that big a deal especially since you've limitted access to *.my.sub.domain. What that option does is allow requests for the mount to originate from a port higher than 1024. I could be wrong on this, but my understanding is that you would use the secure option in a situation where a couple of servers shared nfs mounts together and you didn't want anyone else messing with them.

The no_root_squash option is a much bigger deal. This allows a root user on a client machine to become a root user on the filesystem once it is mounted. Which is akin to a bartender saying drinks are on the house. Ideally you would want the user to access this filesystem using their own uid. This may take a bit of administration on your part because the uid's on the client machines need to sync up with the uid's on the server. root_squash is much better option because it will turn any client mounting as root into the anonymous user, usually nfsnobody.

On the last question you asked about setting up nfs as a daemon. You can do this with using the GUI or CLI (command line interface). If you're using Gnome go to Programs>System>Service Configuration. Once the application comes up locate nfs, check the box and save. Next time you boot nfs will be running. On the CLI if you wanted to setup nfs to start on runlevels 3 and 5 you would type.
Code:
chkconfig --level 35 nfs on
That's all there is to it. What both of these configuration tools do is manipulate symbolic links inside the runlevel directories rc.d/rc3.d or rc.d/rc5.d. These symbolic links point to scripts in /etc/init.d that start and stop services like nfs.

Bill
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
create new users in squirellmail bharath144 Linux - Software 1 11-26-2005 03:02 PM
Create users in Samba br_sriram Linux - Software 2 09-24-2004 11:49 AM
I cant create functional users! bcf2 Mandriva 4 08-31-2004 08:58 AM
create users using script polis Linux - General 1 05-18-2004 08:19 AM
How to use bash shell to create many users Linx2003 Programming 7 09-02-2003 01:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration