sudo chmod /dev/* screwup

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read this

sudo chmod /dev/* screwup

Postby Ken_g6 on Sun Jun 03, 2012 4:05 pm

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?
Ken_g6
Level 1
Level 1
 
Posts: 18
Joined: Fri May 11, 2012 12:43 pm

Linux Mint is funded by ads and donations.
 

Re: sudo chmod /dev/* screwup

Postby xenopeek on Mon Jun 04, 2012 5:40 am

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.)
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14552
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands


Return to Other Topics

Who is online

Users browsing this forum: No registered users and 2 guests