Old 22nd November 2005, 15:14
asgozzi asgozzi is offline
Junior Member
Join Date: Nov 2005
Location: Stanford, CA
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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)
Reply With Quote
Sponsored Links
Old 22nd November 2005, 15:59
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts

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.
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Safe Mode & Directory Permissions domino General 10 19th December 2005 19:38
Test site?? timbo Installation/Configuration 5 20th November 2005 15:54
user permissions on homedir somnium Installation/Configuration 4 2nd November 2005 23:51
Apache permissions misterm Installation/Configuration 4 8th September 2005 13:31
Backup /home keeping permissions Jellus Installation/Configuration 0 17th August 2005 22:32

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

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