On Monday 12 September 2011 02:57:38 Michael S. Dunsavage wrote:
On 09/11/2011 09:38 PM, George OLson wrote:
On 09/12/2011 01:24 AM, Ken Schneider - openSUSE wrote:
Make sure you set the file execute flag, chmod +x <file to execute>.
For some reason I don't seem to have to do that.
Here are my permissions: -rw-r--r-- 1 george users 440 Sep 12 09:23 ASUStoKING.sh
Yet the file executes no problem both from the konsole and linking to application as described in the earlier post. I am not logged in as root either when I try to run it, just a normal user.
I did a google search for why and someone wrote that because shell commands can be executed from the command line without setting permissions, a shell script can do the same. Does that sound right to you guys? In any case, my script executes, and I don't have the permission to execute flag set on that file.
George
You can run a command without setting permissions as such from the command line:
$ bash programname
however if you try
$ ./programmname it will say permission denied if not marked as +x
perhaps KDE reads the environment and uses the appropriate command
IS that not heading into dangerous territory having the ability to execute a script without the right permissions ie getting too much like windows and one of the reasons why windows is so wide open and linux has so far been top of the class this does not sound good. Pete . -- Powered by openSUSE 11.3 (x86_64) Kernel: 2.6.34.10-0.2-desktop KDE Development Platform: 4.6.00 (4.6.0) 08:12 up 8 days 13:42, 5 users, load average: 0.00, 0.00, 0.00 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org