HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   GCC Permissions (

asgozzi 22nd November 2005 15:14

GCC Permissions
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:


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:


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:

falko 22nd November 2005 15:59

Some things can only be done by root...

A workaround might be to use sudo. Run

apt-get install sudo
to install it. You have to create /etc/sudoers. That file specifies who is allowed to do what.


man sudo
man sudoers

to find out more.

All times are GMT +2. The time now is 22:32.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.