LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   cdrom permissions (https://www.linuxquestions.org/questions/mandriva-30/cdrom-permissions-290758/)

nikki 02-15-2005 10:16 PM

cdrom permissions
 
after the 2nd crash in a month of mandrake 10 (by crash i mean total loss of everything, not my system shutting down), I rrformated and installed once again. This time i choose a higher security and it did not give me cd permissions, not have i ever gotten audio because of permissions even with the lower settings.

So i tryed to give myself permissions by su to root and using the usermod command. This command has failled me repeatedly with may attempts to use it.


Code:

[root@localhost etc]# usermod -g nikki -G audio,cdrom,cdwriter -l nikki
usage: usermod  [-u uid [-o]] [-g group] [-G group,...]
                [-d home [-m]] [-s shell] [-c comment] [-l new_name]
                [-f inactive] [-e expire ] [-p passwd] [-L|-U] name
[root@localhost etc]# usermod -g nikki -G audio,cdrom,cdwriter -L|-U nikki
bash: -U: command not found
usage: usermod  [-u uid [-o]] [-g group] [-G group,...]
                [-d home [-m]] [-s shell] [-c comment] [-l new_name]
                [-f inactive] [-e expire ] [-p passwd] [-L|-U] name
[root@localhost etc]#

could someone please tell me in plain english what I am failing to do right here please so I can burn the cd's to install a linux that does not crash about every 2 weeks?

bunnadik 02-16-2005 01:35 AM

Heh, the " [-L|-U]" means "-L" OR "-U" and a 'man usermod' shows that -L and -U has to do with
locking/unlocking of the account so you don't want that anyways.

The way to read the "Usage" is that everything in [ ] are optional, | (pipe) means either one and other things are mandatory.

So you should try 'usermod -G audio,cdrom,cdwriter nikki'

- Peder

nikki 02-18-2005 06:44 PM

Thanks. I finally figured how to change the security back to normal, got access to the cd. I tried the usermod to add the audio froup for sound but still no sound :(


All times are GMT -5. The time now is 03:27 PM.