Bug 135718

Summary: Request for multiple users to have access to devices
Product: [Fedora] Fedora Reporter: Paul F. Johnson <paul>
Component: pamAssignee: Tomas Mraz <tmraz>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-02-09 13:44:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 134327    
Bug Blocks:    

Description Paul F. Johnson 2004-10-14 16:55:48 UTC
Description of problem:

Under the current (and probable release version of FC3), it is not
possible for users to have access to audio (and other) devices when
one user is logged into a console and another user is logged into an X
session.

For example, user "a" logs into X and into a console. This user gains
the permissions to audio. The user logs out of X, but is still logged
into the console. User "b" logs into X, but has the audio permissions
blocked as user "a" still has the rights to the device and is logged
into a console.

It's a pain in the backside that this isn't already available,
especially when (for example) user "a" is logged in to a console
session for an update and another console session for downloading a
torrent.

Comment 1 Tomas Mraz 2004-10-15 06:52:54 UTC
So you mean that the console logins should have lower priority than X
logins? So if someone logs out of X but is logged on console he/she
doesn't lose the ownership of the devices but if then someone else
logs in X he gets the ownership.

Easier change without necessary code changes would be to assign
ownership only on X logins, but then the user 1 would lose the
ownership immediately after logging out of X. This is easily
achievable by changing console.perms by making the console class equal
to xconsole class - this of course cannot be made default as many
users depend on the current behaviour.


Comment 2 Paul F. Johnson 2004-10-15 15:57:56 UTC
What would I need to do to make the console equal to the xconsole
class? I can try it and if it works, this request can be closed

Comment 3 Tomas Mraz 2004-10-18 09:40:19 UTC
Replace:
<console>=tty[0-9][0-9]* vc/[0-9][0-9]* :[0-9]\.[0-9] :[0-9]
with:
<console>=:[0-9]\.[0-9] :[0-9]

Then the console logins (non X) won't affect the permissions and
ownership of device nodes.


Comment 4 Tomas Mraz 2005-02-09 13:44:20 UTC
This is probably impossible to do right. You can make various
manipulations with console.perms file on workstations with concurrent
multiuser access but it wouldn't be right to unnecesarily complicate
the setup for normal desktops.