LinuxQuestions.org
Visit Jeremy's Blog.
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 08-26-2008, 04:23 PM   #1
Hannes Worst
Member
 
Registered: Jul 2008
Location: Tilburg, The Netherlands
Distribution: Antix, Slackware, NetBSD
Posts: 88

Rep: Reputation: 35
Unhappy Login problems


I am a Slackware newbie. I am running Slackware 12.1 with XFCE4.2 as grafical environment, default runlevel 4. I can login as user, only when I first log in as root. When I try to log in as user first, I get thrown back to the login screen. I checked the permissions of my home-directory and my temp-directory, and they look allright according to other threads on this forum. How can I let the users of my machine login without beeing dependent of me as root?
 
Old 08-26-2008, 06:44 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
I'm not sure which threads you're talking about for permissions of /home, /home/* and /tmp. Can you post the output of this command please?
Code:
ls -ld /home /home/* /tmp
Also, have you checked the contents of /etc/passwd to see if the users have valid shells?
 
Old 08-27-2008, 01:02 AM   #3
Hannes Worst
Member
 
Registered: Jul 2008
Location: Tilburg, The Netherlands
Distribution: Antix, Slackware, NetBSD
Posts: 88

Original Poster
Rep: Reputation: 35
I checked /etc/passwd and as far as I can see (I have only limited knowledge on linux yet) everything looks fine there. About the command ls -ld /home /home/* /tmp I get the following message:

drwxr-xr-x 6 root root 4096 2008-08-08 21:14 /home
drwxr-xr-x 2 root root 4096 2006-08-07 03:50 /home/ftp
drwxr-x--- 33 hans users 4096 2008-08-27 07:41 /home/hans
drwxr-x--- 26 ik users 4096 2008-08-12 20:42 /home/ik
drwxr-x--- 18 mathijssux users 4096 2008-08-26 18:51 /home/mathijssux
drwxrwxrwt 23 root root 4096 2008-08-27 07:53 /tmp

Is there something wrong, or is it as it is supposed to be? And what to do next? Thanks for the reply!
 
Old 08-27-2008, 01:12 AM   #4
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I don't know about slackware, but 700 is a more standard permission for a user's home directory.
 
Old 08-27-2008, 01:36 AM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
It's true that 0700 is preferable for a /home/user type directory, but it shouldn't be stopping XFCE from running. Can you confirm that everything in the user's directory is owned by that user with something like this?
Code:
chown -Rc hans /home/hans
Also, is /tmp/.X0-lock owned by the user logged into X?
 
Old 08-27-2008, 02:48 AM   #6
Road_map
Member
 
Registered: Jan 2007
Distribution: Slackware
Posts: 341

Rep: Reputation: 31
Quote:
Originally Posted by Hannes Worst View Post
drwxr-x--- 33 hans users 4096 2008-08-27 07:41 /home/hans
drwxr-x--- 26 ik users 4096 2008-08-12 20:42 /home/ik
drwxr-x--- 18 mathijssux users 4096 2008-08-26 18:51 /home/mathijssux
If hans, ik and mathijssux are users, the permissions for their home folders are wrong. In a standard Slackware install, the permission for user's home folder is set to 711 (drwx--x--x).
 
Old 08-27-2008, 11:11 AM   #7
Hannes Worst
Member
 
Registered: Jul 2008
Location: Tilburg, The Netherlands
Distribution: Antix, Slackware, NetBSD
Posts: 88

Original Poster
Rep: Reputation: 35
Problem is suddenly solved. After the system performed a systemcheck, being mounted 38 times. I don't know what did the trick or what I did wrong, but thanks for your answers on my issue. I will set the permissions as it is supposed to be in a standard Slackware installation. Thanks again!
 
Old 08-30-2008, 07:13 AM   #8
Hannes Worst
Member
 
Registered: Jul 2008
Location: Tilburg, The Netherlands
Distribution: Antix, Slackware, NetBSD
Posts: 88

Original Poster
Rep: Reputation: 35
Now I know where I went wrong. There was simply to much stuff in my tmp/ directory. I wrote a script from one of the threads on this forum for a rc.local_shutdown to empty the directory every time I shutdown my machine, and now it runs perfectly.
 
  


Reply

Tags
configuration


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
Login Screen and Login Photo problems? host Linux - Software 0 02-21-2005 06:56 AM
login problems Mr.Bone Linux - Software 2 10-19-2004 10:44 AM
RH Login Problems heals1ic Linux - Security 12 09-30-2004 08:20 PM
Problems with Login kristaps Mandriva 1 10-25-2003 07:48 AM
Login problems wass29 Linux - General 2 09-15-2003 09:51 AM


All times are GMT -5. The time now is 10:43 AM.

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