LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-16-2003, 10:45 AM   #1
skip1
Member
 
Registered: Feb 2003
Location: uk
Distribution: Mandrake 9.1 (Bamboo)
Posts: 50

Rep: Reputation: 15
Unhappy Logon Failures!


hi,

I'm trying tomake myself a new user account, but when I do I keep getting logon failures. This is what i do:

1)Open Mandrake Control Centre: System > Users

2)Add new user (name: jamie, no password, add all groups except root)
Save.

3) Reboot or logout.

4) Logon using new account 'jamie' without password. I then get the 'Logon failed message'.

I've been digging around in the message logs and found this:

Feb 16 14:40:28 localhost kde3(pam_unix)[1956]: authentication failure; logname= uid=0 euid=0 tty=:0 ruser= rhost= user=jamie


I'm guessing uid stands for user ID. Funny how its 0, when it says 501 in userdrake.

Any ideas?
 
Old 02-16-2003, 10:50 AM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
You will have to set a password.
 
Old 02-18-2003, 04:50 AM   #3
skip1
Member
 
Registered: Feb 2003
Location: uk
Distribution: Mandrake 9.1 (Bamboo)
Posts: 50

Original Poster
Rep: Reputation: 15
ok, I set a password and it worked ok. But why is doing stuff in this account so slow?

I have gnome and the icons do not load for a very long time (5 minutes after login), and also mandrake control centre takes ages to load (up to 10 minutes, i just get 'Loading. Please wait')
Sound does not work although esd is running.

I have none of these problems using root, just other accounts.

Its not a drivers problem. Do you know of any fixes?
 
Old 02-18-2003, 06:50 AM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
The first time you log in on an account, it will take some time to build all the stuff in the home directory.
 
Old 02-18-2003, 07:07 AM   #5
skip1
Member
 
Registered: Feb 2003
Location: uk
Distribution: Mandrake 9.1 (Bamboo)
Posts: 50

Original Poster
Rep: Reputation: 15
I understand that it takes time to build stuff on the first login, but
this happens every time I login to the account.

No icons, no sound, long delays. (The user is part of all groups)
 
Old 02-18-2003, 07:17 AM   #6
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Any hints in the logs?

/var/log/messages
/var/log/XFree86.0.log
 
Old 02-18-2003, 07:27 AM   #7
skip1
Member
 
Registered: Feb 2003
Location: uk
Distribution: Mandrake 9.1 (Bamboo)
Posts: 50

Original Poster
Rep: Reputation: 15
I'll take a look, i'll post anything i find tonight when i get back from work.
 
Old 02-19-2003, 02:37 PM   #8
skip1
Member
 
Registered: Feb 2003
Location: uk
Distribution: Mandrake 9.1 (Bamboo)
Posts: 50

Original Poster
Rep: Reputation: 15
ok here we go!!!

There are no errors in XFree86.0.log

Some suspect things in 'messages'

-----
Feb 19 19:31:13 localhost rc.sysinit: Enabling swap space: succeeded
Feb 19 19:31:14 localhost mandrake_everytime: Building Window Manager Sessions succeeded
Feb 19 19:31:15 localhost modprobe: modprobe: Can't locate module eth1
Feb 19 19:31:15 localhost modprobe: modprobe: Can't locate module eth2
Feb 19 19:31:15 localhost modprobe: modprobe: Can't locate module eth3
Feb 19 19:31:15 localhost modprobe: modprobe: Can't locate module eth4
Feb 19 19:31:15 localhost modprobe: modprobe: Can't locate module eth5
Feb 19 19:31:15 localhost modprobe: modprobe: Can't locate module eth6
Feb 19 19:31:15 localhost modprobe: modprobe: Can't locate module eth7
Feb 19 19:31:15 localhost modprobe: modprobe: Can't locate module eth8
Feb 19 19:31:15 localhost modprobe: modprobe: Can't locate module eth9
Feb 19 19:31:15 localhost init: Entering runlevel: 5
------
Feb 19 19:31:17 localhost alsa: succeeded
Feb 19 19:31:17 localhost modprobe: modprobe: Can't locate module snd-card-1
Feb 19 19:31:17 localhost modprobe: modprobe: Can't locate module snd-card-2
Feb 19 19:31:17 localhost modprobe: modprobe: Can't locate module snd-card-3
Feb 19 19:31:17 localhost modprobe: modprobe: Can't locate module snd-card-4
Feb 19 19:31:17 localhost modprobe: modprobe: Can't locate module snd-card-5
Feb 19 19:31:17 localhost modprobe: modprobe: Can't locate module snd-card-6
Feb 19 19:31:17 localhost modprobe: modprobe: Can't locate module snd-card-7
-------
Feb 19 19:31:16 localhost kernel: ENABLING IO-APIC IRQs
Feb 19 19:31:16 localhost kernel: Setting 2 in the phys_id_present_map
Feb 19 19:31:16 localhost kernel: ...changing IO-APIC physical APIC ID to 2 ... ok.
Feb 19 19:31:16 localhost kernel: ..TIMER: vector=0x31 pin1=2 pin2=0
Feb 19 19:31:16 localhost kernel: testing the IO APIC.......................
Feb 19 19:31:16 localhost kernel:
Feb 19 19:31:16 localhost kernel: WARNING: unexpected IO-APIC, please mail
Feb 19 19:31:16 localhost kernel: to linux-smp@vger.kernel.org
Feb 19 19:31:16 localhost kernel: .................................... done.
Feb 19 19:31:16 localhost kernel: Using local APIC timer interrupts.
Feb 19 19:31:16 localhost kernel: calibrating APIC timer ...
Feb 19 19:31:16 localhost kernel: ..... CPU clock speed is 1800.0942 MHz.
-------
Feb 17 20:51:12 localhost xfs: ignoring font path element /usr/X11R6/lib/X11/fonts/pcf_drakfont:unscaled (unreadable)
Feb 17 20:51:12 localhost kdm_config[1044]: Invalid option value 'All' at /usr/share/config/kdm/kdmrc:66
Feb 17 20:51:12 localhost apmd[985]: Charge: * * * (-1% unknown)
------

