LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 05-20-2009, 09:03 PM   #1
Vlad420
LQ Newbie
 
Registered: May 2009
Location: Canada
Distribution: Slackware 13.1
Posts: 17

Rep: Reputation: 0
how to configure kdm in slackware 12.2


so I've been trying to set up kdm for a graphical login on my slackware 12.2 system and one of the steps listed in the instructions provided is to run kdm in the terminal as each user. I'm sure there is another easier way to do this but I don't currently have a properly configured shells file so this is the only way I know of. I've been trying to run kdm as a user other than root but it says only root can run it so I try typing sudo kdm and I get an error that says /etc/sudoers is mode 0644, it should be 0440. I'd like to get both of these problems fixed if possible.
 
Old 05-20-2009, 09:16 PM   #2
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
To get KDM up and running for a graphical login, you need to edit /etc/inittab using your favourite editor (as root). Change the 3 to a 4 to start runlevel 4 (graphical login), as shown below:
Code:
# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:
to
Code:
# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:
Then just restart your PC and it should show a nice graphical login screen.

[edit] In Slackware you cannot just run "sudo command" and expect it to run as root (unless you set your sodoers file up specifically for that functionality). You can use `su` (or `su -` if you want to preserve the proper root environment) to switch to root, and then issue any commands. Or, you could try `su -c "command"`. Note that, unlike with sudo, you need to enter the root password here, not your user's. [/edit]

Last edited by T3slider; 05-20-2009 at 09:20 PM.
 
Old 05-20-2009, 10:29 PM   #3
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
No need to restart.

Code:
telinit 4
will put you in runlevel 4
 
Old 05-20-2009, 11:09 PM   #4
Vlad420
LQ Newbie
 
Registered: May 2009
Location: Canada
Distribution: Slackware 13.1
Posts: 17

Original Poster
Rep: Reputation: 0
ok thats not quite the problem... in order to log in as different users they must be listed in the shells file and since its allmost empty(just the defaults when you install linux) I can only log in as root. I was allready aware of editing /etc/inittab and if I do that right now I won't be able to log in as a user(trust me I've tried) so maby if someone could give me a line to add to /etc/shells so i can add other users it would be a big help
 
Old 05-21-2009, 12:10 AM   #5
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
As root, start KDE and then use the UserManager to add users and configure groups.
 
Old 05-21-2009, 12:45 AM   #6
Vlad420
LQ Newbie
 
Registered: May 2009
Location: Canada
Distribution: Slackware 13.1
Posts: 17

Original Poster
Rep: Reputation: 0
Again this is not the problem I already have another user. When I start kdm and try to log on as the other user i get this error:

your login shell is not listed in /etc/shells

I don't need help getting kdm to start at bootup and I do not need help adding new users what I need is to know how to add users to the /etc/shells file
 
Old 05-21-2009, 12:59 AM   #7
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781

Rep: Reputation: 98
Sounds as if something went wrong when you added your second user. As root try:-

Code:
userdel -r [username]
then follow this with the adduser command to add a new user, making sure you answer all of the questions appropriately
 
Old 05-21-2009, 01:23 AM   #8
Vlad420
LQ Newbie
 
Registered: May 2009
Location: Canada
Distribution: Slackware 13.1
Posts: 17

Original Poster
Rep: Reputation: 0
yes that was the problem thank you vdemuth
 
  


Reply



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
How to configure KDM for login chooser nrodolfich Linux - Desktop 1 04-25-2007 07:33 AM
KDM on slackware masand Slackware 9 11-02-2005 04:01 AM
how to configure KDE/KDM with xfree86 args like -ignoreABI kennwoods Red Hat 1 07-14-2004 12:55 PM
How to configure KDM? LeHardi Linux - Software 2 11-21-2003 03:53 AM
Can I use KDM in Slackware 9? Seph64 Slackware 3 05-02-2003 03:51 PM

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

All times are GMT -5. The time now is 03:50 PM.

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