sudo chmod /dev/* screwup

Archived topics about LMDE 1 and LMDE 2
Locked
Ken_g6

sudo chmod /dev/* screwup

Post by Ken_g6 »

So, I was trying to get this dvb device working. One suggestion was to change the permissions of everything in /dev/dvb/adapter0. I'd already tried sudo chmod a+r * and that did nothing. So later I tried "sudo chmod a+w *". Then I realized I'd run this command, though not the others, in /dev, not /dev/dvb/adapter0! :oops:

So, how can I fix the permissions in /dev back to the way they were? What were they to begin with? Or, at least, what are the essential devices to turn write permission off on?

Edit: I should mention that I'm on the XFCE edition of LMDE.

Edit2: Well, a reboot did wonders. The following are the only non-links that currently have global write permission in /dev are:

Code: Select all

crw-rw-rw-  1 root root        1,   7 Jun  3 16:36 full
srw-rw-rw-  1 root root             0 Jun  3 16:37 log
crw-rw-rw-  1 root root        1,   3 Jun  3 16:36 null
crw-rw-rw-  1 root root      195,   0 Jun  3 16:37 nvidia0
crw-rw-rw-  1 root root      195, 255 Jun  3 16:37 nvidiactl
crw-rw-rw-  1 root root        5,   2 Jun  3 17:14 ptmx
crw-rw-rw-  1 root root        1,   8 Jun  3 16:36 random
crw-rw-rw-  1 root root        5,   0 Jun  3 16:38 tty
crw-rw-rw-  1 root root        1,   9 Jun  3 16:36 urandom
crw-rw-rw-  1 root root        1,   5 Jun  3 16:36 zero
Any of those that shouldn't?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29610
Joined: Wed Jul 06, 2011 3:58 am

Re: sudo chmod /dev/* screwup

Post by xenopeek »

I don't have the nvidia0 or nvidiactl files, but the others have the same permissions on my LMDE Xfce. (And there are no other files with rw-rw-rw permission.)
Image
Locked

Return to “LMDE Archive”