LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-10-2007, 12:06 PM   #1
Score
Member
 
Registered: Oct 2006
Location: Norway
Distribution: Debian Etch
Posts: 105

Rep: Reputation: 15
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?
 
Old 01-10-2007, 12:29 PM   #2
MOS JEFF-INITELY
Member
 
Registered: Sep 2006
Distribution: Windows .. MUAHAHAHA
Posts: 66

Rep: Reputation: 15
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.
 
Old 01-10-2007, 12:35 PM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
as root:
chmod +s /bin/mount
chmod +s /bin/eject

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

Last edited by nx5000; 01-10-2007 at 12:36 PM.
 
Old 01-10-2007, 03:05 PM   #4
Score
Member
 
Registered: Oct 2006
Location: Norway
Distribution: Debian Etch
Posts: 105

Original Poster
Rep: Reputation: 15
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!
 
Old 01-10-2007, 03:24 PM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
You need to add "users" to the options field in /etc/fstab. This will give users permission to mount and unmount that device.
 
Old 01-10-2007, 03:33 PM   #6
Score
Member
 
Registered: Oct 2006
Location: Norway
Distribution: Debian Etch
Posts: 105

Original Poster
Rep: Reputation: 15
Thanks, that solved it!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing terminal colors Athos Debian 3 09-11-2007 05:54 PM
changing rights in /proc/sys Menestrel Linux - Security 5 02-23-2006 01:04 PM
Changing terminal options scorpion777 Ubuntu 3 01-07-2006 12:00 PM
changing a users rights newusermike Linux - Newbie 2 08-11-2005 08:23 PM
cp and changing rights bluecadet Linux - General 2 01-20-2002 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration