LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-25-2020, 07:15 PM   #1
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 666

Rep: Reputation: Disabled
Low priority liveslak feature request


I am using Slackware Live Edition to experiment with a script that automates the creation of custom user accounts and I have a problem.

During the creation of a regular Slackware user account, the first available UID is picked. For the very first regular user in the system, that is usually 1000. My regular "main" user (I use a few for different purposes) has uid=1000 as well.

The problem is that the "live" user in Slackware Live Edition has uid 1000 as well, so they conflict.

Currently my workaround is to boot the livecd image in VirtualBox, log in as root (system-level admin tasks like creating users require superuser privileges anyway), then just remove the live user with userdel. This seems to work - the record for the live user disappears from /etc/passwd

I thought it would be nice if in addition to the user name "live" I could explicitly set the user id for it as well in make_slackware_live.conf or via an environment variable when building the ISO image.

I don't know if this qualifies as justified feature request and the variable name choice that is LIVEUID seems a bit unfortunate from this perspective. To me, something like

Code:
LIVENAME="live" # (or LIVEUSER, anything to free the LIVEUID name for the actual uid)
LIVEUID=1000
would look better, but this breaks backwards compatibility and I don't know how severe the implications would be.

Last edited by FlinchX; 03-25-2020 at 07:18 PM. Reason: fix wording
 
Old 03-26-2020, 01:59 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
You confuse UID with UIDNumber. The use of "UID" in liveslak is correct.
Also, this place (LQ) is not a place to make feature requests, I discuss the scripts and the ISOS on my own blog.
Perhaps you can adapt your own script to make sure that '1000' is not getting used by it? You'll find many systems in the wild that have the regular user with UidNumber 1000.
 
Old 03-26-2020, 03:16 AM   #3
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 666

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Alien Bob View Post
You confuse UID with UIDNumber.
Perhaps I was confused by the fact that the manpage of useradd names the number "UID".

Quote:
Originally Posted by Alien Bob View Post
Perhaps you can adapt your own script to make sure that '1000' is not getting used by it? You'll find many systems in the wild that have the regular user with UidNumber 1000.
I can use any custom UID numbers when making users in the livecd environment, my concern is about the situation when I will apply this to my future fresh Slackware 15 installed from scratch (I prefer to reinstall every release rather than upgrading to it) which will still use the /home + some other filesystems with uid=1000 for the main user, so I would have to run a full scan and chown a lot of stuff.

However, I see that make_slackware_live.sh script hardcodes uid=1000 when creating the live user and that value is not used anywhere else. I think I can just make a private fork with some other hardcoded valid uid value and use it for personal purposes.
 
Old 03-31-2020, 06:49 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
No need for a fork. I think I implemented this in a way that everybody is happy. You can now set a number other than 1000 in the .conf file: https://git.slackware.nl/liveslak/co...be651dfe7e4049
 
3 members found this post helpful.
Old 04-01-2020, 02:09 AM   #5
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 666

Original Poster
Rep: Reputation: Disabled
Thank you.
 
  


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
[SOLVED] Liveslak 1.1.3 slackpkgplus configuration updates for 14.2, block downgrades and fix kmail. bamunds Slackware 2 09-13-2016 03:00 PM
Ideas for a low cost, low power, low noise web server/torrent box alecjtaylor Linux - Hardware 13 01-10-2012 05:26 AM
X: warning; priority set to -1 instead of requested priority 0 HitmanX Linux - Newbie 5 12-13-2010 11:09 AM
make a command in bash with low priority ( low server load) m_abdelfattah Linux - Newbie 1 07-25-2009 09:29 AM
process priority,nice -- small question regarding high/low priority values beeblequix Linux - Newbie 1 10-11-2006 10:22 AM

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

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