29
6
I wrote a /bash script and to execute it I decided to set all the rights, so I tried
chmod 777 * //I had 3 text files in the directory, so that's ok
Then to check the result I typed
ls -l
But the rights hadn't changed at all.
I haven't got any error messages and it seems strange. I also tried to specify full path, but this hadn't helped.
I also tried to do all of these steps under root
Where may be the problem?
Thank you for help!
ls -la
drwx------ 1 gemma gemma 4096 июля 20 18:00 .
drwx------ 1 gemma gemma 4096 июля 20 16:35 ..
-rw------- 1 gemma gemma 407 июля 20 18:00 buildedfile.out ;this is what I
;need to launch
-rw------- 1 gemma gemma 4096 июля 20 17:21 kernel.bin
-rw------- 1 gemma gemma 350 июля 20 16:59 link.ld
-rw------- 1 gemma gemma 2025 июля 20 17:59 main.c
-rw------- 1 gemma gemma 1894 июля 20 17:34 start.asm
-rw------- 1 gemma gemma 457 июля 20 17:20 start.o
That is what ls shows after all I tried
I rebooted PC and problem rose again. But now any of suggested methods doesn't help.
I'm using Linux Mint 13 32-bit. On main disk where this files are located I have ext3, also tried on two another partitions where I have ntfs and FAT32.
buildedfile.out is a terminal app written on C
Did you get an error from the
chmod
command? – Fran – 2012-07-20T14:45:01.747did you try chmod 777 /path/to/folder/* – None – 2012-07-20T14:48:39.817
Try the verbose switch:
chmod -v 777 *
– Dennis – 2012-07-20T15:23:49.973You can also try
chmod a+x *
(or even betterchmod a+x buildedfile.out
) if that works and you just need to execute a file maybe it's only the777
thing wich causes trouble :/ – Flinth – 2012-07-20T15:25:17.560Which filesystem are you using? – Matteo – 2012-07-20T15:48:24.053
Please post the output of
ls -la
– deppfx – 2012-07-20T14:59:25.547What OS are you using? The tools are slightly different Linux vs. Mac. – Rich Homolka – 2012-07-20T15:58:30.197
What is buildedfile.out? A shellscript? Try
sh buildedfile.out
. At the other problem: show the output ofmount
. Where is your directory at? – ott-- – 2012-07-20T18:00:24.880