LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-23-2020, 12:00 AM   #16
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
check your users' groups


try this:
Code:
grep odin /etc/group
This will list the groups your user belongs to. When I enter this command, I get the following output:
Code:
grep papa /etc/group

lp:x:7:lp,papa,mama
floppy:x:11:papa,mama
audio:x:17:root,pulse,papa,mama
video:x:18:sddm,papa,mama
cdrom:x:19:papa,mama
input:x:71:papa,mama
plugdev:x:83:papa,mama
power:x:84:papa,mama
netdev:x:86:papa,mama
scanner:x:93:papa,mama
make sure odin is listed in the netdev group, instead of papa,mama (the only users on my system).
 
Old 01-23-2020, 01:16 PM   #17
wdarledge
Member
 
Registered: Nov 2017
Location: Dallas, TX (North Dallas)
Distribution: Slackware 14.2
Posts: 98

Original Poster
Blog Entries: 8

Rep: Reputation: Disabled
add user groups to users

slackitb,

apparently, then, odin belongs to "no user groups". none!

did i use "adduser" wrong my 1st day after setup?

i looked for "man adduser" and "adduser -h" but, to no avail. do you have a suggestion for me?

thanks,
david
 
Old 01-23-2020, 03:11 PM   #18
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
Quote:
Originally Posted by wdarledge View Post
did i use "adduser" wrong my 1st day after setup?
Yes: You created a user for remote shell access only.

When you run adduser, the first step prompts for username; the second for userid, the third for user's initial group, and the fourth is for additional groups.

There isn't a man page or a -h, because the instructions are built in to it. The fourth step included these instructions:

Quote:
Users can belong to additional UNIX groups on the system.
For local users using graphical desktop login managers such
as XDM/KDM, users may need to be members of additional groups
to access the full functionality of removable media devices.

* Security implications *
Please be aware that by adding users to additional groups may
potentially give access to the removable media of other users.

If you are creating a new user for remote shell access only,
users do not need to belong to any additional groups as standard,
so you may press ENTER at the next prompt.

Press ENTER to continue without adding any additional groups
Or press the UP arrow key to add/select/edit additional groups
So, your only mistake during adduser, was to forget to press the UP arrow key to add additional groups. When you do, the groups a standard graphical desktop user needs to belong in are already there. So on the fourth step, it is UP arrow, then enter.

Now you know for the next time you create a standard graphical desktop user.

However, for this time, all you have to do to add your user, odin, to these groups is as follows:
1. Login as root.
2. Edit (with emacs, vi, or whichever text editor you use) the file /etc/group
3. make odin the last word on the lines that start with: audio, cdrom, floppy, input, lp, netev, plugdev, power, scanner, video.

Thus, change the line that looks like
Code:
netdev:x:86:
to look like
Code:
netdev:x:86:odin
Do the same for the other lines I mentioned.

4. Save /etc/group.
5. Logout as root.


Odin should now belong to all these necessary groups. Login and Enjoy Slackware.

Alternatively, you can delete your user with userdel, and rerun the adduser program, hitting the up-arrow before pressing enter on the fourth step.

Either way gets Odin to Asgard.
 
1 members found this post helpful.
Old 01-23-2020, 03:24 PM   #19
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
I forgot to say, that when editing those lines in /etc/group, if there is already a user at the end of the line, such as the user pulse, or the user root, leave those users there, and add odin to the end, but use a comma between the last user, and odin, without any spaces, like my line for the audio group:
Code:
audio:x:17:root,pulse,papa,mama
If I was going to add odin to my audio group, the line would look like
Code:
audio:x:17:root,pulse,papa,mama,odin
 
Old 01-23-2020, 03:24 PM   #20
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Quote:
Originally Posted by slac-in-the-box View Post
Yes: You created a user for remote shell access only.

Excellent! In my post (deleted) above I was suspecting that the OP had not created a user or had created it incorrectly, but I thought I might be off base a bit and didn't want to confuse the OP, so deleted my post.


Good on you, slac-in-the box!
 
1 members found this post helpful.
Old 01-23-2020, 04:58 PM   #21
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
Thanks. Helping at LQ is natural, since I receive so much help at LQ, and it's a great way to procrastinate: I should be cleaning my room.
 
2 members found this post helpful.
Old 01-24-2020, 10:42 AM   #22
wdarledge
Member
 
