LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 12-22-2008, 05:25 AM   #1
rvdboom
Member
 
Registered: Jul 2007
Distribution: Slackware
Posts: 166

Rep: Reputation: 19
Weird non-root login issue after upgrade to Slack 12.2


Hi, guys!
I've just run in a strange issue which I'm sure is a problem in my personal settings but I'm not familiar enough with the login routines to fix it by myself.
After upgrading to 12.2 from a 6 months old Slackware current, I suddenly cannot login on my laptop with any other user than root, even if I create new ones. I always get a "Cannot execute /bin/bash: Permission denied" message trying, either from the login prompt or when using "su - <user>" as root.
/bin is 755, as well as /bin/bash, so it should not be a problem of execute permissions. I have copied new files in /etc and subdirs to defaults files, except passwd and shadows. I copied the group file and added manually the proper user names for the proper groups.
Does anyone have any clue of what can be going on or at least provide with info on how to get any clue?
Curiously, /va/log/faillog and /var/log/lastlog files seem to be binary files.
 
Old 12-22-2008, 05:30 AM   #2
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,846

Rep: Reputation: 128Reputation: 128
Have you checked the permissions on the user's home directory? Specifically, whether they own it and have appropriate rwx permissions.

I'm sure something like that happened to me at some point in the past, and that was the problem.
 
Old 12-22-2008, 06:30 AM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,185

Rep: Reputation: 285Reputation: 285Reputation: 285
This happened to me too. I also noticed some error messages about not being able to 'touch' certain files when using pkgtool and some other programs. I think I fixed it by reinstalling core-utils package, but this was a while ago now and I don't remember exactly or if there was anything else.
 
Old 12-22-2008, 07:30 AM   #4
rvdboom
Member
 
Registered: Jul 2007
Distribution: Slackware
Posts: 166

Original Poster
Rep: Reputation: 19
The home dirs are in 711 and correctly owned, which seems OK to me. That was an idea but it doesn't seem to be the problem here.
I'm going to try to reinstall core-utils tonight. Thanks for the tips!
 
Old 12-22-2008, 08:16 AM   #5
jannekrille
Member
 
Registered: Jul 2005
Location: Dalsland, Sweden
Distribution: Slackware 13.0 and 13.1
Posts: 75

Rep: Reputation: 22
rvdboom,

Did You use the old /home directory? If so, did You give the users their old uid? I got a horrible mess once, thanks to that I did not do that... Can't remember what happened, but it wasn't any good.

Jan-C.

Last edited by jannekrille; 12-22-2008 at 08:17 AM.
 
Old 12-22-2008, 09:18 AM   #6
rvdboom
Member
 
Registered: Jul 2007
Distribution: Slackware
Posts: 166

Original Poster
Rep: Reputation: 19
I just upgraded a correctly working system and uid were not changed. Using "ls -al", I still see the home dir as being owned by the correct user with the correct group.
That was a good idea but unortunately not the correct one.
Does anyone know what file is read when one is login in? I suppose the /etc/profile, .profile in homes (I don't have any yet though), all the /etc/profile.d/*.sh files. Anything else?
 
Old 12-22-2008, 10:15 AM   #7
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
Quote:
Does anyone know what file is read when one is login in? I suppose the /etc/profile, .profile in homes (I don't have any yet though), all the /etc/profile.d/*.sh files. Anything else?
/etc/login.defs, /etc/profile which sources /etc/profile.d/*.sh

Then first the first one found of ~/.bash_profile, ~/.bash_login, and ~/.profile.
 
Old 12-23-2008, 06:20 AM   #8
rvdboom
Member
 
Registered: Jul 2007
Distribution: Slackware
Posts: 166

Original Poster
Rep: Reputation: 19
Nailed it!
Thanks to this link :

http://tldp.org/LDP/LGNET/issue52/okopnik.html

I discovered that my glibc package probably had some issue while being upgraded (I probably did some bad stuff while upgrading using swaret, which made the glibc package upgrade fail a bit) and all the libs in the glibc-solibs package were installed with 700 rights.
Turning them to 755 allowed me to log again as standard user.
Thanks to all the tips!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Login issue. Can't login as root sqldbg Linux - Newbie 6 07-17-2007 02:32 AM
Allow upgrade to root after login ssh bourbon_beast Linux - Security 2 10-27-2005 04:21 AM
slack 10.2 - root - unable login arczir Slackware 7 10-14-2005 08:09 PM
Root login and upgrade problems. manis Suse/Novell 2 05-19-2005 03:47 AM
Login issue - root only TBomb Linux - Software 16 07-27-2004 08:26 AM


All times are GMT -5. The time now is 01:27 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