GCC Permissions

Discussion in 'Installation/Configuration' started by asgozzi, Nov 22, 2005.

  1. asgozzi

    asgozzi New Member

    hi.
    my problem is probably quite simple, but I have no clue of how to solve it.
    following this site's outstanding tutorials I set up a small debian server to run at home.ssh, apache and pure-ftpd are up and running really well.
    i obviously have root access but I created also a user account for my friends to come and design/compile their software on it (via ssh).
    the trouble is I can't make the gcc compiler to work for them - it seems the they don't have the rights to use it.the directory is chmodded 7 for the account so it shouldn't be a file output problem.

    this is when i try to compile it with the remote account:

    Code:
    tester@amoeba:~/ROMEO/C$ gcc -Wall -o LCS2b LCS2b.c
    /usr/bin/ld: cannot open output file LCS2b: Permission denied
    collect2: ld returned 1 exit status
    
    and this is when the root's doing it:

    Code:
    amoeba:/home/tester/ROMEO/C# gcc -Wall -o LCS2b LCS2b.c
    amoeba:/home/tester/ROMEO/C# ls
    LCS2b  LCS2b.c  LCS2.c
    

    does anybody have a clue of how to fix this?

    tnx (and sorry for my shameful english) :cool:
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Some things can only be done by root...

    A workaround might be to use sudo. Run
    Code:
    apt-get install sudo
    to install it. You have to create /etc/sudoers. That file specifies who is allowed to do what.

    Run
    Code:
    man sudo
    man sudoers
    to find out more.
     

Share This Page