Registered: Nov 2017
Location: Dallas, TX (North Dallas)
Distribution: Slackware 14.2
Posts: 98

Original Poster
Blog Entries: 8

Rep: Reputation: Disabled
no netdev, cdrom, plugdev, power, video in /etc/group

slac,

THANK YOU~!!!

I knew i must have caused this somehow. I have included a snapshot of my /etc/group as it has no audio, cdrom, floppy (don't have one), netdev, plugdev, power, scannet or video. this must be because you are using a different distro or a different kernel. I added odin to everything but root. In the snapshot please see that that includes bin (1), daemon (2), sys (3) and admn (4). i understand these calls are in 0 highest to 9 lowest priority much like dma and irq's used to be set in msdos 6.22. if i should not give such access to odin, pls tell me which ones to take off. notice however, tho, that if i take sys, admn bin, daemon out of odin's access, then i will be left with no access to anything in particular of interest and probably not network access either, which i find of particular interest that netdev is not in this list?

thanks for your timely and helpful reply. I will add odin now and see what happens. thanks again.
odin
Attached Thumbnails
Click image for larger version

Name:	snapshot2.jpg
Views:	13
Size:	173.0 KB
ID:	32388  
 
Old 01-24-2020, 11:53 PM   #23
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
scroll down

Quote:
Originally Posted by wdarledge View Post
I have included a snapshot of my /etc/group as it has no audio, cdrom, floppy (don't have one), netdev, plugdev, power, scannet or video.
I believe the groups are there, but you need to scroll down to see them all !

Ah... emacs: good choice: 35 years of user contributed keyboard shortcuts: thousands of them! Here's a few shortcuts to use on this file:

Emacs opens up with the screen divided into two buffers: the first is the file you requested to view, and the second is the emacs welcome page, with some links to tutorials.

One of the first things to do is make the file you requested to view take up the full screen so you don't have to see the welcome page anymore:

hold control-key down, and press x at same time, then let go
you should see it say C-x- in bottom row, which is it where it is showing you abbreviations for the keyboard shortcut you are currently typing
now press the number 1: this makes whichever window (emacs calls it a buffer) the cursor is in take up the entire screen.

you can move the cursor around with the arrow keys.

Once you find the groups down below, you can type and delete like a regular word processor, to add odin to the end of the relevant lines.

When you are through, to save it, do this:
with the control key held down, type xs then let go of control. This is saying "execute save" and it saves your file.

Once saved, you can similarly quit:
with the control key held down, type xc then let go of control. This is telling it to "execute close" and it closes emacs.
 
1 members found this post helpful.
Old 01-25-2020, 07:25 AM   #24
wdarledge
Member
 
Registered: Nov 2017
Location: Dallas, TX (North Dallas)
Distribution: Slackware 14.2
Posts: 98

Original Poster
Blog Entries: 8

Rep: Reputation: Disabled
slac
sorry... on a cell
yup... emacs is 'the bomb'.... boom~!!
found that there is no ctl-c or ctl-v in terminal nor in emacs (I think)... no ctl-v either... I thought I was so cool when I lrnd those...
so, the ctl-c is for close now... I understand ctl-u & ctl-w are now the replc for ctl-c & ctl-x ...! 《>
sort of ... but still no paste I can find... will look further into the tut...
iim, do you like Jack-in-the-box? I have been eating bfast Jack's for ~43yrs :}♡!!!
odinbruderiii
 
Old 01-31-2020, 10:36 PM   #25
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
I live off of slacaroni-and-cheese Happy to make Slackware a drive-thru experience.
 
  


Reply

Tags
internet connection, networking, slackware 14.2



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] Old computer can access internet but new computer has not learnt settings from the modem grumpyskeptic Linux - Networking 38 08-24-2021 12:48 AM
[SOLVED] Disable remote root access but allow local root access-- possible? bskrakes Linux - Security 4 02-21-2019 04:02 PM
[SOLVED] OEL5.4 OS, eth0 has private IP, eth0:0 has routable IP, internet access don't work Hiroshi Linux - Networking 7 06-02-2010 12:49 PM
virtualbox: XP has internet but Vista does not Jayla Linux - Newbie 2 06-06-2008 04:30 PM
When i connect on the internet I want root not to access the internet !! skouket Linux - Security 12 07-10-2005 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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