LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Logon Failures! (https://www.linuxquestions.org/questions/linux-software-2/logon-failures-45636/)

skip1 02-16-2003 09:45 AM

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?

fancypiper 02-16-2003 09:50 AM

You will have to set a password.

skip1 02-18-2003 03:50 AM

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?

fancypiper 02-18-2003 05:50 AM

The first time you log in on an account, it will take some time to build all the stuff in the home directory.

skip1 02-18-2003 06:07 AM

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)

fancypiper 02-18-2003 06:17 AM

Any hints in the logs?

/var/log/messages
/var/log/XFree86.0.log

skip1 02-18-2003 06:27 AM

I'll take a look, i'll post anything i find tonight when i get back from work.

skip1 02-19-2003 01:37 PM

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)
------

cuckoopint 02-19-2003 06:09 PM

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.

skip1 02-20-2003 12:32 PM

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! :newbie:

Tinkster 02-20-2003 02:09 PM

man adduser

Or the hard way ;)

vi /etc/passwd

Cheers,
Tink

cuckoopint 02-20-2003 05:31 PM

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. ; )

skip1 02-21-2003 03:50 PM

<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!!!:cry:

fancypiper 02-21-2003 04:12 PM

I thought 'drake was supposed to be easy. :confused:

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

cuckoopint 02-21-2003 06:27 PM

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


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