When I try to execute a python script in a mounted hard disk, I get the following error message:
bash: ./program_name: permission denied
it doesn't work when I execute:
chmod +x ./program_name
and nothing change when I do this as root
Some UNIX or UNIX-like systems don't allow to execute files in user mounted device.
I edit mount option as the following
vim /etc/fstab
/dev/sdb1 {path} ext4 defaults 1 1
It works!
文章標籤
全站熱搜
留言列表