Page 1 of 1

sudo chmod /dev/* screwup

Posted: Sun Jun 03, 2012 4:05 pm
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?

Re: sudo chmod /dev/* screwup

Posted: Mon Jun 04, 2012 5:40 am
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.)