LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Changing rights from the terminal? (https://www.linuxquestions.org/questions/linux-general-1/changing-rights-from-the-terminal-518061/)

Score 01-10-2007 12:06 PM

Changing rights from the terminal?
 
How do I change the r/w rights to my dvd drive from the command line? Whenever I try to eject it or mount/unomuount it, it tells me that only root can do it.

Any ideas?

MOS JEFF-INITELY 01-10-2007 12:29 PM

use chmod ### <filename> -- where rwx = 7 = 111
example chmod 751 file1
changes file permission on file1 to rwx r-x --x

or chown <user> <filename>
or chgrp <user> <filename>

you can use the `man` command to look up these commands in more detail:
man chmod

ease.

nx5000 01-10-2007 12:35 PM

as root:
chmod +s /bin/mount
chmod +s /bin/eject

edit: also give your /etc/fstab if its not sufficient

Score 01-10-2007 03:05 PM

I get this when I try to eject it manually - umount: only root can unmount /dev/hda from /media/cdrom0
eject: unmount of `/media/cdrom0' failed

Clicking on my DVD drive does not work at all!

Matir 01-10-2007 03:24 PM

You need to add "users" to the options field in /etc/fstab. This will give users permission to mount and unmount that device.

Score 01-10-2007 03:33 PM

Thanks, that solved it!!


All times are GMT -5. The time now is 12:29 PM.