I have made a script and when I do a 'ls -l' then I get this:
The folder I'm trying to save the file in, will only save the file if the folder is set to 777/drwxrwxrwx
So the folder looks like this:
...I dont get anything!? the owner is the same, so shouldn't it be able to write without being set to 777?
Anyway, how do I make it work?
I have heard that 777 isn't good - I dont know why, cuz I really got into permissions, and I dont know the difference between owner, group, and all user.
And btw what does that second number mean? how many levels are below this folder?
Code:
-rwxr-xr-x 1 hotguy hotguy 2144 jun 27 19:41 savefile.cgi
The folder I'm trying to save the file in, will only save the file if the folder is set to 777/drwxrwxrwx
So the folder looks like this:
Code:
drwxrwxrwx 2 hotguy hotguy 512 jun 27 19:44
...I dont get anything!? the owner is the same, so shouldn't it be able to write without being set to 777?
Anyway, how do I make it work?
I have heard that 777 isn't good - I dont know why, cuz I really got into permissions, and I dont know the difference between owner, group, and all user.
And btw what does that second number mean? how many levels are below this folder?