You are not logged in.

#1 2015-03-06 20:55:08

mascip
Member
Registered: 2015-02-10
Posts: 29

netctl suddenly not working anymore, maybe because of user permission

Hi all,

this is for a laptop where I installed Archwiki yesterday. Internet was working until a little while ago. While I was installing Docker, it suddenly stopped being able to install, and I realized that the network was down. I haven't been able to put it back up.
Since then, every time I do anything that requires root privilege, it asks me for the password of the user "root", instead of asking me for the password of the user "user". And when I click on the scroll down menu, it only proposes me the user "root", not the user "user".

Here are some info relevant to user permissions:

$ sudo cat /etc/group | grep user
user:x:1000:

I am surprised to not have more groups where user is allowed...

$ sudo cat /etc/passwd
[sudo] password for user: 
user:x:1000:1000::/home/user:/bin/bash
git:x:619:619:git daemon user:/:/bin/bash

And a few tests for the network:

$ netctl list
  wlp4s0-VM581389-5G
  wlp4s0-TALKTALK-BA8298

$ netctl-auto list
$ netctl-auto current
    # before I rebooted just now, these both gave me a bug with ctlrl_ifname ... you don't have the necessary permission

$ systemctl | grep netctl
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
  netctl-auto@wlp4s0.service                                                                                              loaded active exited    Automatic wireless network connection using netctl profiles
* netctl@wlp4s0\x2dTALKTALK\x2dBA8298.service                                                                             loaded failed failed    Networking for netctl profile wlp4s0-TALKTALK-BA8298
* netctl@wlp4s0\x2dVM581389\x2d5G.service                                                                                 loaded failed failed    Networking for netctl profile wlp4s0-VM581389-5G
  system-netctl.slice                                                                                                     loaded active active    system-netctl.slice
  system-netctl\x2dauto.slice                                                                                             loaded active active    system-netctl\x2dauto.slice

A few things I have done recently are:
- the script which was installing docker recently (it's an Ansible Playbook) has this line at the end:

sudo gpasswd -a user docker

which might have messed things up. I don't think that this command was run, but I might well be wrong.
- installed some things (pacaur, libreoffice, openssh)
- taken the HDD out and then put it back in, as I got a weird bug at reboot: PXE-E61: Media test failure, check cable (after re-plugging the HDD, it booted normally)
- created an alias which got evaled in a shell:

alias key="eval $(keychain --eval --agents ssh -Q --quiet id_ecdsa)"

I don't know what to try or how to investigate further, any idea?

Offline

#2 2015-03-07 09:23:41

mascip
Member
Registered: 2015-02-10
Posts: 29

Re: netctl suddenly not working anymore, maybe because of user permission

I created a new user called "test1" to try and understand. And I got this error:

$ netctl-auto list
Failed to connect to non-global ctrl_iframe: wlp4s0 error: Permission denied

The /etc/passwd and /etc/group are similar for this user than for the previous one: it doesn't belong to any group at all.

I don't know what more to do to investigate... any suggestion of where to look?

Last edited by mascip (2015-03-07 09:23:51)

Offline

Board footer

Powered by FluxBB