/bin/.: Permission denied
Hi I'm trying to execute a script as user int the current shell and when I do the following
. ./etc/profile.d/myconfigure.sh I get this output /bin/.: Permission denied Even if I do "chmod 777 /bin/." as superuser it keeps telling me that I cannot execute the script as I want to. Do you know how can I change the permissions for that? thnx. Aizkorri. |
Quote:
. /etc/profile.d/myconfigure.sh Hope this helps. |
It returns the same permission problem. help!
|
Quote:
|
It's very simple:
PATH="$PATH:/usr/bin/" DATA_FILE=/usr/lib/DATA_FILE export DATA_FILE PATH |
Are you logged in as a regular user? Then, do you have the correct rights to access /etc/profile.d/myconfigure.sh and access the directory it is in ? (/etc/profile.d) ?
I copied/pasted your script to my home-dir and there's no problem if I do: cd ~ . ./myconfigure.sh ...so it has probably to do with your rights as a regular user to the directory or the file. Agur, Hko |
I think the problem is in the third line. Just check for the permissions of the shells /bin/bash and /bin/sh since export is a command in the bash and sh shell:D
|
thnx, I will check the permissions of the file and shells.
agur. |
type;
env | grep SHELL running csh or bash? if it's csh that's your problem. hit this one myself today, my user is using csh when I thought it was bash... |
Quote:
Code:
#!/bin/sh |
All times are GMT -5. The time now is 04:24 PM. |