Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 28th January 2013, 09:20 PM
Super Vegeta's Avatar
Super Vegeta Offline
Registered User
 
Join Date: Jan 2013
Location: London
Age: 22
Posts: 15
linuxopera
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.
Reply With Quote
  #2  
Old 29th January 2013, 12:14 AM
Dies Offline
Registered User
 
Join Date: Oct 2006
Posts: 4,752
linuxchrome
Re: Only root can access devices

Possible SELinux issue?

Have you tried temporarily disabling it to see if that's the case?
Reply With Quote
  #3  
Old 12th February 2013, 02:55 PM
richip Offline
Registered User
 
Join Date: Jul 2006
Posts: 8
linuxfirefox
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.
Reply With Quote
  #4  
Old 12th February 2013, 04:24 PM
Super Vegeta's Avatar
Super Vegeta Offline
Registered User
 
Join Date: Jan 2013
Location: London
Age: 22
Posts: 15
linuxopera
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.
Reply With Quote
Reply

Tags
access, devices, root, systemd, udevd

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't find thread - root account corrupted due to allowing outside root access lightman47 Using Fedora 0 23rd July 2012 06:04 PM
Accessing certain USB devices without root??!! rwgast Hardware & Laptops 1 26th June 2012 01:59 AM
only root can mount devices LinuxHippy Using Fedora 5 25th June 2005 11:10 PM
USB Devices and Floppy Access? electronerdz Hardware & Laptops 2 10th August 2004 03:02 PM


Current GMT-time: 02:05 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat