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 23rd June 2010, 02:50 PM
TonyPH12345 Offline
Registered User
 
Join Date: Jun 2010
Posts: 14
linuxsafari
/dev/shm wrong permissions. How do I make fix permanent?

Hi, folks.

I recently compile Kernel 2.6.34 (to fix the AMD PowerNow issue with 1055T processor, and it worked!)

However, the device

/dev/shm

starts up at boot as Read-Only.

Google Chrome requires this device to be user-writable, or it won't start up. Presumably, the stock kernels (and all that are updated) have it set to User-Write. I have not noticed any other ill effects with the permission being read-only.

If I do:

sudo chmod a+w /dev/shm

Everything will work from there, but each time I reboot, I have to do that.

How do I make that permission-change permanent?

Last edited by TonyPH12345; 23rd June 2010 at 02:52 PM.
Reply With Quote
  #2  
Old 23rd June 2010, 04:09 PM
parish Offline
Registered User
 
Join Date: Feb 2005
Posts: 594
linuxfedorafirefox
Re: /dev/shm wrong permissions. How do I make fix permanent?

Try this; it used to work for the sound devices so by extension I'm assuming it will work here as well...

Create a file: /etc/security/console.perms.d/99-shm.perms that contains:

Code:
# device classes -- these are shell-style globs
<shm>=/dev/shm /dev/shm/*

# permission definitions
<console>  0666 <shm>      0600 root
...then log out and back in. You should be good to go.


Edited to add that you may actually have to reboot in order for the console.perms.d to be re-sourced. There is probably a less drastic way to reinitialize them, but I don't know how myself...

Last edited by parish; 23rd June 2010 at 04:14 PM.
Reply With Quote
  #3  
Old 23rd June 2010, 06:22 PM
TonyPH12345 Offline
Registered User
 
Join Date: Jun 2010
Posts: 14
linuxsafari
Re: /dev/shm wrong permissions. How do I make fix permanent?

Parish: No dice.
Reply With Quote
  #4  
Old 23rd June 2010, 07:07 PM
bodhi.zazen's Avatar
bodhi.zazen Offline
Registered User
 
Join Date: Jul 2006
Location: Montana
Posts: 731
windows_xp_2003firefox
Re: /dev/shm wrong permissions. How do I make fix permanent?

I would add

Code:
chmod a+w /dev/shm
to /etc/rc.local
__________________
If it is not broken, tweak it... If you break Fedora you get to keep both pieces :p
Reply With Quote
  #5  
Old 23rd June 2010, 08:54 PM
TonyPH12345 Offline
Registered User
 
Join Date: Jun 2010
Posts: 14
linuxsafari
Re: /dev/shm wrong permissions. How do I make fix permanent?

bodhi: I was looking for something MUCH more complicated! That, of course, worked like a charm. Thanks for that!

If anyone could tell me what I munged in the compile that started this, I'd be open to commentary!
Reply With Quote
  #6  
Old 23rd June 2010, 09:24 PM
parish Offline
Registered User
 
Join Date: Feb 2005
Posts: 594
linuxfedorafirefox
Re: /dev/shm wrong permissions. How do I make fix permanent?

Quote:
Originally Posted by TonyPH12345 View Post
Parish: No dice.
Apologies for the red herring!

I just confirmed that this no longer works for my sound devices either. Very puzzling as I've been doing this since the dawn of the fedora age and it is in fact the 'correct' way to set device permissions.

Now I'm curious as to what has changed to cause this. I'll post back when/if I figure it out...
Reply With Quote
  #7  
Old 29th January 2012, 05:47 AM
lwfitz Offline
Registered User
 
Join Date: Jan 2012
Location: Monrovia, CA
Posts: 1
linuxiceweasel
Re: /dev/shm wrong permissions. How do I make fix permanent?

Quote:
Originally Posted by bodhi.zazen View Post
I would add

Code:
chmod a+w /dev/shm
to /etc/rc.local
Worked perfect on Crunchbang 10.......... Ive been trying for the last 3 hours to figure this out! Thank you so much!
Reply With Quote
  #8  
Old 21st January 2013, 01:58 AM
hazyl Offline
Registered User
 
Join Date: Jan 2013
Location: Canada
Posts: 1
linuxfedorafirefox
Re: /dev/shm wrong permissions. How do I make fix permanent?

I have been having problems with the permissions to the audio and video devices on my Fedora Core 6 (FC6) system. In this case, udev creates the devices at boot time and sets the permissions. However, these were set to "0600 root" and modifying the udev rules did not fix it..

The modifications suggested by parish for /etc/security/console.perms.d and applied to the audio and the video devices, but using "0600 root.users" permissions, and along with the right /etc/modprobe.conf fixed the problem once and for all.

Thanks for the suggestion.

Last edited by hazyl; 21st January 2013 at 02:04 AM.
Reply With Quote
Reply

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
[SOLVED] persistent DNS cache - howto make it permanent? tripleninez Using Fedora 8 10th March 2010 07:56 PM
How to make a symbolic link permanent royeo Using Fedora 2 6th October 2006 06:04 PM
How do I make static routes permanent? cquisenb Servers & Networking 4 23rd September 2006 03:34 PM
How to make duplex settings permanent? rgates Servers & Networking 1 8th March 2006 07:06 AM
Make a >mount --bind permanent? Church13 Servers & Networking 4 21st March 2005 04:09 PM


Current GMT-time: 02:13 (Wednesday, 19-06-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