LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-01-2021, 01:28 PM   #1
DarkBrainsDecoder
LQ Newbie
 
Registered: Feb 2021
Posts: 6

Rep: Reputation: Disabled
Question id command outputs


I always write the following statement. I am learning Linux from Christopher Negus's Linux Bible. When I am providing id command then along with my uid, gid and groups some other information are also coming like
Code:
4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),120(lpadmin),131(lxd),132(sambashare)
From a source on internet I have found that
Quote:
adm Monitor system logs
cdrom Use CD-ROM drives
lpadmin Configure printers
sudo administer the system, ...
sambashare Share files with the local network
dip Connect to the Internet using a modem
plugdev Access external storage devices
How numbers are chosen and what do they mean beside each such element within bracket. Like 24(cdrom Use CD-ROM drives) what is the actual meaning?
 
Old 07-01-2021, 01:35 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,849

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
probably this helps: https://linoxide.com/linux-id-command/
 
Old 07-01-2021, 05:46 PM   #3
GentleThotSeaMonkey
Member
 
Registered: Dec 2016
Posts: 338
Blog Entries: 4

Rep: Reputation: 128Reputation: 128
Hi again 'learner'! Here's a couple of general Thots (thoughts) I have to offer, on the 'soft skill' of beginner learning:

Formulate/compose a web-search that includes the essential keywords for your topic.
Try it (google, duckduckgo etc), to discover & refine more/other (or less) keywords.
Then I'd include it in my LQ post, like:

historically how group gid numbers chosen meaning unix|linux

(you might use 'advanced' search features, like quoting to require "chosen", and my use of | as or). Maybe other LQ'ers will help you refine it (if needed). And others can then (roughly) see the search results that you see, for discussion.


My other thot is that it's not essential to (initially) fully understand every (minor) detail (there's zillions). Certainly read the man page. (A last&expert resource is the source code, unlike M$Windows, so it's possible to get to the bottom on anything, with enough digging, although you'd probably want to move on to the next of thousands of topics!)


Enjoy learning (I do!).



p.s. as an answer here, you could search (for each group):

adm linux group
sudo adm unix group permissions

to research what each does/enables. It took me a lot of trying, but I finally found one webpage that explains a lot of them:

https://wiki.debian.org/SystemGroups

And this (advanced info) by searching your entire quote block content! &this

Last edited by GentleThotSeaMonkey; 07-01-2021 at 06:44 PM.
 
Old 07-02-2021, 12:48 AM   #5
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
I was thinking it is that book which contains answers to these questions. Myself I never read that book - difficult to tell for me. What kind of Linux Bible is it? If as it seems from OP questions does not fundamental information about Linux.

Edit: From my side I can promise yet another thread of OP mentioning that book I will report as advertisement.

Last edited by igadoter; 07-02-2021 at 12:52 AM.
 
Old 07-02-2021, 02:06 AM   #6
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Quote:
Originally Posted by DarkBrainsDecoder View Post
How numbers are chosen and what do they mean beside each such element within bracket.
By convention (which actually in some parts predates Linux). From LSB 4.1:
Quote:
The system User IDs from 0 to 99 should be statically allocated by the system, and shall not be created by applications.

The system User IDs from 100 to 499 should be reserved for dynamic allocation by system administrators and post install scripts using useradd.
Also see https://en.wikipedia.org/wiki/User_i...er#Conventions

For details, see this discussion at Red Hat Customer Portal and the documents linked from there. Some of the links may be dead by now, but the information is easy to find, nevertheless.

Debian Wiki has a page describing the purpose of many system groups. And the README from package base-passwd provides additional information.
 
Old 07-05-2021, 12:45 AM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
The only thing I'd add is that most (if not all) Linux distros now start user accts at id = 1000 .
For RHEL this changed for v7; v6 started at 500 see /etc/login.defs.
 
  


Reply

Tags
linux



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 convert unformatted binary files/outputs to netcdf outputs in linux? sarasari Programming 2 03-11-2014 11:30 PM
[SOLVED] curl -K command outputs weird symbols instead of downloading URL from file meridionaljet Linux - Newbie 7 05-16-2011 08:13 PM
[SOLVED] command outputs more than I want lucmove Programming 2 09-09-2009 09:39 AM
The DU command and DF command, Different Outputs??? jamie2teach Linux - Newbie 3 07-10-2009 07:25 AM
Sox recording command outputs blank files anid.iitk Linux - Newbie 2 05-29-2006 01:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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