See the Mount options for fat section on the manual page of mount for more details.įor bash scripts which do not have the execute bit set, you could run bash file.sh. Solution: either back up the files and format it to ext2 or mount the drive with fmask=0022 or umask=0022 (omitting fmask). This could be the case if you're putting files on a FAT32-formatted flash drive. The filesystem you're working on does not support Linux permissions.Solution: set the permissions explicitly: chmod 755 a.out The umask value is set to a value like 0133, thereby preventing the execute bit from being set. Two possible reasons why your file does not have the execute bit set, with their solutions: If you do not pass the -o option, the file will be named a.out. Usually, g++ gives the created file execute permissions.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |