LinuxQuestions.org
Review your favorite Linux distribution.
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-13-2024, 03:32 AM   #3901
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,927

Rep: Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043

Not conflating overflowuid with "nobody" makes sense given the use of "nobody" to drop privilege: nothing should ever be owned by "nobody" while the purpose of overflowuid is expressly to own filesystem resources whose uids can't be represented in the filesystem.

I'd also be interested to see the reasoning for going back to sharing one uid value for both. It seems retrograde to me.
 
3 members found this post helpful.
Old 03-13-2024, 05:34 AM   #3902
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,965

Rep: Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577
What is nobody used for, anyway? The finger daemon used to run as nobody but it is history. nfs used it to map client root to server nobody. What else?

Programs seem to have their own nobodies now: vsftpd has ftpsecure, dovecot has dovenull, sshd has sshd.

Last edited by Petri Kaukasoina; 03-13-2024 at 06:20 AM.
 
Old 03-13-2024, 06:21 AM   #3903
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,499
Blog Entries: 7

Rep: Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584
^OpenVPN can use it.
 
1 members found this post helpful.
Old 03-13-2024, 06:25 AM   #3904
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,927

Rep: Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043
Yes, the modern convention is to give each daemon its own unprivileged account to run under rather than sharing "nobody" as was done in the past. I've no idea what if anything is still using nobody today.
 
1 members found this post helpful.
Old 03-13-2024, 07:12 AM   #3905
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Blog Entries: 61

Rep: Reputation: Disabled
What happens if you log in as nobody? Somebody try it?
 
Old 03-13-2024, 07:52 AM   #3906
ctrlaltca
Member
 
Registered: May 2019
Location: Italy
Distribution: Slackware
Posts: 342

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Quote:
Originally Posted by brianL View Post
What happens if you log in as nobody? Somebody try it?
You can't, its shell is set to /bin/false:
Code:
nobody:x:99:99:nobody:/:/bin/false
 
1 members found this post helpful.
Old 03-13-2024, 09:58 AM   #3907
Markus Wiesner
Member
 
Registered: Mar 2016
Distribution: Slackware
Posts: 147

Rep: Reputation: 237Reputation: 237Reputation: 237
Quote:
Originally Posted by GazL View Post
Yes, the modern convention is to give each daemon its own unprivileged account to run under rather than sharing "nobody" as was done in the past. I've no idea what if anything is still using nobody today.
The NetworkManager-openvpn package currently has a patch (source/xap/NetworkManager-openvpn/openvpn.nobody.nogroup.diff.gz) to use it instead of the default separate user:

Code:
--- ./shared/nm-service-defines.h.orig  2020-03-06 06:38:55.000000000 -0600
+++ ./shared/nm-service-defines.h   2020-05-03 20:12:26.997028745 -0500
@@ -126,8 +126,8 @@
 #define NM_OPENVPN_VERIFY_X509_NAME_TYPE_SUBJECT     "subject"
 
 /* User name and group to run nm-openvpn-service under */
-#define NM_OPENVPN_USER   "nm-openvpn"
-#define NM_OPENVPN_GROUP  "nm-openvpn"
+#define NM_OPENVPN_USER   "nobody"
+#define NM_OPENVPN_GROUP  "nogroup"
 #define NM_OPENVPN_CHROOT LOCALSTATEDIR "/lib/openvpn/chroot"
 
 #endif /* __NM_SERVICE_DEFINES_H__ */
I think it would be a good idea to drop the patch and create the nm-openvpn user/group. And while we're at it: both Gentoo and Arch have AFAICS an additional user "openvpn" for OpenVPN as a "normal" (non-NetworkManager) daemon. It would be great to get them both officially added.
 
3 members found this post helpful.
Old 03-13-2024, 11:27 AM   #3908
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,200

Rep: Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387
Quote:
Originally Posted by brianL View Post
What happens if you log in as nobody? Somebody try it?
I'm just reminded of this now https://en.wikipedia.org/wiki/Outis
 
Old 03-13-2024, 01:15 PM   #3909
glennmcc
Member
 
Registered: Jan 2021
Location: North Jackson, Ohio (USA)
Distribution: slackware64-15.0, slackware64-current, slackware-14.0
Posts: 598

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Upcoming change to ffmpeg.

Well, as a result of the bug report I filed,
--disable-pthreads will also disable vulkan thereby not requiring _both_ --disable-pthreads _and_ --disable-vulkan

https://trac.ffmpeg.org/ticket/10900#ticket

The new snapshot includes the change in the configure script.

https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2

vulkan_deps="threads"
vulkan_deps_any="libdl LoadLibrary"


Note:

ffmpeg still requires threads.
Therefore with --disable-pthreads, only ffplay & ffprobe get built but _not_ ffmpeg
(many, many items for ffmpeg have been changed to require pthreads)
 
4 members found this post helpful.
Old 03-13-2024, 04:40 PM   #3910
J_W
Member
 
Registered: Apr 2004
Location: Yamagata, JAPAN
Distribution: Slackware64-current
Posts: 194

Rep: Reputation: 132Reputation: 132
Re: Upcoming change to ffmpeg.

Hi @glennmcc

I think we also have to consider that the latest git master source of FFmpeg includes API changes.

