[solved] changing /dev/shm permissions on boot

Questions about Grub, the liveCD and the installer
Forum rules
Before you post please read this

[solved] changing /dev/shm permissions on boot

Postby Riko on Fri Nov 29, 2013 2:11 pm

-- sorry if this is a double post, but I can't find the one I just wrote ... maybe hit cancel?! ---

Where do I define which permissions devices created via udev are getting? I need to change the permissions of /dev/shm on boot so that the profile-sync-daemon is working.

Of course I could work-around that by explicitly mounting /dev/shm via /etc/fstab, but since it is not in there to begin this, I don't think it belongs there. I could also put a chmod into rc.local, but that is only executed after the profile-sync-daemon is started.

I didn't find anything in /etc/udev or /lib/udev ...

Thanks and cheers!

Edit: updated subject after understanding the root cause.
Last edited by Riko on Sat Nov 30, 2013 4:14 pm, edited 1 time in total.
Dell Latitude E6230 with Intel i7, 8GB RAM, 500 GB SSD
dual boot: LMDE and Antergos both running gnome-shell
surviving in a Windows world with VMware WS 10 and Crossover 13
Riko
Level 3
Level 3
 
Posts: 130
Joined: Fri Dec 09, 2011 9:10 am
Location: Hamburg, Germany

Linux Mint is funded by ads and donations.
 

Re: change udev permissions on boot

Postby GeneBenson on Fri Nov 29, 2013 7:37 pm

Hi Riko,

Although I've never done this myself I know a good tutorial that may help. It's written for Arch Linux but is general enough that you should be able to use it in LMDE. You can find the tutorial here.

Hope this helps. :D
GeneBenson
Level 3
Level 3
 
Posts: 182
Joined: Fri Sep 17, 2010 9:55 pm

Re: change udev permissions on boot

Postby Riko on Sat Nov 30, 2013 12:09 pm

Thanks, Gene, for the link. That looks a bit more complicated than I had hoped for but oh well, you'll always learn. I need to find some time to go through that and will post back and the final result.

Cheers, Riko
Dell Latitude E6230 with Intel i7, 8GB RAM, 500 GB SSD
dual boot: LMDE and Antergos both running gnome-shell
surviving in a Windows world with VMware WS 10 and Crossover 13
Riko
Level 3
Level 3
 
Posts: 130
Joined: Fri Dec 09, 2011 9:10 am
Location: Hamburg, Germany

Re: change udev permissions on boot

Postby Riko on Sat Nov 30, 2013 4:12 pm

hmm, seems like /dev/shm is not actually created by udev but via

Code: Select all
/lib/init/mount-functions.sh
and
Code: Select all
/lib/init/tmpfs.sh


If I understood those scripts correctly, they first check if an entry for /dev/shm exists in /etc/fstab. If not, the device is created with hard-coded permissions 755. So I guess, putting an entry into /etc/fstab is actually the correct way to do it.

Since it's not an udev issue, I'll change the Subject entry.

Cheers, Riko
Dell Latitude E6230 with Intel i7, 8GB RAM, 500 GB SSD
dual boot: LMDE and Antergos both running gnome-shell
surviving in a Windows world with VMware WS 10 and Crossover 13
Riko
Level 3
Level 3
 
Posts: 130
Joined: Fri Dec 09, 2011 9:10 am
Location: Hamburg, Germany


Return to Installation & Boot

Who is online

Users browsing this forum: No registered users and 1 guest