[LBo] Hi guys

Jisao dimark at securenet.net
Mon Sep 24 02:11:48 CEST 2007


Bert Van Kets wrote:
> As it is possible you will have to be root to install the 
> application you can just as well open a terminal window, get root 
> priviliges through the "su" command and then do "chmod 777 [filename]".
> that's:
> - su (will ask for the root or user password, depending on the distribution)
> - chmod 777 [filename] (replace [filename] with the filename)
> you can then run the command. Many times you will have to precede it with ./
>
> Bert
>   

Doing a chmod 777 might be an easy way, but it is not a safe way to do 
that. You want to give the right to your user only, not the whole world, 
including potential meanies.

Better to run this command as root:

chmod u+x my_file_to_be_executed

or

chmod 744 or 764 file_to_be_executed

(4 is read, 2 is write and 1 is execute - first digit is user, second is 
group, and third is other, i.e. everybody else)

Jisao




More information about the QnA mailing list