I have just upgraded from SuSE 9.0 to 9.3. When I attempt to run a script that ran under 9.0 with no problem I get the error message: bash: ./get-dockings: /bin/csh: bad interpreter: Permission denied Yet, the permission on the script are -rwxrwxrwx What is going on here? Also, it makes no difference if I attempt running the script as root, not my normal procedure, or as a user. Thanks in advance. -- Stephen P. Molnar, Ph.D. Life is a fuzzy set Foundation for Chemistry Stochastic and multivariant http://www.geocities.com/FoundationForChemistry
The Tuesday 2005-04-26 at 18:49 -0400, Stephen P. Molnar, Ph.D. wrote:
I have just upgraded from SuSE 9.0 to 9.3. When I attempt to run a script that ran under 9.0 with no problem I get the error message:
bash: ./get-dockings: /bin/csh: bad interpreter: Permission denied
Yet, the permission on the script are -rwxrwxrwx
What is going on here?
Also, it makes no difference if I attempt running the script as root, not my normal procedure, or as a user.
I'd guess the partition is mounted noexec. -- Cheers, Carlos Robinson
On 26.04.05,18:49, Stephen P. Molnar, Ph.D. wrote:
I have just upgraded from SuSE 9.0 to 9.3. When I attempt to run a script that ran under 9.0 with no problem I get the error message:
bash: ./get-dockings: /bin/csh: bad interpreter: Permission denied
Yet, the permission on the script are -rwxrwxrwx
What is going on here?
Also, it makes no difference if I attempt running the script as root, not my normal procedure, or as a user.
Thanks in advance.
Can you try to change the line /bin/csh in the script to /bin/sh and see if that works? - Jostein
--
Jostein Berntsen
Quoting Stephen P. Molnar, Ph.D.
I have just upgraded from SuSE 9.0 to 9.3. When I attempt to run a script that ran under 9.0 with no problem I get the error message:
bash: ./get-dockings: /bin/csh: bad interpreter: Permission denied
Yet, the permission on the script are -rwxrwxrwx
What is going on here?
Also, it makes no difference if I attempt running the script as root, not my normal procedure, or as a user.
Thanks in advance.
Are you sure you have the C Shell installed? And it's permissions are correct? (Note: /usr/bin/csh and /bin/csh are links to /bin/tcsh.) It looks to me like Bash is complaining about the permissions on the interpreter, /bin/csh, not the permissions on the script. HTH, Jeffrey
Thanks for your reply. Let me ask you a qestion. I have one user, computation, on the machine in addition to root. I set the permissions on the /etc tree to computation.users, but the /bin directory, and hence both csh and tcsh are set root.root. Should this be changed, also. Or am I going about this incorrectly? Here is my / director listing drwxr-xr-x 23 root root 560 2005-04-30 13:49 . drwxr-xr-x 23 root root 560 2005-04-30 13:49 .. drwxr-xr-x 2 root root 2896 2005-04-27 10:45 bin drwxr-xr-x 3 root root 536 2005-04-24 08:43 boot drwxr-xr-x 21 computation users 4096 2005-04-23 13:10 data1 drwxr-xr-x 13 computation users 336 2005-04-29 14:21 data2 drwxr-xr-x 35 root root 181968 2005-04-30 08:02 dev -rw-r--r-- 1 root root 0 2005-04-30 13:49 dir.txt drwxr-xr-x 97 root root 8776 2005-04-30 08:02 etc drwxr-xr-x 3 root root 80 2005-04-24 09:40 home drwxr-xr-x 13 root root 3640 2005-04-25 09:22 lib drwxr-xr-x 5 root root 144 2005-04-29 14:34 media drwxr-xr-x 2 root root 48 2005-03-23 16:34 mnt drwxr-xr-x 11 root root 280 2005-04-28 08:56 opt dr-xr-xr-x 122 root root 0 2005-04-30 04:01 proc drwx------ 22 root root 1056 2005-04-30 13:49 root drwxr-xr-x 3 root root 9056 2005-04-24 10:07 sbin drwxr-xr-x 5 root root 120 2005-04-24 09:13 srv drwxr-xr-x 10 root root 0 2005-04-30 04:01 sys drwxrwxrwt 26 root root 50512 2005-04-30 13:45 tmp drwxr-xr-x 13 computation users 368 2005-04-24 14:03 usr drwxr-xr-x 14 root root 360 2005-04-24 08:36 var Thanks in advance. On Saturday April 30, 2005 10:50 am, Jeffrey L. Taylor wrote:
Quoting Stephen P. Molnar, Ph.D.
: I have just upgraded from SuSE 9.0 to 9.3. When I attempt to run a script that ran under 9.0 with no problem I get the error message:
bash: ./get-dockings: /bin/csh: bad interpreter: Permission denied
Yet, the permission on the script are -rwxrwxrwx
What is going on here?
Also, it makes no difference if I attempt running the script as root, not my normal procedure, or as a user.
Thanks in advance.
Are you sure you have the C Shell installed? And it's permissions are correct? (Note: /usr/bin/csh and /bin/csh are links to /bin/tcsh.) It looks to me like Bash is complaining about the permissions on the interpreter, /bin/csh, not the permissions on the script.
HTH, Jeffrey
-- Stephen P. Molnar, Ph.D. Life is a fuzzy set Foundation for Chemistry Stochastic and multivariant http://www.geocities.com/FoundationForChemistry
On Sat, 2005-04-30 at 13:50 -0400, Stephen P. Molnar, Ph.D. wrote:
Thanks for your reply.
Let me ask you a qestion.
I have one user, computation, on the machine in addition to root. I set the permissions on the /etc tree to computation.users, but the /bin directory, and hence both csh and tcsh are set root.root. Should this be changed, also. Or am I going about this incorrectly?
Here is my / director listing
drwxr-xr-x 23 root root 560 2005-04-30 13:49 . drwxr-xr-x 23 root root 560 2005-04-30 13:49 .. drwxr-xr-x 2 root root 2896 2005-04-27 10:45 bin drwxr-xr-x 3 root root 536 2005-04-24 08:43 boot drwxr-xr-x 21 computation users 4096 2005-04-23 13:10 data1 drwxr-xr-x 13 computation users 336 2005-04-29 14:21 data2 drwxr-xr-x 35 root root 181968 2005-04-30 08:02 dev -rw-r--r-- 1 root root 0 2005-04-30 13:49 dir.txt drwxr-xr-x 97 root root 8776 2005-04-30 08:02 etc drwxr-xr-x 3 root root 80 2005-04-24 09:40 home drwxr-xr-x 13 root root 3640 2005-04-25 09:22 lib drwxr-xr-x 5 root root 144 2005-04-29 14:34 media drwxr-xr-x 2 root root 48 2005-03-23 16:34 mnt drwxr-xr-x 11 root root 280 2005-04-28 08:56 opt dr-xr-xr-x 122 root root 0 2005-04-30 04:01 proc drwx------ 22 root root 1056 2005-04-30 13:49 root drwxr-xr-x 3 root root 9056 2005-04-24 10:07 sbin drwxr-xr-x 5 root root 120 2005-04-24 09:13 srv drwxr-xr-x 10 root root 0 2005-04-30 04:01 sys drwxrwxrwt 26 root root 50512 2005-04-30 13:45 tmp drwxr-xr-x 13 computation users 368 2005-04-24 14:03 usr drwxr-xr-x 14 root root 360 2005-04-24 08:36 var
Thanks in advance.
Why are you changing the owner/group on /usr? Put it back to root.root or you will have further system problems. Who knows what else you could have screwed up. Please do not change the perms/owner of system files/dirs unless you want to end up installing your system fresh again. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge
On Saturday April 30, 2005 02:06 pm, Ken Schneider wrote:
On Sat, 2005-04-30 at 13:50 -0400, Stephen P. Molnar, Ph.D. wrote:
Thanks for your reply.
Let me ask you a qestion.
I have one user, computation, on the machine in addition to root. I set the permissions on the /etc tree to computation.users, but the /bin directory, and hence both csh and tcsh are set root.root. Should this be changed, also. Or am I going about this incorrectly?
Here is my / director listing
drwxr-xr-x 23 root root 560 2005-04-30 13:49 . drwxr-xr-x 23 root root 560 2005-04-30 13:49 .. drwxr-xr-x 2 root root 2896 2005-04-27 10:45 bin drwxr-xr-x 3 root root 536 2005-04-24 08:43 boot drwxr-xr-x 21 computation users 4096 2005-04-23 13:10 data1 drwxr-xr-x 13 computation users 336 2005-04-29 14:21 data2 drwxr-xr-x 35 root root 181968 2005-04-30 08:02 dev -rw-r--r-- 1 root root 0 2005-04-30 13:49 dir.txt drwxr-xr-x 97 root root 8776 2005-04-30 08:02 etc drwxr-xr-x 3 root root 80 2005-04-24 09:40 home drwxr-xr-x 13 root root 3640 2005-04-25 09:22 lib drwxr-xr-x 5 root root 144 2005-04-29 14:34 media drwxr-xr-x 2 root root 48 2005-03-23 16:34 mnt drwxr-xr-x 11 root root 280 2005-04-28 08:56 opt dr-xr-xr-x 122 root root 0 2005-04-30 04:01 proc drwx------ 22 root root 1056 2005-04-30 13:49 root drwxr-xr-x 3 root root 9056 2005-04-24 10:07 sbin drwxr-xr-x 5 root root 120 2005-04-24 09:13 srv drwxr-xr-x 10 root root 0 2005-04-30 04:01 sys drwxrwxrwt 26 root root 50512 2005-04-30 13:45 tmp drwxr-xr-x 13 computation users 368 2005-04-24 14:03 usr drwxr-xr-x 14 root root 360 2005-04-24 08:36 var
Thanks in advance.
Why are you changing the owner/group on /usr? Put it back to root.root or you will have further system problems. Who knows what else you could have screwed up. Please do not change the perms/owner of system files/dirs unless you want to end up installing your system fresh again.
What about /data1 and /data2?
-- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
"The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge
-- Stephen P. Molnar, Ph.D. Life is a fuzzy set Foundation for Chemistry Stochastic and multivariant http://www.geocities.com/FoundationForChemistry
On Sat, 2005-04-30 at 14:45 -0400, Stephen P. Molnar, Ph.D. wrote:
On Saturday April 30, 2005 02:06 pm, Ken Schneider wrote:
On Sat, 2005-04-30 at 13:50 -0400, Stephen P. Molnar, Ph.D. wrote:
Why are you changing the owner/group on /usr? Put it back to root.root or you will have further system problems. Who knows what else you could have screwed up. Please do not change the perms/owner of system files/dirs unless you want to end up installing your system fresh again.
What about /data1 and /data2?
Since /data1 and /data2 are not system required areas they may be mounted as the user to give the user complete access. You may also put user as an option in fstab to enable the user to mount/umount them.
-- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge
The Saturday 2005-04-30 at 13:50 -0400, Stephen P. Molnar, Ph.D. wrote: El 2005-04-30 a las 13:50 -0400, Stephen P. Molnar, Ph.D. escribió:
I have one user, computation, on the machine in addition to root. I set the permissions on the /etc tree to computation.users, but the /bin directory,
Argh! :-/ Restore all system files/diretories to their original permissions/owners. -- Cheers, Carlos Robinson
participants (5)
-
Carlos E. R.
-
Jeffrey L. Taylor
-
Jostein Berntsen
-
Ken Schneider
-
Stephen P. Molnar, Ph.D.