LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Login problems (https://www.linuxquestions.org/questions/slackware-14/login-problems-665603/)

Hannes Worst 08-26-2008 04:23 PM

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?

gilead 08-26-2008 06:44 PM

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?

Hannes Worst 08-27-2008 01:02 AM

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!

billymayday 08-27-2008 01:12 AM

I don't know about slackware, but 700 is a more standard permission for a user's home directory.

gilead 08-27-2008 01:36 AM

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?

Road_map 08-27-2008 02:48 AM

Quote:

Originally Posted by Hannes Worst (Post 3261026)
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).

Hannes Worst 08-27-2008 11:11 AM

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!

Hannes Worst 08-30-2008 07:13 AM

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.


All times are GMT -5. The time now is 04:59 PM.