Results 1 to 6 of 6

Thread: /usr/lib/ chown to root, now cannot access internet

  1. #1
    Join Date
    Oct 2006
    Beans
    57

    /usr/lib/ chown to root, now cannot access internet

    Ubuntu 13.04

    While trying to get my Dell printer to stop throwing a 'cups insecure filter' error, I tried a number of 'fixes' in one thread dedicated to this problem.

    One post ( http://ubuntuforums.org/showthread.p...4#post10586674 ) said the following fixed the problem;

    sudo chown -hRv root /usr/lib
    sudo chgrp -hRv root /usr/lib

    However, I was still not able to print, so I rebooted. Upon reboot, I received a warning that said I might not be able to use Bluetooth.

    Firefox came up, but could not connect to any URLs. I cannot even connect to my router. Chrome doesn't even come up. However, I am able to run Libre, for example, all of which are in /usr/lib

    What do I need to do to rectify this situation?

    Update: Is a reinstall my only choice? I am dual-booted, btw.
    Last edited by skyemoor; January 5th, 2014 at 01:56 PM. Reason: question

  2. #2
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    3,707
    Distro
    Xubuntu 17.04 Zesty Zapus

    Re: /usr/lib/ chown to root, now cannot access internet

    That chgrp command may have given you a problem. All files in /usr/lib should be owned by root, but not all of them belong to the group root. On my system (12.04) the exceptions (some of which may be in subdirectories of /usr/lib) are:
    Code:
    drwxr-xr-x  2 root utempter     4096 okt 14  2011 utempter
    -rwsr-xr-- 1 root messagebus 316824 jun 13  2013 dbus-daemon-launch-helper
    -rwxr-sr-x 1 root mail 13844 jul 30 16:04 camel-lock-helper-1.2
    -rwxr-sr-x 1 root utmp 13996 apr 17  2012 gnome-pty-helper
    -rwxr-sr-x 1 root utmp 13996 mrt 21  2012 gnome-pty-helper
    -rwxr-sr-x 1 root utmp 5364 apr 30  2011 utempter
    Fixing these may (or may not) help.

  3. #3
    Join Date
    Oct 2006
    Beans
    57

    Re: /usr/lib/ chown to root, now cannot access internet

    It is actually a bit worse than that, I am embarrassed to say.

    I tried to quickly change back permissions, but did so in a hastily, unthoughtful manner.

    I ran a chown command but accidently put in 7000 (meant to be 700) and changed all of the owners to 7000.

    Now even sudo won't work. And I can't call up users-admin as "the setuid is not correct"

    Is there any way to extricate myself (my daughter's laptop, actually) from this gordian knot?

  4. #4
    Join Date
    Dec 2013
    Location
    Michigan, US
    Beans
    50
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: /usr/lib/ chown to root, now cannot access internet

    You may have to boot into a live cd or usb and then mount / so you can fix this.

  5. #5
    Join Date
    Oct 2006
    Beans
    57

    Re: /usr/lib/ chown to root, now cannot access internet

    Thanks, devine.steve, my first Live USB gave me a "missing operating system" so I'm trying another one.

    What does "mount /" mean?

  6. #6
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    3,707
    Distro
    Xubuntu 17.04 Zesty Zapus

    Re: /usr/lib/ chown to root, now cannot access internet

    chmod is usually used with numeric codes, chown usually with names. The root user has ID 0, but you only have to change a few owners – no, groups – so I don't see why all files would change ownership to the wrong owner.

    You're getting close to the point where reinstalling is the fastest way out.

    "mount /" means to attach the root file system of your installed Ubuntu to the directory tree of the live system. Just click on the / partition in the file manager in your live session.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •