The simple answer is, you can't.
That is, you cannot do it the "windows way".
However ... there are things you can do.
If you own the file you can use the GUI to modify it's permissions.
Right-click the file icon and select "properties" then the "permissions" tab.
You can use chmod in a terminal - you have to be root, normally, to do this.
Open a terminal, su <password>
chmod <permissions> filename
The easiest way of using this is to use the octal permissions and just change the lot. For this you need to understand binary counting.
Octal numbers are 3-bit binary.
Read permission = 4 (binary 100)
Write permission = 2 (binary 010)
Execute permission = 1 (binary 001)
For combinations of these, just add up the values.
So read/write = 6 and read/execute = 5 and read/write/execute = 7
Since you normally want to be able to see any file you can use, the most common permissions are 4, 5, 6 and 7
One of these numbers is assigned to each of the three classes from before.
So
chmod 755 foo.bar
gives read/execute of file foo.bar to group members and others, but the owner can do anything.
chmod 400 foo.bar
gives read-only access ot the owner, and nobody else can see the file or nothing.
If you look at a text file with ls -l
ls -l fubar.txt
-rw-rw-r-- ownername groupname 2224 Apr 01 22:59 fubar.txt
this means that the owner can read and write the file but not execute (fair enough since you wouldn't normally execute plain text files) Any member of the group can also read and write to it, but anyone else can only read it.
If you only want the owner to read it you do
chmod 600 fubar.txt
then the list becomes
ls -l fubar.txt
-rw------- ownername groupname 2224 Apr 01 22:59 fubar.txt
but if it is a script file, you'll want to be able to execute it, so you'd want to add execution (=1) to your permissions thus:
chmod 700 fubar.txt
and you'll get:
ls -l fubar.txt
-rwx------ ownername groupname 2224 Apr 01 22:59 fubar.txt
That should hold you.
If you think thisis sparce - go read the
rules - I think it's the ninth bullet.
There are many tutorials on the web - google is your freind.
Also try "info coreutils chmod"
http://catcode.com/teachmod/
http://www.zachjorgensen.net/za/chmodtutor.html
http://www.webmasterinabox.net/kb/chmod.html
nuff said