/srv/irclogs.ubuntu.com/2018/12/09/#ubuntu-server.txt

masonSo, I see Nehalem and Nehalem-IBRS cooked into qemu-2.11+dfsg/target/i386/cpu.c.02:13
masonI wonder if my host is too old to have CPUID_7_0_EDX_SPEC_CTRL or something. I'm not 100% sure how that works as yet.02:16
masonI don't know. I migrate the thing over, and  Nehalem-IBRS no longer shows up in the list of possible models, but it does show up as the active CPU model. Weird.02:20
masonOh well.02:20
cpaelzermason: those are libvirt specific types09:25
cpaelzermason: for qemu that is some-base-cpu+feature-bits09:26
cpaelzerlibvirt does host probing for capabilities, so maybe due to that it differs09:26
cpaelzerwell your question was so many hours ago, did you find anything already?09:26
masonOoh, here's an opportunity to use the memo-bot!13:53
=== RoyK^ is now known as RoyK
=== Xbert is now known as Guest41621
kinghatwhy am i now getting "kinghat is not in the sudoers file.  This incident will be reported." on my server?22:47
kinghatwas there a recent update that changed something? never seen this before except for on fedora.22:47
ikoniakinghat: you have changed either the sudoers file, or you're users group membership22:56
kinghathmm23:01
kinghati think i added the user to the group `web-content` for apache, would that have done it?23:03
kinghati thought the user could be apart of multiple groups?23:03
ikoniakinghat: I suspect you've added the user to the group and at the same time removed it from the admin / wheel group23:04
ikoniayes, a user can be a member of many groups23:04
ikoniatype "id" against your user23:04
kinghatuid=1000(kinghat) gid=1000(kinghat) groups=1000(kinghat),1001(web-content)23:04
kinghatya i was just going looking for the commands to get a table of users and groups on the system.23:04
kinghatikonia: so you are saying i need to get root, then add my user to `sudo` user group?23:09
ikoniawhat groups is your user in ?23:09
kinghatbecause i cant add my account via sudo atm because its not part of sudo.23:09
kinghati posted it above i thought.23:10
ikoniaoh yes23:10
ikoniaso boot into single user mode and add your user to the sudo group23:10
kinghatsingle user mode = root?23:10
ikoniawhat ?23:11
kinghatwhat is single user mode?23:11
ikoniait boots the user into just that - single user mode, rather than the multi-user mode and permissions system you currently have23:11
ikoniaor you can just become root if you've set a root password and know it23:12
kinghati feel like ive logged into root using the same password as the initial account before w/o having set an actual root password.23:13
ikoniathen su -23:14
kinghatya i just did that and it says su: Authentication failure.23:14
ikoniathen you don't know the password23:14
kinghatif anything i made it the same as the initial account. actually i figured thats what the installer did by default.23:15
ikonianope23:17
ikoniait does what you tell it to do23:17
kinghatso i have to give root a password before i can use root?23:18
ikoniayes23:18
ikonia(the correct model is to not set a root password and have a sane sudo setup)23:18
kinghatsure but how do i get my only user back to sudo then?23:19
ikoniaboot into single user mode23:20
kinghatcan that be done via ssh?23:20
ikoniapossibly, but it normally requires console access as single user mode is not on the network23:20
kinghatwhy would adding this user to another group take it out of another group?23:22
ikoniadepends how you added it23:22
kinghatsudo adduser username groupname23:22
ikoniakinghat: that's creating a new user23:22
ikoniathat's not adding a user to a group23:22
kinghatsorry it was this: `usermod -G web-content alice`23:23
kinghatbut `kinghat` over alice.23:23
kinghatand i also added apache to that group.23:24
ikoniaso that's just told the system to put the user kinghat in the group web-content only23:24
ikoniathat's not adding a user to a group, that's setting a user to that single group23:24
kinghatwell that explains it23:24
ikoniaI suggest you read the man page of commands if you don't know how to use them23:24
kinghathttps://wiki.apache.org/httpd/FileSystemPermissions23:25
ikonia?23:25
ikoniawhat has that got to do with anything ?23:25
kinghati feel like there should be a warning or something. are you sure you want to remove this user from all groups? especially the sudo group.23:25
ikoniano23:25
ikoniayou should read the man page of commands you don't know about, more so if executing them with root access23:26
ikoniathe man page is really clear on the syntax23:26
kinghatwell now i have to figure out how to get single user w/o console access.23:26
kinghatwhat about giving root a password then doing what i need and then removing the password from root?23:27
ikoniaI suspect that will be exceptionally hard23:27
ikoniahow do you plan to set a root password without having root access ?23:27
kinghatyou mean w/o being apart of the sudo group? ya i was just realizing that.23:27
kinghatfak23:28
ikoniaplease control the languge23:28
kinghatso basically i cant really do anything w/o having physical access?23:29
ikoniayou'll find it exceptionally hard23:29
ikoniaand high risk23:29
kinghatapparently im high risk.23:30
ikoniawhat ?23:30
kinghatim the risk.23:31
ikoniaclearly23:31
OerHeksno direct access makes it just a little complicated23:31
kinghatyou have to edit grub?23:35
ikoniathat is one of the high risk ways, however if you did it right and it boots into single user mode, how will you interact with it ?23:36
kinghatno im asking thats how you get into single user mode?23:38
ikoniaright, there are a few options, but what's the plan if you did get it into single userm ode23:39
kinghatyou said add my user to `sudo`?23:39
ikoniahow will you do that remote23:39
kinghati dont have physical access atm but i will have to get physical access apparently so.23:41
ikoniaso I'd deal with that when you get access as the access you get / how you get it will guide you the best way to get access to the root user23:42
kinghati mean i have to go there to get physical keyboard/monitor console access. its going to happen once i figure out how its done before i go.23:44
kinghataka im going as soon as i figure out how to get single user mode.23:45
kinghatso adding a user to another group and not ONLY this group is: `sudo usermod -a -G sudo username`?23:52

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!