LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   can only login as root ???? (https://www.linuxquestions.org/questions/mandriva-30/can-only-login-as-root-86519/)

avierstr 08-28-2003 04:20 AM

can only login as root ????
 
I've installed Mandrake 9.1, and made a custom kernel, installed specific soft as root, but now I want to login in KDE as user, but it does not work ??? I tried different users to log in, but none is working ????

nephilim 08-28-2003 04:52 AM

Silly question maybe, but... Did you create the users?

avierstr 08-28-2003 04:55 AM

yes, of course ;-)

users can login with ssh, but not in KDE ?

quatsch 08-28-2003 07:29 PM

can users login on a text console? If so, does startx work?

avierstr 08-29-2003 01:53 AM

do you mean 'failsave' ? : no
loggin in to IceWM seems to work

quatsch 08-29-2003 02:31 AM

I'm not sure I can help you but what exactly are the symptoms? You get to the graphical login manager, choose root and then you can login to KDE. You choose any other user, choose KDE and it gets back to the login manager. Are there any messages that you get?
If I understand you correctly, you can choose IceWM and then a user can login and start in icewm.
But if you boot into failsafe mode, no user can login? This would be very strange if you can really start icewm from the login manager.
When you are at the login manager (normal boot), press ctrl+alt+F1 and then try to log in. Can you do it?

avierstr 08-29-2003 06:10 AM

alt-ctrl-F1 and login as user works...

avierstr 08-29-2003 06:22 AM

alt-ctrl-F1 and login as user works, but this is what is gives at login, and a command like 'ls' is unknown...

-bash: dircolors: command not found
-bash: locale: command not found
-bash: grep: command not found
-bash: uname: command not found
-bash: uname: command not found
-bash: tty: command not found
-bash: id: command not found
-bash: [: -ge: unary operator expected
-bash: tty: command not found
-bash: id: command not found
-bash: id: command not found
-bash: id: command not found
-bash: [: too many arguments
[avierstr@molfyl1 avierstr]$ ls
-bash: ls: command not found

quatsch 08-29-2003 08:21 AM

hmm. strange.
when you log in as root, you don't get those messages, right?

when you log in as a normal user, can you try the command
echo $PATH
and see what the output is?
It should give you the list of directories where the system looks for program.

avierstr 08-29-2003 09:08 AM

very strange, seems that after alt-ctrl-F1, I can login as user, but not as root ????

echo $PATH gives this :

[avierstr@molfyl1 avierstr]$ echo $PATH
/usr/local/clustalw1.83:/usr/local/paup4b10:/home/avierstr/bin
[avierstr@molfyl1 avierstr]$


I'll think I'll get rid of Mandrake and install Suse...

quatsch 08-29-2003 09:27 AM

Ok. There's something wrong with your bashrc and bash_profile files. Before you get rid of mandrake, try the following.
Log in as normal user. Then do
export PATH=$PATH:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
After you do this, do
startx
this should start KDE.
If this works, then as a quick fix, I would add the line
export PATH=$PATH:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
to your .bashrc in the home directory of each user.

avierstr 09-08-2003 07:02 AM

Hi, I'm back from a week holydays...

Now I can login as user in KDE, but still the messages when I login after alt-ctrl-F1 :

avierstr@molfyl1's password:
/usr/X11R6/bin/xauth: creating new authority file /home/avierstr/.Xauthority
-bash: dircolors: command not found
-bash: locale: command not found
-bash: grep: command not found
-bash: uname: command not found
-bash: uname: command not found
-bash: tty: command not found
-bash: id: command not found
-bash: [: -ge: unary operator expected
-bash: tty: command not found
-bash: id: command not found
-bash: id: command not found
-bash: id: command not found
-bash: [: too many arguments
[avierstr@molfyl1 avierstr]$

Proud 09-08-2003 04:57 PM

What security level are you using? 'Paranoid' or a personally tweaked one?

avierstr 09-09-2003 02:37 AM

security level 'higher'...

kamstrup 09-09-2003 10:09 AM

Hmmm... are you using old user accounts on a fresh install? Maybe the users don't have read/execute permissions to the files they need to run to start kde. Such things can become messy...

greetings, kamstrup


All times are GMT -5. The time now is 01:59 AM.