LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 04-30-2005, 08:11 PM   #1
Beckerjr
Member
 
Registered: Mar 2005
Location: Arizona
Distribution: Mandriva 2006
Posts: 31

Rep: Reputation: 15
making chmod permanent


I'm trying to make it so programs under a regular user account can access my cdrom. I used the chmod command and it works but only for that session. When the computer is rebooted it goes back to the previous setting. I thought chmod would make it permanent but its not.

I change to root and use this command: chmod 644 /dev/hdc

Am I doing chmod to the wrong thing or what?
 
Old 04-30-2005, 08:14 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Set it up so your users or groups have access via the /etc/fstab file when it is mounted.
 
Old 05-01-2005, 11:57 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
if you are using a udev system you will have to edit the
for me that would be a file in /etc/udev/permissions.d
and the operative line is
hd*:root:disk:0660

that of course gives everyone read write

the kernel developers however made it in certain versions of the kernel only root can burn cd's
go figure... i think because it involves formatting and i guess it's true i don't want users to be able to format my hard drive

no way around that one
 
Old 05-10-2005, 02:04 PM   #4
Beckerjr
Member
 
Registered: Mar 2005
Location: Arizona
Distribution: Mandriva 2006
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by trickykid
Set it up so your users or groups have access via the /etc/fstab file when it is mounted.
I added the users option to the fstab file and made my regular account a part of that group but I still have to use the chmod command so a program like Sound Juicer can read the disc to look up CDDB info. I can open a CD up in the file browser fine and see the contents but Sound Juicer won't work right.

This is my fstab file contents:

# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hdb3 /mnt/windows vfat auto,umask=0 0 0
/dev/hdc /media/cdrecorder auto noauto,users,owner,rw 0 0

As to the suggestion about the permissions I'm not sure what I would need to do. I opened the file under that dir and the line says hd*:root:disk:0660 already.

Last edited by Beckerjr; 05-10-2005 at 02:09 PM.
 
Old 05-11-2005, 02:27 AM   #5
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
660 doesn't give everyone read-write, unless everybody is a member of the correct group.

Make it 666 for global read & write
 
Old 05-11-2005, 12:08 PM   #6
Beckerjr
Member
 
Registered: Mar 2005
Location: Arizona
Distribution: Mandriva 2006
Posts: 31

Original Poster
Rep: Reputation: 15
I feel like I'm going backwards with this thing. A icon doesn't even appear on the dsktop anymore for me. I can see the disc under the file browser /media/cdrecorder. The options of mount media is checked under preferences but thats not working now. About to give up on making this thing work properly.

Is there something flakey since this thing is a DVD/CDRW combo drive or something?
 
  


Reply



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
Making MTU change permanent Firestarter75 Mandriva 2 02-16-2005 06:20 PM
Making Routing Table Changes Permanent gabriele_101 Linux - Networking 3 11-18-2004 07:30 AM
rmmod - making the change permanent? DiBosco Linux - General 0 06-20-2004 05:32 AM
Making Changes Permanent T-u-N-i-X Linux - General 1 09-01-2003 05:47 AM
Making SMBMOUNT Permanent unclebyron Linux - General 2 01-31-2002 05:24 PM

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

All times are GMT -5. The time now is 12:59 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