[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cannot execute make-fstab in Debian?



On Ma, 07 apr 20, 14:53:01, Greg Wooledge wrote:
> 
> At this point, it's pretty clear the file system is mounted without
> exec permission, so just fix the mount options.

Most likely the script is trying to execute some other scripts and/or executables on the
same filesystem, so that's why it fails.

$ mount | grep tbig
/dev/sdb1 on /media/tbig type fuseblk (rw,noexec,noatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
$ bash -x /media/tbig/test.sh 
+ echo 'Successful!'
Successful!
+ source /media/tbig/sourced.sh
++ echo Sourced
Sourced
+ /media/tbig/executed.sh
/media/tbig/test.sh: line 7: /media/tbig/executed.sh: Permission denied
+ bash /media/tbig/executed.sh
Executed!


In this is case it's probably easiest to just mount the filesystem with 'exec'.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

Attachment: signature.asc
Description: PGP signature


Reply to: