Unix Technical Forum

who owns files in /dev

This is a discussion on who owns files in /dev within the Linux Operating System forums, part of the Unix Operating Systems category; --> Hey running RH9 Whenever I log on as another user on my computer, I always get the error message ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 08:33 AM
James Leddy
 
Posts: n/a
Default who owns files in /dev

Hey

running RH9

Whenever I log on as another user on my computer, I always get the error
message that I do not have permission to access /dev/dsp. Then I
discovered that this is because another user and the root group own this
device, and the permissions on it are rw-------.

Why are some files in /dev not owned by root? How can I fix this problem so
that when I log on with a different user on the x system I get sound?

Thanks

James Leddy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 08:33 AM
Paul Lutus
 
Posts: n/a
Default Re: who owns files in /dev

James Leddy wrote:

> Hey
>
> running RH9
>
> Whenever I log on as another user on my computer,


What other user did you have in mind?

> I always get the error
> message that I do not have permission to access /dev/dsp.


Post the original message, not your prose account.

> Then I
> discovered that this is because another user and the root group own this
> device, and the permissions on it are rw-------.


No, that is not the reason. Post the long directory listing for /dev/dsp to
start.

>
> Why are some files in /dev not owned by root? How can I fix this problem
> so that when I log on with a different user on the x system I get sound?


Tell us exactly what you mean by "different user". A user other than root?
Two non-root users logged on at once? What?

--
Paul Lutus
http://www.arachnoid.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 08:33 AM
Tim Wunder
 
Posts: n/a
Default Re: who owns files in /dev

On 10/21/2003 12:58 PM, I believe that James Leddy wrote:

> Hey
>
> running RH9
>
> Whenever I log on as another user on my computer, I always get the error
> message that I do not have permission to access /dev/dsp. Then I
> discovered that this is because another user and the root group own this
> device, and the permissions on it are rw-------.
>
> Why are some files in /dev not owned by root? How can I fix this problem so
> that when I log on with a different user on the x system I get sound?
>
> Thanks
>
> James Leddy


Check the file /etc/security/console.perms
'man console.perms' should help...

HTH,
Tim

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 08:34 AM
Raqueeb Hassan
 
Posts: n/a
Default Re: who owns files in /dev

I had the similar problem. So, little googling .... and ...

Leonard Evens wrote:

See /etc/security/console.perms. This is a new feature whereby
certain devices are owned by the user at the console but revert
to root ownership when that user logs out. It is a convenient
way of dealing with floppy drives, CD drives, audio devices,
modems, etc., which may require that the user have appropriate
permissions while logged in. You can of course inactivate
that feature by editing that file (and probably otherwise
since it is probably controlled by a program). But I think
the default assumption is that each machine will have a console
with a user sitting at it needing those devices.

John Thompson wrote:

console.perms does indeed explain why this is happening.
But if I read this correctly, the device ownerships should
revert to the "default" ownerships as defined
in /etc/security/console.perms when the current console user
logs out and then be changed again to reflect a new console
user when they log in. But this doesn't seem to be
happening. Eg, my son used the console for a while this
afternoon; the ownerships of the defined files in the /dev
changed as expected so he was able to use the sound device,
etc. My daughter logged in and used the system for a
while. Then, several hours later, I logged in and was
surprised to note that I had no sound. Checking the
ownerships in /dev I saw that they still were owned by my
son. Apparently they had never reverted to the default
ownerships in /etc/security/console.perms or changed to
either my daughter's or my names when we logged in. I had
to change them all manually in order to get sound, etc. in
my console session. Obviously, this isn't working as
expected. What specific program is responsible for making
the ownership changes? How can I ensure that the device
ownerships actually change when they are supposed to do so?
It puzzles me that they should change for my son, but not
for me or my daughter, and not revert to the default
ownerships as defined in console.perms.

hope this help with previous examples.

raqueeb hassan
bunia, DRC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:48 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com