Click to See Complete Forum and Search --> : Hints over the concept of permissions...


sixfeetsix
11-12-2001, 02:52 PM
I installed the whole LFS and everything seems to work, even my hardware, but now I'm trying to install on it the packages to have KDE.

So I'm trying to run ./install.gcc (lcms 1.07 package) and it answers 'premission denied'.

So I check the readme file and it says:

"Probably you will need to give execute permission to this file!"

Now, how do I give execute permission to a file?

Thanks in advance

bdg1983
11-12-2001, 02:59 PM
chmod +x (file)

Choozo
11-12-2001, 03:00 PM
chmod +x [filename] should do the trick.

ph34r
11-12-2001, 04:05 PM
And, do a dir -l

-rw-r--r-- 1 sj users 0 Nov 12 15:00 a_file

its a regular file, the user sj can read and write to it, anyone in the users group can read it, and anyone on the system can read it.

chmod +x a_file
-rwxr-xr-x 1 sj users 0 Nov 12 15:00 a_file*

Now sj can execute it, any one in the group users can execute it, and anyone on the system can execute it, assuming that it actually can be executed (a shell script, etc.).