[SOLVED] root has internet access but use does not
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
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
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.