DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So until now I have used my linux box only with root and now I am sick of the warnings that tell me it is stupid to work with root,and also I am concerning the security reasons So I created my new user on my machine and now I have no access to the mounted partition and I have no sound.Can somebody tell me how to make them work ?
Thanks in advance
To change permissions for a mounted partition, you need to enter some options in fstab.
look at /etc/group to see a listing of user groups, and find one that suits the partition - maybe "staff", since that's used by default for several library directories in Debian that you'll want access to.
then you'll need to add gid=xxx to the appropriate field in fstab, and another option to set permissions. I can't remember syntax exactly, maybe gmask? man fstab for details. a google search should also turn up a number of tutorials.
For sound, you just need to put your normal user in group 'audio'. And might as well put yourself in 'staff' while we're at it:
First it gives permissions, then owner, then group - in this case, owner root group root.
your adduser is probably messing up because the audio group doesn't exist - it doesn't recognize it as a group add command, and is assuming you're trying to add another user.
Create and audio group if you like, add yourself to it, and change your devices to that group with chgrp
Otherwise, can just chmod 666 on each device to grant everyone full permissions to it. this is a security issue, but sound's generally nonessential and if you're just running a workstation it's no big deal.
For your volume issue - are you using ALSA? the latest version should do it automatically, but you need to make sure that part of your shutdown script includes: alsactl store
and your startup script contains: alsactl restore
this saves your settings on exit, loads on startup.
Like Rounan said, check what group owns the 'dsp' device in /dev. If you want to use a group called 'audio' for it, try something like
addgroup audio # if the group doesn't exist already
chown root:audio /dev/dsp # sets the owner of the device 'file' to root but the group to audio
chmod g+rw /dev/dsp # adds read and write permissions to the sound device for the group
adduser your_username audio # add yourself to the group
Do these as root, of course. If you're logged in as your normal user, you probably need to log in again with it before everything takes effect.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.