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!

arrow
arrow
    文章標籤
    ubuntu mount permission
    全站熱搜

    宸 發表在 痞客邦 留言(0) 人氣()