LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-15-2010, 03:13 AM   #1
kasumi
LQ Newbie
 
Registered: Dec 2010
Distribution: Slack 14.1
Posts: 23

Rep: Reputation: 0
Question No home-directory possible?


Hello, when I want to log in as my non-root-user, I can't run kdm.

"Only root wants to run kdm."

Okay, and when I log in as root, i CAN start kdm, but at the login screen, I can't log in as my non-root-user. "Can't create home directory, using /." And something about the Error code 3.

Please help.
 
Old 12-15-2010, 03:16 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Which distribution are you using?
There is no homedirectory for your user.
How did you create the user?

Kind regards

Last edited by repo; 12-15-2010 at 03:17 AM.
 
Old 12-15-2010, 03:18 AM   #3
kasumi
LQ Newbie
 
Registered: Dec 2010
Distribution: Slack 14.1
Posts: 23

Original Poster
Rep: Reputation: 0
Thank you.

Well, there IS a home directory, with nothing in it. Everything I save is stored in /root-directory, of course.

I created the user with

# useradd kasu
and
# passwd kasu

And it worked without getting any error messages.

I use Slackware 11.3 32-bit.
 
Old 12-15-2010, 03:22 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Try to use
Code:
adduser
It will create the homedirectory
or use the option -d for useradd to create the homedirectory
see
Code:
man useradd
Kind regards
 
Old 12-15-2010, 03:31 AM   #5
kasumi
LQ Newbie
 
Registered: Dec 2010
Distribution: Slack 14.1
Posts: 23

Original Poster
Rep: Reputation: 0
kstartupconfig4 does not exist or fail. The error code is 3. Check your installation.

That's what I get when I try logging in as kasu.

I created a directory /home/kasu, I did useradd kasu and passwd kasu. Still the same result.
 
Old 12-15-2010, 04:13 AM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,060

Rep: Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139
probably kasu doesn't own his home directory.

have a look at this thread: in my opinion the best solution is what repo has suggested you, this (remember to "userdel kasu" and "rm -fR /home/kasu" -backup what you need if you put something inside it- first).
 
Old 12-15-2010, 04:20 AM   #7
kasumi
LQ Newbie
 
Registered: Dec 2010
Distribution: Slack 14.1
Posts: 23

Original Poster
Rep: Reputation: 0
I understand. chmod 777 kasu would be no solution, wouldn't it?

root@styx:~# userdel kasu
root@styx:~# rm -fR /home/*
root@styx:~# cd /home
root@styx:/home# ls
root@styx:/home# adduser kasu

Login name for new user: kasu

User ID ('UID') [ defaults to next available ]:


That's what I did up to now. Please tell me ANYTHING I could write in there, just any example that works. I'll look everything up after finishing this.

As far as I know, adduser has been adapted for Slackware.

Last edited by kasumi; 12-15-2010 at 04:26 AM.
 
Old 12-15-2010, 04:25 AM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,060

Rep: Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139
no, you'll have many problems later on
 
Old 12-15-2010, 04:25 AM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
I created a directory /home/kasu, I did useradd kasu and passwd kasu. Still the same result.
Make sure the permissions are correct
try as root
Code:
chown -R kasu:users /home/kasu/
The best way to create users is to use
Code:
adduser
It's an interactive script that will create the correct directory, groups, permissions etc for the new user.

Kind regards
 
Old 12-15-2010, 04:28 AM   #10
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
That's what I did up to now. Please tell me ANYTHING I could write in there, just any example that works. I'll look everything up after finishing this.
Just use the default options given by the script.
For the groups use the arrow keys to see the groups

Kind regards

Last edited by repo; 12-15-2010 at 04:29 AM.
 
Old 12-15-2010, 04:40 AM   #11
kasumi
LQ Newbie
 
Registered: Dec 2010
Distribution: Slack 14.1
Posts: 23

Original Poster
Rep: Reputation: 0
Thank you, it worked! Read the manpage and understood everything. The owner of /home/kasu was root, not kasu. Mille grazie.
 
Old 12-15-2010, 04:43 AM   #12
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Good to know it works
You can mark the thread solved using the thread tools for further references.

Kind regards
 
Old 12-15-2010, 04:46 AM   #13
kasumi
LQ Newbie
 
Registered: Dec 2010
Distribution: Slack 14.1
Posts: 23

Original Poster
Rep: Reputation: 0
I will.

But there's one more question. I downloaded skype static as root, copied the files to /home/kasu now, and when I want to run skype ..

bash-4.1# cd kasu
bash-4.1# ls
Desktop libflashplayer.so
NVIDIA-Linux-x86-260.19.29.run skype_static-2.1.0.81
Neytiri_wallpaper_by_Jerner.jpg skype_static-2.1.0.81.tar.bz2
asd snapshot1.png
install_flash_player_10_linux.tar.gz snapshot2.png
bash-4.1# cd skype_static-2.1.0.81
bash-4.1# ./skype
No protocol specified
 
Old 12-15-2010, 04:54 AM   #14
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
bash-4.1# ./skype
No protocol specified
Because you want to run a gui app as root, when you are in X owned by kasu
You do NOT want to run skype as root.
Did you changed the permissions to your user when you copied the files as root?
As root do

Code:
chown -R kasu:users /home/kasu/
Then run skype as user kasu
Remember, root is only to do administrative tasks, not to run apps, and surely no apps as skype, firefox etc

Kind regards

Last edited by repo; 12-15-2010 at 04:59 AM.
 
Old 12-15-2010, 05:11 AM   #15
kasumi
LQ Newbie
 
Registered: Dec 2010
Distribution: Slack 14.1
Posts: 23

Original Poster
Rep: Reputation: 0
That's a good answer. I closed the terminal with root-rights and tried it again, it worked.

I just did not understand the error message.


I did change the permissions with

# chmod 777 /home/kasu/*.*

Is that not correct? I guess, this only changes the rights of the files, not of the directories.

Last edited by kasumi; 12-15-2010 at 05:13 AM.
 
  


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
[SOLVED] 'Could not chdir to home directory /home/[user]: Permission denied' arashi256 Linux - Newbie 25 11-11-2011 09:29 AM
"Home directory already exists. Please enter another home directory path." Daravon Ubuntu 2 02-15-2009 10:26 PM
contents of 'home' directory found at sda5: mounted as /home, and also on sda6:/home leswatson Linux - Newbie 4 04-18-2008 04:02 PM
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:57 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration