Welcome! Log In Create A New Profile

Advanced

newbie question about executable

Posted by funtoy1001 
newbie question about executable
June 21, 2012 08:55AM
For my Dockstar, I have a USB stick for Debian and a HDD for data storage ( mount as /mnt/data). When I try to run a script form /mnt/data/some subdirectory, I got "Permission denied" but the same script will run fine if I put it anywhere on the USB stick. What is the reason I can't run script on my data drive?
Re: newbie question about executable
June 22, 2012 06:35AM
A file to be executed needs to be exectutable. You can check that by using ls -l.

-rwxr-xr-x

From left to right: no-stick-bit, user can read-write-execute, group can read-execute, world can read-execute.

If your file is executable and does not execute, maybe your partition is mounted non-executable.
Maybe the directory you use has no rights to execute files.

There are no silly questions
Re: newbie question about executable
June 22, 2012 07:44AM
Thanks. Remount the partition to enable exec fixed the problem.



Edited 3 time(s). Last edit at 06/22/2012 12:54PM by funtoy1001.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: