LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   File permissions and ownership all screwed up (https://www.linuxquestions.org/questions/linux-general-1/file-permissions-and-ownership-all-screwed-up-232833/)

Haiyadragon 09-20-2004 04:48 AM

File permissions and ownership all screwed up
 
Alot of my device files (/dev) have my main user as owner (instead of root) and permissions are set to everything for the owner, nothing for group or other people. I noticed this when my dad's account couldn't acces my sound device. I have never done a chown or whatever on that folder, how is this possible? Did slackware set those permissions?

My questions is: is there a way to set default permissions and ownership in /dev, because setting them all by hand is going to take forever. Any help is appreciated.

qwijibow 09-20-2004 06:31 AM

read "man chmod" and "man chown"

somthing like
Code:

chown root -R /dev
chmod 777 -R /dev/

should return your machine to a working order.

Haiyadragon 09-20-2004 07:48 AM

I understand chown and chmod and I really don't want to give everyone full permission. But I guess I can do
Code:

chown root -R /dev
chmod 760 -R /dev/

I just don't understand how those permissions got all messed up.

qwijibow 09-20-2004 09:17 AM

that wont work....

chmod 760 means give root full access... give others in the same groupe as root read / write access and give every1 else no access !

and remember,,,, a user need execute permissions on a folder to enter it.

Haiyadragon 09-20-2004 09:38 AM

Well some devices have a different group (like audio or video), so 760 will give users in those groups read and write right?

edit. I have to do 777 or nobody (except root) has audio. Can anybody tell me how to set it up so i don't have to give everybody full permissions please?

edit. Ok, if I don't 777 the whole damn /dev nobody can't do anything except for root, this sucks

qwijibow 09-20-2004 12:41 PM

Quote:

edit. Ok, if I don't 777 the whole damn /dev nobody can't do anything except for root, this sucks
nobody cant do anything........ ?

do you mean "nobody CAN to anything"... or are we talking about the group nobody not beinng able to "do anything"

Haiyadragon 09-20-2004 01:09 PM

I mean, only root can still login. Other users can't even do that. After many hours of googling i've found out about MAKEDEV in /dev that can remake the devices. But it doesn't remake all of them so I still have to chmod 777 for users to be able to even login.


All times are GMT -5. The time now is 06:27 AM.