Originally Posted by jstephens84
Can anyone tell me why I had to add my user account to disk to be able to play audio?
Security and file/device permissions. Until you added the "Disk" group to your user account, your user account didn't have the permissions necessary to access the the sound device. As an example:
$ ls -l /dev/cdrom
lrwxrwxrwx 1 root root 8 2006-07-09 18:12 /dev/cdrom -> /dev/hdc
(NOTE: this points to IDE device hdc)
$ ls -l /dev/hdc
brw-rw---- 1 root disk 22, 0 2002-06-09 15:27 /dev/hdc
(NOTE: owner 'root' and group 'disk' can read/write to the disk)
uid=1000(bsdunix) gid=100(users) groups=100(users)
(NOTE: my user account is assigned to group 'users', so in this case my user account doesn't have the permissions necessary to access the drive)
If this seems a bit complicated, then here's a knowledge article:
"File Permissions and the chmod/chgrp/chown commands"