Permission denied to run shell script

  • Hi all,
    I have a scanner script (scan2pdf.sh) that I would like to run as a regular user.
    When I login as root, I can run it with no problems.
    When I login as a regular user, I have the following error : 'Permission non accordée' (I'm french, this says : Permission denied).
    Of course, the file has execute bit set (I used chmod +x scan2pdf.sh)
    The user I'm using is member of the following groups : users sudo ssh lpadmin scanner famille
    I can run the script using the command 'bash scan2pdf.sh'


    Do somebody have an idea on how to fix this problem ?

  • Thanks subzero79
    Yes, the script is located on a data disk (in the home directory of the regular user. OMV by default puts home directories on data disks).
    I'll move the file to another location


    Thanks for your prompt answer

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!