LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-13-2005, 04:44 PM   #1
electronique
Member
 
Registered: Mar 2004
Location: Menomonie, WI
Distribution: SuSE 9.2, Slackware Current, Arch Linux 0.7
Posts: 119

Rep: Reputation: 15
Odd login-crash for Normal User


I recently experienced something rather odd when logged into my Slackware Current system, I had just used slapt-get to upgrade slapt-get (I don't think this is causing the issue because only slapt-get was upgraded) but when I tried to run firefox it gave me some weird error along the lines of: item /applications/firefox-1.0/firefox is corrupt. Also when I clicked on the K menu in KDE it gave a weird error about XML. I can't post the exact errors because I rebooted to try and see if that would fix the issue, but nothing happened... I can't login: this is the error I get

Code:
Welcome to Linux 2.6.9 (tty1)

SlackTop login: user
Password: *********
Last login: Sun Feb 13 22:40:56 +0000 2005 on :0.
No mail.
-bash: /etc/profile: Permission denied
-bash-3.00$
any ideas what might be causing this?

Last edited by electronique; 02-15-2005 at 08:49 PM.
 
Old 02-13-2005, 04:51 PM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,437

Rep: Reputation: 93
From your "screenshot" I can see you are logged but for some reason bash don't want to
source /etc/profile, weird...

could you post
ls -l /etc/profile
 
Old 02-13-2005, 05:01 PM   #3
electronique
Member
 
Registered: Mar 2004
Location: Menomonie, WI
Distribution: SuSE 9.2, Slackware Current, Arch Linux 0.7
Posts: 119

Original Poster
Rep: Reputation: 15
logging in as root works fine and startx (kde) work great as root. (that's what I am logged in as right now) ls -l /etc/profile as root lists:

Code:
root@SlackTop:~# ls -l /etc/profile
-rw-r--r--  1 root root 2410 2004-05-20 18:52 /etc/profile
did you want as a normal user?
 
Old 02-13-2005, 05:05 PM   #4
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,437

Rep: Reputation: 93
No it's good.
So when you say "I can't loggin" you mean "I can't login into X server as regular user", right ?

Does the problem appears with other window managers, eg before startx, do :
xwmconfig, choose a wm, then startx
 
Old 02-13-2005, 05:07 PM   #5
electronique
Member
 
Registered: Mar 2004
Location: Menomonie, WI
Distribution: SuSE 9.2, Slackware Current, Arch Linux 0.7
Posts: 119

Original Poster
Rep: Reputation: 15
no I can't login as that user at all, I normally stat ar runlevel:4 with graphical login, if I try and login there nothing happens, the login screen just reappears. when I use runlevel 3 to login I get the error above.
 
Old 02-13-2005, 05:10 PM   #6
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,437

Rep: Reputation: 93
I would login as root, then check if all is correct in /etc/passwd for the user, then I would
check the permissions for his home directory in /home (with ls -l) and eventually :
chmod -R user:users /home/user
(of course where user is the username, users is the user default group)

Last edited by keefaz; 02-13-2005 at 05:11 PM.
 
Old 02-13-2005, 05:51 PM   #7
electronique
Member
 
Registered: Mar 2004
Location: Menomonie, WI
Distribution: SuSE 9.2, Slackware Current, Arch Linux 0.7
Posts: 119

Original Poster
Rep: Reputation: 15
still no ideas, deleted user account, re-added... nothing, everythig seems right in /etc/profile
 
Old 02-13-2005, 05:57 PM   #8
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,437

Rep: Reputation: 93
And his home directory in /home ? Do you use useradd or adduser to add an user ?
 
Old 02-13-2005, 06:00 PM   #9
electronique
Member
 
Registered: Mar 2004
Location: Menomonie, WI
Distribution: SuSE 9.2, Slackware Current, Arch Linux 0.7
Posts: 119

Original Poster
Rep: Reputation: 15
user add. deleted /home/user directory. also added new account and smae thing happens, only functioning account is root I'm guessing a problem with bash

edit: tried using zsh shell as well, nothing happened.

Last edited by electronique; 02-13-2005 at 06:05 PM.
 
Old 02-14-2005, 05:31 PM   #10
electronique
Member
 
Registered: Mar 2004
Location: Menomonie, WI
Distribution: SuSE 9.2, Slackware Current, Arch Linux 0.7
Posts: 119

Original Poster
Rep: Reputation: 15
still no other ideas? I might migrate my laptop to Arch Linux to try it out, or use the Slack 10.1 cd's to redo my install after backing up my data and all that fun stuff. I don't really want to have to do that... but oh well.
 
Old 02-14-2005, 05:42 PM   #11
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,437

Rep: Reputation: 93
Just an idea, what happen when you create an user, then telinit 3, then login as this user, then type this command : startx
 
Old 02-15-2005, 12:01 AM   #12
electronique
Member
 
Registered: Mar 2004
Location: Menomonie, WI
Distribution: SuSE 9.2, Slackware Current, Arch Linux 0.7
Posts: 119

Original Poster
Rep: Reputation: 15
Code:
Welcome to linux 2.6.9 (tty1)

SlackTop login: tux
password:
Last login: Sun Feb 13 23:59:51 +0000 2005 on :0.
No mail.
 -bash: /etc/profile: Permission denied
 -bash:-3.00$ startx
 -bash: startx: command not found
 -bash-3.00$
same thing

or if I add a new user:

Code:
Welcome to linux 2.6.9 (tty1)

SlackTop login: root
password:
Linux 2.6.9.
Last login: Sun Feb 14 23:49:59 -0600 2005 on :0.
You have new mail.
root@SlackTop:~# useradd slacker
root@SlackTop:~# passwd slacker
Changing password for slacker
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:
Re-enter new password:
Password changed.
root@SlackTop:~# exit
logout


Welcome to linux 2.6.9 (tty1)

SlackTop login: slacker
Password:
No directory, logging in with HOME=/
No mail.
 -sh: /etc/profile: Permission denied
 -sh-3.00$
I'm a little baffled, never seen this before. any help would be appreciated.

Last edited by electronique; 02-15-2005 at 12:04 AM.
 
Old 02-15-2005, 04:38 AM   #13
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,437

Rep: Reputation: 93
Try create a user with useradd, not adduser (it will create the home directory)

Then when you have :
bash-3.00$

try:
source /etc/profile

then:
startx
 
Old 02-15-2005, 03:11 PM   #14
electronique
Member
 
Registered: Mar 2004
Location: Menomonie, WI
Distribution: SuSE 9.2, Slackware Current, Arch Linux 0.7
Posts: 119

Original Poster
Rep: Reputation: 15
if you note the txt above, I did use 'useradd'
 
  


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
Normal user can't login via CDE? zeki709 Solaris / OpenSolaris 2 03-31-2012 04:29 PM
error login as normal user mandrakelinux Slackware 8 11-17-2005 09:02 AM
Cannot Login With Normal User On Fedora offers2you Fedora - Installation 1 04-20-2005 11:53 PM
Can't login in X as a normal user but root laxteryx Linux - General 2 11-09-2004 12:14 PM
How to login as a normal user? daYz Slackware 5 11-14-2003 02:35 PM


All times are GMT -5. The time now is 08:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration