You are not logged in.

#1 2005-08-17 09:23:31

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

no sound in non-root user

# lsmod

Module                  Size  Used by
uhci_hcd               33808  0
snd_mpu401              6728  0
snd_opl3_lib           11776  0
snd_hwdep               9760  1 snd_opl3_lib
snd_cs4231_lib         27904  0
snd_mpu401_uart         8704  1 snd_mpu401
snd_rawmidi            26784  1 snd_mpu401_uart
snd_seq_device          8972  2 snd_opl3_lib,snd_rawmidi
analog                 12576  0
ns558                   6020  0
gameport               17160  3 analog,ns558
parport_pc             29124  0
parport                38600  1 parport_pc
pcspkr                  4172  0
rtc                    14156  0
shpchp                100868  0
pci_hotplug            30788  1 shpchp
snd_intel8x0           34752  0
snd_ac97_codec         83960  1 snd_intel8x0
snd_pcm_oss            55456  0
snd_mixer_oss          20480  1 snd_pcm_oss
snd_pcm                97796  4 snd_cs4231_lib,snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer              27012  3 snd_opl3_lib,snd_cs4231_lib,snd_pcm
snd                    60388  13 snd_mpu401,snd_opl3_lib,snd_hwdep,snd_cs4231_lib,snd_mpu401_uart,snd_rawmidi,snd_seq_device,snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore              10848  1 snd
snd_page_alloc         10244  3 snd_cs4231_lib,snd_intel8x0,snd_pcm
forcedeth              20480  0
ehci_hcd               37256  0
ohci_hcd               23044  0
i2c_nforce2             7168  0
i2c_core               22784  1 i2c_nforce2
tsdev                   8384  0
evdev                  10240  0
usbcore               127740  4 uhci_hcd,ehci_hcd,ohci_hcd
nls_cp936             126848  4
vfat                   14720  4
fat                    54044  1 vfat

but I can hear sound via login by root.
I've already load alsa in rc.conf

Offline

#2 2005-08-17 09:31:47

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: no sound in non-root user

Have you added yourself to the audio group?

Offline

#3 2005-08-17 11:10:07

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: no sound in non-root user

I add my account to the audio group now, but I still can hear the sound.
I restart the computer to see if I have sound now.

I want to know what command can I use to display all the info of a user. And where can I get the manual about user management.

Offline

#4 2005-08-17 11:21:12

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: no sound in non-root user

Yes, I can listen to the music now, Thank you tomk.

Offline

#5 2005-08-17 13:19:11

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: no sound in non-root user

No problem, fluke.

The command

groups

will show the groups to which the logged-in user belongs, and

gpasswd

adds/deletes users to/from groups.

useradd
usermod
userdel

add/modify/delete users on your system, although

adduser

is usually used instead of useradd - it's just a more user-friendly version.

All the above except adduser have man pages.

Offline

#6 2005-08-17 13:48:12

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: no sound in non-root user

used usermod to modify the password of a user, but I find that the password was wrong.
I now know the -p option must followed by a crypted password.
But how can I get crypted password quickly?
I don't know, so I gonna write a c program to generate the crypted password.
Any good ideas?

Offline

Board footer

Powered by FluxBB