Last edited by skip1; 02-19-2003 at 02:45 PM.
 
Old 02-19-2003, 07:09 PM   #9
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
first of all, its probing a lot of stuff which clearly doesn't exist. check /etc/modules.conf and comment anything you don't need.

2nd, try to follow that kdm-config error. what does the file mentioned contain on line 66? (and maybe a line before and after it)

3rd, maybe next time it'd be less painful to create users from a console. ; )

4th, maybe you can remove the ~/.kde file/folder (check your home dir...im sure there's some kind of kde rc) and hope that it rebuilds itself next time you boot.

^maybe you can just copy the file/folder from your old user if it doesnt rebuild itself.
 
Old 02-20-2003, 01:32 PM   #10
skip1
Member
 
Registered: Feb 2003
Location: uk
Distribution: Mandrake 9.1 (Bamboo)
Posts: 50

Original Poster
Rep: Reputation: 15
Here are the lines from lines 65-67 in /usr/share/config/kdm/kdmrc

SessionTypes=GNOME,KDE,WindowMaker,IceWM,failsafe,default
ShowUsers=All
SortUsers=true

etc/modules.conf only contains the following, nothing else:

probeall usb-interface usb-uhci ehci-hcd
above snd-via8233 snd-pcm-oss
alias sound-slot-0 snd-via8233


How do I creat a new user from console? I'm pretty new to all this, sorry!
 
Old 02-20-2003, 03:09 PM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
man adduser

Or the hard way ;)

vi /etc/passwd

Cheers,
Tink
 
Old 02-20-2003, 06:31 PM   #12
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
yeah, just "adduser" in the console (i dont remember if adduser prompts for password: if not just "su user" run "passwd"), login as the new user and try to run kde. It will hopefully do its thing. ; )
 
Old 02-21-2003, 04:50 PM   #13
skip1
Member
 
Registered: Feb 2003
Location: uk
Distribution: Mandrake 9.1 (Bamboo)
Posts: 50

Original Poster
Rep: Reputation: 15
Unhappy

<sigh> I've added a new user from the console, but still i get the same problem. I have no idea whats wrong. I'm close to giving up now!!!
 
Old 02-21-2003, 05:12 PM   #14
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
I thought 'drake was supposed to be easy.

You could try a script I found on the internet. Copy this file and save it as newuser.sh
Code:
#!/bin/bash
#
# newuser.sh <username> [<group1> [[<group2>] ....<groupn>]]
# this script will choose /bin/bash as user's shell,
# will create primary user group with the same name,
# will create a home folder
# and will add this user to the list of additional groups:
# <group1> ....<groupn>
#
USERADD=/usr/sbin/useradd
GROUPADD=/usr/sbin/groupadd
SHELL=/bin/bash

user=${1}
group=${1}
shift
ag= #additional groups

for grp in ${@}; do
[ -z ${ag} ] && \
ag=${grp} || \
ag=${ag},${grp}
done

# create a primary group with name equal to username
${GROUPADD} ${group}
if [ ${?} -eq 0 ]; then
if [ ! -z ${ag} ]; then
${USERADD} -m -g ${group} -G ${ag} -s ${SHELL} ${user}
else
${USERADD} -m -g ${group} -s ${SHELL} ${user}
fi
fi
Now, open an x terminal and command
Code:
[phil@fancypiper phil]$ su -
Password: 
[root@fancypiper root]# chmod 755 /path/to/newuser.sh
[root@fancypiper root]#  /path/to/newuser.sh
Of course, if you are root, skip the su -.
Follow the prompts and see if that works.

Mandrake also has a utility called linuxconf you could try as well.

# Mandrake links
Mandrake home page
Mandrake Users website
Easy software management: Red Carpet
Maximum RPM
rpmfind

Last edited by fancypiper; 02-21-2003 at 05:15 PM.
 
Old 02-21-2003, 07:27 PM   #15
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
no one mentioned this before (i dont think):
did you also check ~/.xsession-errors for errors?
 
  


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
CD burning failures stevsom Linux - Software 1 07-26-2005 06:06 PM
slapt-get failures BroX Slackware 5 08-19-2004 03:19 AM
Installation Failures sumadartson2004 Linux - Newbie 1 03-29-2004 09:17 PM
Module Failures JerryHobby Linux - General 1 10-04-2002 12:28 PM
Detecting failures ph33r Linux - Networking 1 05-15-2002 03:36 AM


All times are GMT -5. The time now is 02:54 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration