LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-14-2019, 02:07 PM   #1
Jins
LQ Newbie
 
Registered: Jan 2008
Location: Latvia, Riga
Distribution: Slackware current
Posts: 14

Rep: Reputation: 0
Question 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.
 
Old 03-14-2019, 03:43 PM   #2
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 1,660

Rep: Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087
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.
 
Old 03-14-2019, 04:55 PM   #3
Jins
LQ Newbie
 
Registered: Jan 2008
Location: Latvia, Riga
Distribution: Slackware current
Posts: 14

Original Poster
Rep: Reputation: 0
Red face 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.
 
Old 03-15-2019, 09:50 AM   #4
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,498

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 03-17-2019, 08:27 AM   #5
Jins
LQ Newbie
 
Registered: Jan 2008
Location: Latvia, Riga
Distribution: Slackware current
Posts: 14

Original Poster
Rep: Reputation: 0
Orbea thanks for that script
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
-bash: /dev/null: Permission denied and growing size karlochacon Linux - Newbie 3 06-11-2010 02:28 PM
"bash: /dev/null: Permission denied" on Ubuntu Login... sancho Ubuntu 10 10-07-2009 11:38 PM
What is meant by " file > /dev/null 2>&1 </dev/null " attockonian Linux - Newbie 5 06-30-2006 10:51 PM
1> /dev/null 2> /dev/null elyk Programming 9 09-20-2004 05:44 PM
1>/dev/null 2>/dev/null chr15t0 Linux - General 2 07-19-2002 08:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration