Bug 173793

Summary: New Users by default are not in audio group
Product: [openSUSE] SUSE Linux 10.1 Reporter: bulent oktem <bulent>
Component: OtherAssignee: Ludwig Nussel <lnussel>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: dimstar, forgotten_2AXImBTIXA, forgotten_99jW5vq2hJ, james, jsuchome, meissner, security-team, stolowski
Version: Final   
Target Milestone: ---   
Hardware: 32bit   
OS: Linux   
Whiteboard:
Found By: Third Party Developer/Partner Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description bulent oktem 2006-05-09 05:35:14 UTC
By default new users created at the installation are not in the audio group, takes time to figure out why there is no sound.
Comment 1 Marcus Meissner 2006-05-09 09:47:40 UTC
if you login via kdm or gdm the permissions
will be provided via resmgr and ACLs, just try:

/sbin/resmgr list
ls -la /dev/snd/
Comment 2 Jiří Suchomel 2006-05-09 11:11:27 UTC
... and if you really want to have new users in audio group, run yast2-users module, go to Expert Options and Defaults for New Users and edit the default.
Comment 3 Jiří Suchomel 2006-09-21 08:00:21 UTC
*** Bug 206806 has been marked as a duplicate of this bug. ***
Comment 4 Jiří Suchomel 2006-10-09 08:03:50 UTC
*** Bug 210936 has been marked as a duplicate of this bug. ***
Comment 5 James Mason 2006-11-22 22:10:33 UTC
"/sbin/resmgr list" yields:

status code 200
server message follows:
no devices available
Comment 6 James Mason 2006-11-22 22:11:57 UTC
on the topic of resmgr, I also can only access CD/DVDs as root.

Logging in as a samba-authenticated user.
Comment 7 Marcus Meissner 2006-11-22 22:58:40 UTC
with what mechanism? (text mode? kdm? xdm?)
Comment 8 Forgotten User 2AXImBTIXA 2006-11-23 08:19:54 UTC
kdm. Same here.
Comment 9 Marcus Meissner 2006-11-23 08:25:39 UTC
Last two reporters: Is this 10.2 or 10.1?

For 10.2 resmgr list no longer does list the devices,
instead use:
 hal-resmgr --list=username
Comment 10 Forgotten User 2AXImBTIXA 2006-11-23 08:48:17 UTC
10.1 as reported
Comment 11 Marcus Meissner 2006-11-23 14:08:16 UTC
what is the content of /etc/pam.d/kdm   ?
Comment 12 Forgotten User 2AXImBTIXA 2006-11-23 14:18:52 UTC
ll /etc/pam.d/kdm
/bin/ls: /etc/pam.d/kdm: No such file or directory
Comment 13 Marcus Meissner 2006-11-23 14:23:24 UTC
sorry, its: /etc/pam.d/xdm  
Comment 14 Forgotten User 2AXImBTIXA 2006-11-23 16:20:03 UTC
cat /etc/pam.d/xdm
#%PAM-1.0
auth     include        common-auth
account  include        common-account
password include        common-password
session  include        common-session
session  required       pam_devperm.so
session  required       pam_resmgr.so
Comment 15 Marcus Meissner 2006-11-23 16:31:50 UTC
this looks good (pam_resmgr.so is present)

can you run (as root)
resmgr sessions

and quote the output here?

If you are not on DISPLAY :0   this might be the problem.
Comment 16 Forgotten User 2AXImBTIXA 2006-11-23 17:23:04 UTC
You, Novell, do not recommend to log in graphically as root, so I did sux -.

echo $DISPLAY
:0.0

resmgr sessions
status code 200
server message follows:
no sessions
Comment 17 Marcus Meissner 2006-11-23 18:02:11 UTC
thats actually what i wanted you to do :)

interesting. it seems that you were able to login but bypass
the pam_resmgr module. :/

did you restart resmgr in between being logged in or something?
are there resmgr related messages in /var/log/messages?
Comment 18 James Mason 2006-11-24 20:30:20 UTC
Marcus: 10.2, was beta2, now RC1

Logging in via kdm

/etc/pam.d/xdm:
#%PAM-1.0
auth     include        common-auth
account  include        common-account
password include        common-password
session  required       pam_loginuid.so
session  include        common-session
session  required       pam_resmgr.so

resmgr sessions:
:0 YAMATOENGINESjammason

YAMATOENGINES is my Active Directory domain, jammason is my AD username

I've started a new bug, as this seems to be a more general problem with AD (samba) authentication in 10.2.  See bug 223664.
Comment 19 Marcus Meissner 2006-11-24 20:35:01 UTC
ah, nice. I guess we do not handle the AD specific usernames

what is "id" reporting? 
Comment 20 James Mason 2006-11-24 20:51:48 UTC
id:
uid=10000(YAMATOENGINES\jammason) gid=10000(YAMATOENGINES\domain users) groups=10000(YAMATOENGINES\domain users),10001(YAMATOENGINES\hrprograms-editors),10002(YAMATOENGINES\vacation-suspensioncreators),10003(YAMATOENGINES\catalog-editors),10004(YAMATOENGINES\meetingnotes-attendees),10005(YAMATOENGINES\employeeaccess-dataentries),10006(YAMATOENGINES\workinstructions-trainers),10007(YAMATOENGINES\pistonprotrusion-editors),10008(YAMATOENGINES\ows_3373472680_admin),10009(YAMATOENGINES\workinstructions-editors),10010(YAMATOENGINES\catalog-exporters),10011(YAMATOENGINES\vacation-fmlacreators),10012(YAMATOENGINES\processchange-reviewers),10013(YAMATOENGINES\workinstructions-evaluators),10014(YAMATOENGINES\safety team),10015(YAMATOENGINES\mas200),10016(YAMATOENGINES\imglibraryedit),10017(YAMATOENGINES\bomchange-requesters),10018(YAMATOENGINES\notices-editors),10019(YAMATOENGINES\holidays-editors),10020(YAMATOENGINES\is),10021(YAMATOENGINES\tsc),10022(YAMATOENGINES\quality),10023(YAMATOENGINES\vpn access)
Comment 21 James Mason 2006-11-24 20:53:45 UTC
I notice that the "resmgr sessions" output does not have the '\' between domain and username.  If I log in at a bash prompt, I have to use the form 'DOMAIN\username'.
Comment 22 Marcus Meissner 2006-11-24 21:12:23 UTC
yes, this is likely the reason.

we just have not tested it in AD setups up to now.
Comment 23 Ludwig Nussel 2006-11-27 09:11:59 UTC
AD issues are not what the original bug report is about. resmgr on 10.1 cannot properly deal with funny user names or the name mapping games winbind plays. closing as invalid again. The 10.2 problem will be handled in #223664
Comment 24 Jiří Suchomel 2007-09-18 14:03:49 UTC
*** Bug 325551 has been marked as a duplicate of this bug. ***
Comment 25 Jiří Suchomel 2008-02-11 14:59:58 UTC
*** Bug 360607 has been marked as a duplicate of this bug. ***
Comment 26 Jiří Suchomel 2008-06-25 14:05:47 UTC
*** Bug 402744 has been marked as a duplicate of this bug. ***