Permissions on /dev

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
Van_Vinkle
Donor
Posts: 201
Joined: 25. Oct 2012, 17:39

Permissions on /dev

Post by Van_Vinkle »

A friend of mine has advised me to test the internet browser Brave. I installed it, and apparently all is right, except for that I cannot launch it from the icon in the desk.

I've tried to initiate from the terminal, but it also fails and gives some lines of information, between which:

Code: Select all

This is frequently caused by incorrect permissions on /dev/shm.  Try 'sudo chmod 1777 /dev/shm' to fix.
I did, and the browser started fine. The problem is that permissions on /dev are owned by root and erased every time the computer starts.

How can I fix it?
User avatar
gapan
Salix Wizard
Posts: 6369
Joined: 6. Jun 2009, 17:40

Re: Permissions on /dev

Post by gapan »

You could always put the

Code: Select all

chmod 1777 /dev/shm
in your /etc/rc.d/rc.local.

Anyway, I would highly suggest to install brave from flathub if you're going to use it. You certainly don't need such a workaround with it.
Image
Image
User avatar
Van_Vinkle
Donor
Posts: 201
Joined: 25. Oct 2012, 17:39

Re: Permissions on /dev

Post by Van_Vinkle »

As usual, your recipe solved the issue. Thanks.
Concerning flathub: my experience with this tool is bad. I've downloaded and installed Brave from sbopkg, and all was fine.
User avatar
gapan
Salix Wizard
Posts: 6369
Joined: 6. Jun 2009, 17:40

Re: Permissions on /dev

Post by gapan »

Van_Vinkle wrote: 28. Sep 2024, 10:46 Concerning flathub: my experience with this tool is bad.
I'd really like to know why.
Image
Image
User avatar
Van_Vinkle
Donor
Posts: 201
Joined: 25. Oct 2012, 17:39

Re: Permissions on /dev

Post by Van_Vinkle »

I'm afraid I cannot give you good information.
It was a time ago, when salix 15 was released and you announced that this tool (flathub) was available. I tried it two or three times and problems arose: it was not possible to install some programs. Sorry for not remmeber which ones.
From then, I use only slapt-get, gslapt, sbopkg and, when I cannot find the Slackware package, deb2tgz.
User avatar
gapan
Salix Wizard
Posts: 6369
Joined: 6. Jun 2009, 17:40

Re: Permissions on /dev

Post by gapan »

Could it have been a browser like chrome or brave? There used to be an issue with those, with our bwrap package having somewhat too strict security, but they should all be working fine now without the user having to do anything special.

There is a vast amount of software available through flathub and having immediate access to it is great. There have been only very few times where the flatpak default permissions were too restrictive and I had to adjust those with flatseal (also installed with flatpak), but that's about it.

In any case, I would really suggest you try flatpak again. If there are any issues, make a new post.
Image
Image
User avatar
Van_Vinkle
Donor
Posts: 201
Joined: 25. Oct 2012, 17:39

Re: Permissions on /dev

Post by Van_Vinkle »

Could it have been a browser like chrome or brave?
I don't recall the exact browser, but it might have been Chrome.

The issue isn't about acquiring more programs, as we can access almost all Linux software through package managers like gslapt, sbopkg, and occasionally the .deb repository.

Testing flatpak, I've installed a chess program, and all was fine.
The challenge lies in the unusual commands required to launch Flatpak. Using /usr/bin/program is indeed a matter of familiarity and convenience.
User avatar
gapan
Salix Wizard
Posts: 6369
Joined: 6. Jun 2009, 17:40

Re: Permissions on /dev

Post by gapan »

Yes, it's weird to start an app from a terminal. But the menu entry should work without problems. And if you find that you often need to launch an app from the terminal, you could always create an alias.
Image
Image
Post Reply