HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   GCC Permissions (http://www.howtoforge.com/forums/showthread.php?t=1365)

asgozzi 22nd November 2005 14:14

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

falko 22nd November 2005 14:59

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.


All times are GMT +2. The time now is 13:19.

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