Linux.com

Home Learn Linux Linux Answers High Performance Why Permission denied running off CD
Answers
  • Have your tried to do that with a normal user (no root) account and sudo?

    Answered by andrade
    4 years ago
    0 0
  • Of course both sudo and su give the same Permission denied. I just discovered the same problem with Fedora5 too, but not Fedora4 and Fedora7. What going on???

    Answered by TsaniApani
    4 years ago
    0 0
  • Maybe take a look and see if there is a cdrom group in those older distros and see how it's owned.
    Maybe it's reading the cdrom permissions incorrectly, and/or trying a write to the cdrom.
    Maybe the different versions of hal are not doing the hardware recognition correctly.
    I'm just thinking out loud here, but the first thing I would look at would be to check how the cdrom is viewed by each of the different versions of fedora, and see if the properties and permissions are the same in each version.
    I may be totally off base, but that's my $.02 cents.

    Answered by Goineasy9
    4 years ago
    0 0
  • Is the cdrom automonted? Try to umount and mount manually, maybe it's a problem with automount or fstab options.

    Answered by andrade
    4 years ago
    0 0
  • type mount in a shell and look at the options there are for the cdrom. There should be a 'noexec' one ( it means no executable so impossible to launch a program from it ).

    If there is, copy all the options minus noexec and type as root or sudo in a shell ( change the path and the options with wath you have ):

    mount -o remount,option1,option2,optionN /path/to/cd

    Answered by obsider
    4 years ago
    0 1
  • mount shows:

    automount(pid1691) on /net type autofs (rw,fd=4,pgrp=1691,minproto=2,maxproto=4)
    /dev/hdc on /media/A1TEST2 type iso9660 (ro,noexec,nosuid,nodev,uid=500)

    so I fed it:

    mount -o remount,ro,nosuid,nosuid,nodev,uid=500 /media/A1TEST2

    and it still gives Permission denied. Am I missing something?

    [quote name="Alexandre Chabert"]type mount in a shell and look at the options there are for the cdrom. There should be a 'noexec' one ( it means no executable so impossible to launch a program from it ).

    If there is, copy all the options minus noexec and type as root or sudo in a shell ( change the path and the options with wath you have ):

    mount -o remount,option1,option2,optionN /path/to/cd[/quote]

    Answered by TsaniApani
    4 years ago
    0 0
  • Is the program trying to write in the CD? Maybe it creates some files and need write permissions, that in the CD is not possible. Copy the program to HD and run it.

    Answered by andrade
    4 years ago
    0 0
  • ok now try mounting the cdrom like this:

    mount -o remount,defaults,exec /media/A1TEST2

    Check with mount that the options are ok and test. If this doesn't work mount the CD in a distribution that works and try with the options you see.

    If this still doesn't work I'd say it smells like selinux so as a last resort put it in permissive mode or disable it and try again.

    Answered by obsider
    4 years ago
    0 2
  • [quote name="Victor Andrade"]Is the program trying to write in the CD? Maybe it creates some files and need write permissions, that in the CD is not possible. Copy the program to HD and run it.[/quote]
    Yes, the program does attempt to write a log file, but only after it runs for several minutes. How would the system know the program is capable of writing up front?

    Answered by TsaniApani
    4 years ago
    0 0
  • [quote name="Alexandre Chabert"]ok now try mounting the cdrom like this:

    mount -o remount,defaults,exec /media/A1TEST2

    Check with mount that the options are ok and test. If this doesn't work mount the CD in a distribution that works and try with the options you see.

    If this still doesn't work I'd say it smells like selinux so as a last resort put it in permissive mode or disable it and try again.[/quote]
    Thanks, that works! I tried setting SELinux to permissive and just disabling it. Don't know what else it could be other than demon-possesion. >:-]

    Answered by TsaniApani
    4 years ago
    0 1
  • This happened to me when I tried Slackware, the users and root were not in the CDROM group in /etc/group. To fix this error I added the user and root the the CDROM group.
    I know Fedora and Slackware are different distributions, and I am not sure if this is the problem also.

    Answered by Mrx3000
    4 years ago
    1 0
Please register/login to answer this question. Click here to login
Similar Questions Found
Questions from category High Performance

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board