commit:783d00b on Mar 7, 2024 (ibs: bump major version for all libraries)
 
Old 03-13-2024, 05:44 PM   #3911
lonestar_italy
Member
 
Registered: Nov 2010
Location: Italy
Distribution: Slackware64-current
Posts: 175

Rep: Reputation: 70
Code:
Wed Mar 13 19:46:48 UTC 2024
a/etc-15.1-x86_64-9.txz: Rebuilt.
       Added proftpd user (97) and proftpd group (97).
       Added nm-openvpn user (320) and nm-openvpn group (320).
       Added openvpn user (443) and openvpn group (443).
       Added overflowuid user (65534) and overflowgid group (65534).
Maybe some sort of check/warning would be good to find out if uids/gids are already used in the system for something else?
Few of these new ones being assigned, I've been using them for other things for many years.
 
1 members found this post helpful.
Old 03-13-2024, 07:02 PM   #3912
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,569

Rep: Reputation: 8627Reputation: 8627Reputation: 8627Reputation: 8627Reputation: 8627Reputation: 8627Reputation: 8627Reputation: 8627Reputation: 8627Reputation: 8627Reputation: 8627
Quote:
Originally Posted by lonestar_italy View Post
Code:
Wed Mar 13 19:46:48 UTC 2024
a/etc-15.1-x86_64-9.txz: Rebuilt.
       Added proftpd user (97) and proftpd group (97).
       Added nm-openvpn user (320) and nm-openvpn group (320).
       Added openvpn user (443) and openvpn group (443).
       Added overflowuid user (65534) and overflowgid group (65534).
Maybe some sort of check/warning would be good to find out if uids/gids are already used in the system for something else?
Few of these new ones being assigned, I've been using them for other things for many years.
If that ends up being the case I'm not sure what we could do about it, since I'm going to be doing a static assignment here. I do check the SBo list and use the established UID/GID from that where possible. OpenVPN I used the TCP port number.

Anyway, I'll probably never assign anything from 500-999, so that's all open for local system usage.
 
Old 03-13-2024, 09:58 PM   #3913
biker_rat
Member
 
Registered: Feb 2010
Posts: 379

Rep: Reputation: 224Reputation: 224Reputation: 224
https://archive.mesa3d.org/mesa-24.0.3.tar.xz is available.
 
Old 03-13-2024, 11:52 PM   #3914
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 3,000

Rep: Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565
Quote:
Originally Posted by lonestar_italy View Post
Code:
Wed Mar 13 19:46:48 UTC 2024
a/etc-15.1-x86_64-9.txz: Rebuilt.
       Added proftpd user (97) and proftpd group (97).
       Added nm-openvpn user (320) and nm-openvpn group (320).
       Added openvpn user (443) and openvpn group (443).
       Added overflowuid user (65534) and overflowgid group (65534).
Maybe some sort of check/warning would be good to find out if uids/gids are already used in the system for something else?
Few of these new ones being assigned, I've been using them for other things for many years.
I use https://slackbuilds.org/uid_gid.txt as my guide. Only one in this listing is 320, the rest are not used. Probably time to update this list.
Code:
nm-openvpn
=======
User:   nm-openvpn	UID: 320        GID: 320
Group:  nm-openvpn			GID: 320
 
1 members found this post helpful.
Old 03-14-2024, 01:07 AM   #3915
jloco
Member
 
Registered: Apr 2016
Location: Detroit, MI
Distribution: Slackware
Posts: 198

Rep: Reputation: 195Reputation: 195
the *mm major mess

The "major mess" mm (that's actually "maintainer-mode" for those whom don't know) problem and solution.

For some time the *mm components have been getting stale-- this isn't a problem as most of them are current libraries used by the system. But eventually more apps will require the newer ABI versions and Slackware can't accomodate them. As noted then, there was breakage when updating them, which is why I suggest not updating them, but extending them.

I propose adding a few new mm packages into the mix, namely "cairomm1" with the newer 1.16 ABI. A "glibmm2" with the 2.68 ABI. A "gtkmm4" for the GTK4 ABI, and last but not least a "pangomm2" with the 2.48 ABI. (package names are negotiable

I was specifically looking into the glibmm package as I wanted to build something dependent on a newer release, yet noticed things broke if I upgraded it in place, so naturally, making a new package seemed the most logical next step. In this process, I noticed each one of this puzzle was needed for another piece to fit together. Now with all 4, I can build newer applications while not breaking the old ones already included based upon glibmm libraries (cdrdao, pavucontrol, and gparted came up in my search). I assume this will also help along other newer software to become buildable as well.

All of these are needed for newer GNOME software, and I presume other things out and about on the net as well. My hastily edited scripts are here along with the slackbuilds I was checking for breakage along the way. Everything builds cleanly just like it had without these new packages being added as well. I know the GFS project uses something like these to build software as well, so it'd benefit the community to have them directly included in Slackware, where they belong.
 
  


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
Apache 2.4 requests to non-SSL site with "Upgrade-Insecure-Requests: 1" and no trailing / get redirected to default site owendelong Linux - Server 2 06-22-2021 02:08 PM
[SOLVED] Requests for -current (20151216) rworkman Slackware 3441 12-28-2017 03:50 PM

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

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