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? |
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. |
as root:
chmod +s /bin/mount chmod +s /bin/eject edit: also give your /etc/fstab if its not sufficient |
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! |
You need to add "users" to the options field in /etc/fstab. This will give users permission to mount and unmount that device.
|
Thanks, that solved it!!
|
All times are GMT -5. The time now is 12:29 PM. |