FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2013
    Location
    Toruń, Poland
    Age
    35
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Only root can access devices

    I have recently replaced Fedora 16 with 18 and now I have a problem with accessing devices.

    USB flash drives and partitions not listed in fstab require a root password to mount, which is actually good and it could stay that way.

    But my real problem is that neither my mouse nor my webcam don't want to work for anyone apart from root. I tried changing permissions in /dev and adding users to groups, but that didn't help.

    When I attach a device, the TTYs get spammed with:
    systemd-udevd[]: Failed to set security context (null) for *file*: File exists
    Where *file*, in case of mouse, is either '/dev/input' or '/dev/input/by-id', and in case of webcam it can also be '/dev/v4l' or '/dev/snd'.

    If it could be related in any way, I changed lxdm.conf to run the X server on vt7 instead of vt1.

  2. #2
    Join Date
    Oct 2006
    Posts
    4,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Only root can access devices

    Possible SELinux issue?

    Have you tried temporarily disabling it to see if that's the case?

  3. #3
    Join Date
    Jul 2006
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Only root can access devices

    I have (possibly) the same problem. In my case, CPU utilization hits >90% and I get hundreds (if not thousands) of messages from `journalctl` similar to below which causes the system to be UI unresponsive:

    Feb 12 07:44:48 wrx.richip.dhs.org systemd-udevd[18404]: Failed to set security context (null) for /dev/input/by-id: File exists
    Feb 12 07:44:48 wrx.richip.dhs.org systemd-udevd[18406]: Failed to set security context (null) for /dev/input: File exists
    Feb 12 07:44:48 wrx.richip.dhs.org systemd-journal[519]: Missed 304072 kernel messages
    Feb 12 07:44:48 wrx.richip.dhs.org systemd-udevd[18406]: Failed to set security context (null) for /dev/input/by-id: File exists
    Feb 12 07:44:48 wrx.richip.dhs.org systemd-udevd[18474]: Failed to set security context (null) for /dev/input: File exists
    Feb 12 07:44:48 wrx.richip.dhs.org systemd-udevd[18405]: Failed to set security context (null) for /dev/input: File exists
    Feb 12 07:44:51 wrx.richip.dhs.org systemd-journal[519]: Missed 164414 kernel messages
    Feb 12 07:44:51 wrx.richip.dhs.org systemd-udevd[18406]: Failed to set security context (null) for /dev/input/by-id: File exists
    Feb 12 07:44:51 wrx.richip.dhs.org systemd-udevd[18473]: Failed to set security context (null) for /dev/input: File exists
    Feb 12 07:44:52 wrx.richip.dhs.org systemd-journal[519]: Missed 40730 kernel messages
    Feb 12 07:44:52 wrx.richip.dhs.org systemd-udevd[18472]: Failed to set security context (null) for /dev/input/by-id: File exists

    Assuming it's a SELinux issue, how would one fix this particular issue? Do SELinux issues get fixed in updates? In this case, I'm not seeing any messages from setroubleshoot.

  4. #4
    Join Date
    Jan 2013
    Location
    Toruń, Poland
    Age
    35
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Only root can access devices

    Setting the SELinux enforcing mode to permissive (via system-config-selinux) fixes this (devices can be accessed, mounts are still passworded), but I guess I won't surprise anyone if I say I don't consider it a permanent solution.

Similar Threads

  1. Replies: 0
    Last Post: 23rd July 2012, 06:04 PM
  2. Replies: 1
    Last Post: 26th June 2012, 01:59 AM
  3. only root can mount devices
    By LinuxHippy in forum Using Fedora
    Replies: 5
    Last Post: 25th June 2005, 11:10 PM
  4. USB Devices and Floppy Access?
    By electronerdz in forum Hardware
    Replies: 2
    Last Post: 10th August 2004, 03:02 PM

Tags for this Thread

Posting Permissions

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