LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 09-20-2004, 04:48 AM   #1
Haiyadragon
Member
 
Registered: Sep 2003
Location: Gorredijk, Netherlands
Distribution: Arch Linux
Posts: 400

Rep: Reputation: 30
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.
 
Old 09-20-2004, 06:31 AM   #2
qwijibow
Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
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.
 
Old 09-20-2004, 07:48 AM   #3
Haiyadragon
Member
 
Registered: Sep 2003
Location: Gorredijk, Netherlands
Distribution: Arch Linux
Posts: 400

Original Poster
Rep: Reputation: 30
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.
 
Old 09-20-2004, 09:17 AM   #4
qwijibow
Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
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.
 
Old 09-20-2004, 09:38 AM   #5
Haiyadragon
Member
 
Registered: Sep 2003
Location: Gorredijk, Netherlands
Distribution: Arch Linux
Posts: 400

Original Poster
Rep: Reputation: 30
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

Last edited by Haiyadragon; 09-20-2004 at 12:11 PM.
 
Old 09-20-2004, 12:41 PM   #6
qwijibow
Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
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"
 
Old 09-20-2004, 01:09 PM   #7
Haiyadragon
Member
 
Registered: Sep 2003
Location: Gorredijk, Netherlands
Distribution: Arch Linux
Posts: 400

Original Poster
Rep: Reputation: 30
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.
 
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Permissions & Ownership Really screwed slacard Other *NIX 1 04-03-2005 12:36 AM
Question about ownership/permissions infornography Linux - Newbie 7 07-28-2004 05:57 AM
Apache/Samba file permissions/ownership seedsca Linux - Networking 0 03-28-2004 09:07 PM
CVS - file permissions and file ownership Osten Linux - Software 3 01-18-2004 04:08 PM
write permissions / ownership bynaar Slackware 15 08-08-2002 04:25 AM


All times are GMT -5. The time now is 11:03 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration