bash: ./ms-stop: bad interpreter: Permission denied
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I run mount and this is the outcome, but I can't tell about the flag, I mean, I don't understand what this command mount is about. Can you figure that out?
thamy@ccc:~/TOOLS/MS/bin> mount
/dev/hda2 on / type reiserfs (rw)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/hda1 on /boot type ext2 (rw)
/dev/hdb1 on /research type ext2 (rw)
/dev/hdb2 on /unilocal type ext2 (rw)
/dev/hda9 on /home type reiserfs (rw,usrquota)
/dev/hda8 on /opt type reiserfs (rw)
/dev/hda5 on /usr type reiserfs (rw)
/dev/hda6 on /var type reiserfs (rw)
/dev/hda7 on /var/spool type reiserfs (rw)
shmfs on /dev/shm type shm (rw)
thamy@ccc:~/TOOLS/MS/bin>
Well, mount shows the filesystems (partitions and virtual ones, like /proc) that are mounted. I was looking for the "noexec" option like in "/dev/hda9 on /home type reiserfs (rw,noexec)", but I see it isn't there.
Weird. Especially since the error reads "bash: ./ms-analyze: bad interpreter: Permission denied". I mean, if it was a non-existant shell, it would say "bad interpreter: No such file or directory". Are you able to execute any scripts in your home directory?
Yes, yesterday I executed one. I'm about to quit on this, I have no clue and I have no experience with LINUX so I don't know what else to do. Thanks anyway for all the help!
I've had this happen to me when I edited a script on a windows PC. Problem was caused by how notepad wrote the carriage returns/line feeds in the file.
You can fix it by running
Code:
dos2unix ms-analyze
this utility converts the cr/lf from a dos file to the *nix version. If you don't have this util you can download it from
I tried dos2unix but I still get the message bad interpreter permission denied
So, I'm here again. I already tried what vbu suggested about converting the file from DOS to *nix version but the error message is still there. Weird thing is that I can run other scripts in my account.
Thanks for the help!
Thamar S.
bash: ./ms-analyze: bad interpreter: Permission denied
Could you post some more details like the first few non-empty lines of the script, what package it's part of and what it's purpose is and if it's being run on other boxen w/o problems?
Well the script is part of a morphosyntactic processor, my admin already tried to execute it as root with no success. I send you here the first lines....
I read on a different LINUX list that command source may help so I tried source ms-analyze and this is what I see:
bash: BEGIN: command not found
bash: /bin/ms-analyze: line 4: syntax error near unexpected token `and'
bash: /bin/ms-analyze: line 4: ` (!$ENV{LPDIR}) and print STDERR "LPDIR undefined!\n" and exit;'
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.