LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 09-13-2011, 01:00 AM   #1
derstephen
Member
 
Registered: Sep 2011
Location: Northern Colorado
Distribution: Slackware64
Posts: 79

Rep: Reputation: Disabled
Adding new users to SLiM?


I was feeling good a couple of hours ago. I have my desktop all set up and pretty, all the apps I need installed, and SLiM set up to boot into FluxBox (I'm on Slackware 13.37 by the way).

Well, for root at least.

I guess I kind of got carried away with setting everything up for root, but now that pretty much everything's configured the way I like it, I'm adding a user account I can use for everyday stuff. I ran the 'adduser' script fine, and went through my root home directory and copied all the configuration files (the dot files) into the user home directory. Then I rebooted and tried to log in through SLiM and got a "Failure to Execute Login Command" when I used my new user login. So I looked it up on Google, and the only solution I could find was to change the "login_cmd" line in /etc/slim.conf to use the bash shell instead of 'sh'. But mine was already like that. So I decided to reinstall the SlackBuild, hoping that it would update around the new user. Nothing.

After another unsuccessful hour of googling, I was out of ideas and patience and decided it was a permissions problem, so I went in and added user read and execute permissions for all the dot files in the user home directory. This affected it, but not really in a good way. Now when I log in as the user, I get a fake FluxBox desktop, which turns white if I try to execute any command in the terminal. All I can do is enter the 'exit' command, which closes the fake FluxBox session and reveals a fake root FluxBox underneath, which I can't do anything from either.

Soooo...I guess this is a long, convoluted and overly explanatory way of asking how one is supposed to add a new user to SLiM.




P.S. If you don't know already, the "S" in SLiM stands for "simple". Ouch.
 
Old 09-17-2011, 11:37 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,478

Rep: Reputation: Disabled
I think I would remove the user from the system, & start over.
Add the user, home directory, password, etc.
Log in as the user, then copy in the setup files from root's directory.
(I use Debian, but have used Slack when I started with Linux)
This may or may not work, but 'I' would try it.
 
1 members found this post helpful.
Old 09-17-2011, 12:19 PM   #3
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
You should copy the default files from /etc/skel if they don't exist when the user is created, not sure if thats the problem though i would reccomend reading throguh this:

https://wiki.archlinux.org/index.php/Slim

The configuration is identical to the slackware package, have you tried using the .xinitrc method?
 
1 members found this post helpful.
Old 09-17-2011, 01:29 PM   #4
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,478

Rep: Reputation: Disabled
Smile To coralfang

When you add a user their new home directory is normally populated from skel, that was why I suggested logging in as user, before copying root's files.
 
Old 09-17-2011, 05:33 PM   #5
derstephen
Member
 
Registered: Sep 2011
Location: Northern Colorado
Distribution: Slackware64
Posts: 79

Original Poster
Rep: Reputation: Disabled
Well, I remember trying the xinitrc copy method before and it not working (actually I copied all the dot files from root including Xauthority), because my skel directory has nothing in it.

But for other reasons, mostly my hard disk layout being less than ideal, I went ahead and did a complete reinstallation on a better hard disk partition, and this time I added the user before doing anything else. It was still by no means automatic but for whatever reason it works now when I copy the .X files to my home directory. So you were both right! Thanks.
 
  


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
slim login problem - anyone succeed in configuring slim? rkrishna Slackware 20 02-18-2008 06:50 AM
Adding Users In X royce2020 Linux - Desktop 10 09-26-2007 11:45 PM
Adding users Joe2003 Linux - Software 1 05-19-2005 10:20 AM
Adding many users? ricardocastro Programming 4 02-19-2002 01:22 PM
adding Users hextex Linux - Newbie 5 06-08-2001 03:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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