LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware current bash permission denied /dev/null (https://www.linuxquestions.org/questions/slackware-14/slackware-current-bash-permission-denied-dev-null-4175650183/)

Jins 03-14-2019 02:07 PM

Slackware current bash permission denied /dev/null
 
After install fresh Slackware current and try to login with simple user get error -bash /dev/null permission denied. Googled around and tried different approaches including remove /dev/null and make again. Also added ,dev option in fstab on every drive same result.
When did simple chmoding was able to get X but impossible to get any cli client window.
When switched to f1 window without X it showed not enough ppty and error 32.
when tried ls -ls /dev/null got error like wrong v0 and v3 wrong numbers or something like that.
And once when as user tried startx it spited out something like xinit line 232 error.

End the most odd thing that when I build live Slackware iso with script from same fresh current source none of that happened. :confused::confused:

volkerdi 03-14-2019 03:43 PM

I'm thinking permissions issue, like / is 700 (instead of 755), or /tmp isn't writable. No idea how it might have gotten that way, though.

Jins 03-14-2019 04:55 PM

Found the culprit
 
Patrick thank You for response and hard work on excellent distro.
The culprit was 99-joystick.rules file which I made for SDL2 to allow playstation2 emulator see my game pad without that before SDL1 didn't have any probs but SDL2 didn't allowed to use it and I found somewhere deep in sdl forums to make rules file for special device.
here is file content.

#PS2
#
KERNEL=="event*", ATTRS{idVendor}=="0810", ATTRS{idProduct}=="0003", MODE:="0644"

And that somehow mess with /dev/null permissions now.

I hope there is some other way to allow SDL2 to not block USB joysticks.

orbea 03-15-2019 09:50 AM

My 99-joystick.rules looks like this and PCSX2 works fine here.

Code:

KERNEL=="event[0-9]*", ENV{ID_BUS}=="?*", ENV{ID_INPUT_JOYSTICK}=="?*", GROUP="games", MODE="0660"
KERNEL=="js[0-9]*", ENV{ID_BUS}=="?*", ENV{ID_INPUT_JOYSTICK}=="?*", GROUP="games", MODE="0664"

I thought it was part of Slackware, but that doesn't seem true now that I look closer and I don't recall where I got it.

Jins 03-17-2019 08:27 AM

Orbea thanks for that script :)


All times are GMT -5. The time now is 01:01 PM.