just some questions ...

Zeus

Registered
How to use chmod to make a file executable ??
And ... i'm lookin' for a NotonCommander for unix ... any ideas ??

thanks!!
 
To make a file executable, launch your Terminal. Switch to the folder that the file you want to make executable is in. Here's an example (edit the path to your correct path) Type in the terminal:

cd /Library/WebServer/CGI-Executables

to see the files in that directory, type: ls

Now say there's a cgi in there called hello.pl. To make this file executable over the web, often you would type:

chmod 755 hello.pl

The 755 in that command will vary depending on who you want to be able to execute the file. Here's a detailed explanation:

Readable = 4
Writeable = 2
Executable = 1

The first number is for owner, then group, than everybody. You add together the numbers to make the file permissions how you need them. So say I wanted the owner to be able to read, write and execute. That would be 4 + 2 + 1 = 7. For group to read and execute: 4 + 1 =5. For everyone to read and execute 4 + 1 =5. That's how I get 755 for that command.

Say I wanted User to read, write and execute, but everyone else could only read, it'd be 744.

Hope this isn't too confusing! :)
 
Jadey Excuse me for 'boys' ... i hope you're not angry with me ... I hope you know it was a public and general thanks to everyone posted in the tread ... you too... obviously !!!

I must be sorry even with testuser that help me everytime i need! The word 'boys' was not intended as an affront ...

My little problem is that i'm an italian and i had studied english only at school ... and maybe sometimes it sounds unpretty and grammatically uncorrect ... in my future life i'll study it better !!! :-)))
 
Back
Top