LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 12-31-2023, 01:44 PM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,309

Rep: Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326
~Current: User can't log into X on New install


With the ups & downs, I started over with a new install of current while this was easy. Installed a user with
Code:
useradd -g user <name>
and then gave the new user a password.

But I can't log into runlevel 4 with the new user. I can log into a runlevel 3 console, but I can only use X as root. Any ideas?
 
Old 12-31-2023, 01:59 PM   #2
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,791

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
There is no group 'user'.

Try to add another user using the adduser script (not useradd). When it asks about supplementary groups, it tells you to press UP to use a list of selected groups.
 
Old 12-31-2023, 02:39 PM   #3
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 590

Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
With the ups & downs, I started over with a new install of current while this was easy. Installed a user with
Code:
useradd -g user <name>
and then gave the new user a password.

But I can't log into runlevel 4 with the new user. I can log into a runlevel 3 console, but I can only use X as root. Any ideas?
My guess is that the user needs an existing homedirectory if the runlevel is 4 (graphical login). If you login at the console without having a homedir, you end up in the '/' directory if my memory serves me well, but that's different in runlevel 4.

The "useradd" command will not create a homedirectory even if that directory does not yet exist, unless you specify the "-m" parameter to useradd. The Slackware interactive script "adduser" uses that "-m" parameter; use adduser instead of useradd like Petri already recommended!
 
Old 01-01-2024, 09:06 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,309

Original Poster
Rep: Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326
Thanks guys - sorted. I actually did
Code:
useradd -g users <name>
but forgot to make the homedir initially, and forgot to chown it to luser:group. So my user had no write permissions

That's what I get for working on 2 PCs simultaneously. I don't multitask well.
 
Old 01-03-2024, 07:46 PM   #5
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,453
Blog Entries: 7

Rep: Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557
+ 1 more for using the 'adduser' script. It does everything you need.
 
Old 01-04-2024, 04:14 AM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Quote:
Originally Posted by rkelsen View Post
+ 1 more for using the 'adduser' script. It does everything you need.
I use usersetup or gtkusersetup from salix-tools and salix-tools-gtk respectively:
https://github.com/gapan/salixtools
https://github.com/gapan/salixtools-gtk
 
Old 01-04-2024, 06:04 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,309

Original Poster
Rep: Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326
Quote:
Originally Posted by Didier Spaier
+ 1 more for using the 'adduser' script. It does everything you need.
adduser - I didn't know about that. Why not run it automatically on 1st boot?
 
Old 01-04-2024, 06:35 AM   #8
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,453
Blog Entries: 7

Rep: Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557
Slackware doesn't hold your hand, that's why it doesn't run automatically.

Patrick specifically mentions the adduser command in this document, which is in the root directory of your installation media: http://slackware.uk/absolute/snapshot/Slackware-HOWTO
 
Old 01-04-2024, 09:32 AM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,309

Original Poster
Rep: Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326
I'll consider myself duly nagged and told off.

Mind you, having a non-writable homedir wasn't very bright either. Perhaps I'm just too honest
 
  


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 log internal-sftp chroot jailed users access log to /var/log/sftp.log file LittleMaster Linux - Server 0 09-04-2018 03:45 PM
[SOLVED] after installation of MySQL could not log into mysql using temporary password in /var/log/mysqld.log User247 Linux - Server 2 12-25-2017 09:31 AM
Why root user can't write log into /var/log directory? luofeiyu Programming 3 05-04-2017 06:03 AM
Can,t log into samba on linux; windows 2k, xp, vista can not log in to smb; admir330 Linux - General 1 12-23-2008 08:31 PM
The mythtvfrontend can't log into MySQL from any other user than the mythtv user! LiquidSlumber Linux - Software 1 03-24-2006 11:04 PM

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

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