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 03-22-2023, 10:55 PM   #46
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,997

Rep: Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565

Quote:
Originally Posted by metaed View Post
Except wheel, yes?
Oops, missed that. Fixed it.
 
Old 03-22-2023, 10:57 PM   #47
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,997

Rep: Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565
Quote:
Originally Posted by Jeebizz View Post
Is lp for printing? I am not part of that, and I can print just fine, same with scanner - I just have a printer and non of thew crap multifunction printer/scanner devices, but I am not part of scanner and I can print still (hplip)...
I think the group lp was used back in the day when we used lp to print; which is still usable today in Slackware.

Last edited by chrisretusn; 03-22-2023 at 11:00 PM.
 
Old 03-23-2023, 02:11 AM   #48
henca
Senior Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 1,032

Rep: Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694
Quote:
Originally Posted by brianL View Post
And I will learn how to use vi/vim (I've been saying that for years).
The most important (and not completely intuitive) thing to know about vi is the key kombination:

Code:
<ESC> : q !
That is press escape, ":", "q" and "!" to exit vi after you accidently started vi.

From the ABCs of unix at http://www.linux-databook.info/?page_id=4315

Code:
V is for vi, which is hard to abort.
regards Henrik
 
Old 03-23-2023, 03:24 AM   #49
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,834
Blog Entries: 17

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Quote:
Originally Posted by henca View Post
The sddm process (as any login manager like xdm, gdm, kdm) should be run as root because only root is able to become other users. When you log in with sddm you want to become your own normal user.

However, all normal users should be able to login with a login manager without having to be member of a group.

regards Henrik
That leaves the question: what is the sddm group for then?
 
Old 03-23-2023, 03:26 AM   #50
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,834
Blog Entries: 17

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Quote:
Originally Posted by chrisretusn View Post
I think the group lp was used back in the day when we used lp to print; which is still usable today in Slackware.
Not only in Slackware, but other distroes. Lp is for printing lpadm is for printer administration. Probably standard CUPS stuff.

Last edited by zeebra; 03-23-2023 at 03:28 AM.
 
Old 03-23-2023, 04:45 AM   #51
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,962

Rep: Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574
Quote:
Originally Posted by henca View Post
The sddm process (as any login manager like xdm, gdm, kdm) should be run as root because only root is able to become other users.
Quote:
Originally Posted by zeebra View Post
That leaves the question: what is the sddm group for then?
Privilege separation. /usr/bin/sddm.bin runs as root. It starts several processes which don't need root privileges and they run as user sddm, group sddm.

There are others. Like ntpd running as ntp.ntp, polkitd running as polkitd.polkitd, atd running as daemon.daemon.
 
1 members found this post helpful.
Old 03-23-2023, 05:06 AM   #52
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,962

Rep: Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574
Quote:
Originally Posted by zeebra View Post
Lp is for printing lpadm is for printer administration. Probably standard CUPS stuff.
A couple of lines in /etc/cups/cups-files.conf:
Code:
# Default user and group for filters/backends/helper programs; this cannot be
# any user or group that resolves to ID 0 for security reasons...
#User lp
#Group lp

# Administrator user group, used to match @SYSTEM in cupsd.conf policy rules...
# This cannot contain the Group value for security reasons...
SystemGroup sys root wheel


# User that is substituted for unauthenticated (remote) root accesses...
#RemoteRoot remroot
So, cups runs as root, but runs filters without root privileges as user lp, group lp. Groups sys, root, wheel work for administrative tasks.
 
Old 03-23-2023, 05:17 AM   #53
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
Quote:
Originally Posted by henca View Post
The most important (and not completely intuitive) thing to know about vi is the key kombination:

Code:
<ESC> : q !
That is press escape, ":", "q" and "!" to exit vi after you accidently started vi.

From the ABCs of unix at http://www.linux-databook.info/?page_id=4315

Code:
V is for vi, which is hard to abort.
regards Henrik
But ed is worse.
Might try using ed for a month, then vi will seem like heaven.
 
Old 03-23-2023, 05:43 AM   #54
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,927

Rep: Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043
Quote:
Originally Posted by Jeebizz View Post
I haven't used a webcam in a while - (how does this apply to integrated webcams on a notebook though?), but if thats the main purpose and doesn't imply I need it for DRI for my GPU, I guess I can remove myself from that too.
I've always found it odd that access to V4L2 devices like webcams have been conflated with the other devices in the 'video' group, such as graphics card/dri/framebuffer devices. It feels like a mistake to me, but I've never been bothered enough to modify it.
 
Old 03-23-2023, 05:54 AM   #55
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,927

Rep: Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043
Quote:
Originally Posted by Petri Kaukasoina View Post
Privilege separation. /usr/bin/sddm.bin runs as root. It starts several processes which don't need root privileges and they run as user sddm, group sddm.

There are others. Like ntpd running as ntp.ntp, polkitd running as polkitd.polkitd, atd running as daemon.daemon.
On OpenBSD they started prefixing users/groups intended purely for privilege separation with an underscore to make it clear that they were system groups/users and not intended for use by real users. I won't suggest we do it here as it would be too visible/high impact a change for Slackware, but IMO it was a smart move.
 
Old 03-23-2023, 08:06 AM   #56
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,389

Rep: Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764
I have run this command on my daily driver to look at how groups affect access to various files.
Code:
find / \( -path /proc -o -path /run -o -path /sys \) -prune -o \( -group lp -o -group floppy -o -group audio -o -group video -o -group cdrom -o -group input -o -group plugdev -o -group power -o -group netdev -o -group scanner \) -exec stat -c "%G %n" {} \; | sort > /tmp/grouplist.txt
My conclusion is:
audio is required for files in /dev/sound
cdrom is required for /dev/sr0
floppy is not required (I do not have one in this PC)
input gives access to files under /dev/input (I defer to Petri Kaukasoina)
lp is required for a lot of printing stuff {I have a proprietary printer driver installed)
netdev is required for /dev/rfkill
plugdev is required (I use USB devices)
scanner is needed for sane to set a lock in /var/lock/sane
video gives access to files in /dev

Last edited by allend; 03-23-2023 at 08:21 AM.
 
Old 03-23-2023, 09:38 AM   #57
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,200

Original Poster
Rep: Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387
Quote:
Originally Posted by GazL View Post
I've always found it odd that access to V4L2 devices like webcams have been conflated with the other devices in the 'video' group, such as graphics card/dri/framebuffer devices. It feels like a mistake to me, but I've never been bothered enough to modify it.
So then its NOT for video devices, other than just GPU ?
 
Old 03-23-2023, 12:02 PM   #58
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,927

Rep: Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043
If you look at it logically, video capture devices have little to do with the gpu/framebuffer devices. It makes more sense to put them each in their own group, but for whatever reason they all get lumped into 'video'.
 
Old 03-23-2023, 12:10 PM   #59
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,200

Original Poster
Rep: Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387
Quote:
Originally Posted by GazL View Post
If you look at it logically, video capture devices have little to do with the gpu/framebuffer devices. It makes more sense to put them each in their own group, but for whatever reason they all get lumped into 'video'.
Alright, but does one even need to be part of video for having an X11 or wayland session with direct rendering these days? Someone stated you need this for GPU passthrough, but thats too advanced for me - although I do run VMs, but I haven't the need for GPU passthrough anyways.
 
  


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
LXer: Put Design Thinking into practice with the Open Practice Library LXer Syndicated Linux News 0 07-22-2022 01:02 AM
group name is not showing when I do $id but group id exists under /etc/group Manohartk Linux - Newbie 4 07-05-2021 08:10 PM
Good practice - group memberships MudPuppy Slackware 5 04-11-2012 11:37 AM
Block bitmap for group 416 not in group (block 0) + group descriptors corrupted? quanta Linux - Server 1 12-08-2010 10:40 AM
Group Admin, Group Root, or God over Group crickett Linux - General 5 07-12-2004 04:01 PM

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

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