View previous topic :: View next topic |
Author |
Message |
T-O7 Tux's lil' helper
Joined: 01 Sep 2004 Posts: 94 Location: Canada
|
Posted: Fri Sep 10, 2004 10:24 pm Post subject: cdrom access for non-root user |
|
|
Hey all,
I was wondering if anyone could tell me how exactly i can change the permission access for my non-root user so that it can gain access to the cdrom and its contents. Is there something i have to change in /etc/fstab or anything?
Thanks a lot. |
|
Back to top |
|
|
geniux Veteran
Joined: 19 Feb 2004 Posts: 1400 Location: /home
|
Posted: Fri Sep 10, 2004 10:36 pm Post subject: |
|
|
You can add user to your fstab
Code: |
/dev/scd0 /mnt/cdrom auto noauto,user,unhide 0 0
|
or your user to /etc/group
or both _________________ AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20 |
|
Back to top |
|
|
czo Tux's lil' helper
Joined: 01 Sep 2004 Posts: 107 Location: Denmark
|
Posted: Fri Sep 10, 2004 10:39 pm Post subject: |
|
|
in /etc/fstab
You the line contains you cd-rom drive you have to set user as a "option" .
/dev/hdc /mnt/cdrom iso9660 noauto,user,unhide,ro 0 0
this is the setting for my cdrom drive... can this help you?? |
|
Back to top |
|
|
czo Tux's lil' helper
Joined: 01 Sep 2004 Posts: 107 Location: Denmark
|
Posted: Fri Sep 10, 2004 10:41 pm Post subject: |
|
|
geniux wrote: | You can add user to your fstab
Code: |
/dev/scd0 /mnt/cdrom auto noauto,user,unhide 0 0
|
or your user to /etc/group
or both |
HeHe cool, didn't knew that you could do the trick from /etc/group |
|
Back to top |
|
|
geniux Veteran
Joined: 19 Feb 2004 Posts: 1400 Location: /home
|
Posted: Fri Sep 10, 2004 10:43 pm Post subject: |
|
|
czo wrote: | geniux wrote: | You can add user to your fstab
Code: |
/dev/scd0 /mnt/cdrom auto noauto,user,unhide 0 0
|
or your user to /etc/group
or both |
HeHe cool, didn't knew that you could do the trick from /etc/group |
You can get access to many things through /etc/group _________________ AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20 |
|
Back to top |
|
|
T-O7 Tux's lil' helper
Joined: 01 Sep 2004 Posts: 94 Location: Canada
|
Posted: Sat Sep 11, 2004 2:10 am Post subject: |
|
|
Hmm...
Okay, i've tried changing both files. This is exactly what i have in fstab:
Code: | /dev/cdroms/cdrom0 /mnt/cdrom iso9660 ro,noauto,user,unhide 0 0 |
and this is exactly what i have in /etc/group:
where <user> is my actual non-root user name. Unfortunately, i still can't seem to access my cd drive from the non-root user. Any ideas? |
|
Back to top |
|
|
geniux Veteran
Joined: 19 Feb 2004 Posts: 1400 Location: /home
|
Posted: Sat Sep 11, 2004 9:24 am Post subject: |
|
|
But you can do the command
mount /mnt/cdrom (or whereever your cdrom are mounted)
dont you? _________________ AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20 |
|
Back to top |
|
|
T-O7 Tux's lil' helper
Joined: 01 Sep 2004 Posts: 94 Location: Canada
|
Posted: Sat Sep 11, 2004 1:39 pm Post subject: |
|
|
It says only the root user can mount stuff, when i try to mount cdrom in my normal user session. Is this something i have to change in order to see my cd with non-root users? |
|
Back to top |
|
|
geniux Veteran
Joined: 19 Feb 2004 Posts: 1400 Location: /home
|
Posted: Sat Sep 11, 2004 1:42 pm Post subject: |
|
|
Try changing your /mnt/cdrom to users
Code: |
chgrp users /mnt/cdrom
|
That would give the users group access to the /cdrom directory. _________________ AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20 |
|
Back to top |
|
|
T-O7 Tux's lil' helper
Joined: 01 Sep 2004 Posts: 94 Location: Canada
|
Posted: Sat Sep 11, 2004 3:27 pm Post subject: |
|
|
Okay, so I typed the above line:
Code: | chgrp users /mnt/cdrom |
but i'm still denied access to it in my non-root user.
Incidentally, for some reason as ROOT user, if i put in a music cd i can see and play the songs off XMMS, but all i see in Nautilus is an empty /mnt/cdrom folder. Doing the same thing as normal user, i see no music files when i use XMMS, and i'm denied access to the folder completely in nautilus.
This stubborn cdrom.... |
|
Back to top |
|
|
T-O7 Tux's lil' helper
Joined: 01 Sep 2004 Posts: 94 Location: Canada
|
Posted: Sat Sep 11, 2004 3:32 pm Post subject: |
|
|
Hmm...i don't know if this has anything to do with it, but whenever i enter the terminal for my normal user, i get three lines of
Code: | mount: only root can do that |
before the command prompt line. I don't know where it's coming from, and i wonder if it's related to my cd mounting problem? |
|
Back to top |
|
|
geniux Veteran
Joined: 19 Feb 2004 Posts: 1400 Location: /home
|
Posted: Sat Sep 11, 2004 3:39 pm Post subject: |
|
|
Ok, try
(thats if your cd are /dev/hdc), if that doesn't help, try
Code: |
chown username /mnt/cdrom
|
_________________ AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20 |
|
Back to top |
|
|
T-O7 Tux's lil' helper
Joined: 01 Sep 2004 Posts: 94 Location: Canada
|
Posted: Sat Sep 11, 2004 4:31 pm Post subject: |
|
|
I tried the chmod code and it still didn't work, so then I tried the chown code, and it finally worked!!! Thanks a lot, geniux, for all your help!
Now, i wonder why nautilus doesn't show the cd's music files....that's still a little strange. But thanks again! |
|
Back to top |
|
|
geniux Veteran
Joined: 19 Feb 2004 Posts: 1400 Location: /home
|
Posted: Sat Sep 11, 2004 4:33 pm Post subject: |
|
|
I think that nautilus only shows mounted data-files, and not audio-files. I'm not sure but it looks like it, when I had gnome nautilus didn't show my audio's.
Great it worked out _________________ AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20 |
|
Back to top |
|
|
czo Tux's lil' helper
Joined: 01 Sep 2004 Posts: 107 Location: Denmark
|
Posted: Fri Oct 08, 2004 10:23 pm Post subject: |
|
|
if you use gnome emerge devmagic or magicdev.. don't remember the name |
|
Back to top |
|
|
|