Results 1 to 3 of 3
guys i have a question, i made a c code and gcc -o code code.c and i want only the root to run it so i did sudo chown root ...
- 01-18-2009 #1
[SOLVED] after compiling c file
guys i have a question, i made a c code and gcc -o code code.c and i want only the root to run it so i did sudo chown root code && sudo chmod +s code but when i try it by any other users it runs normally so why?
Dual Booting Ubuntu 10.04, Windows 7
Toshiba Satellite A200-1M5, Duo Core 2.0 Ghz, 1 Gigs RAM, 256 Intel Card
You are registered Linux user number 490788
Happy Linuxing
- 01-19-2009 #2
Try these commands
If above two commands didn't work,then post output ofchown root:root binary_filename
chmod 744 binary_filename
ls -l binary_filename- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 01-19-2009 #3
thnx dude ur solution was 80% working but the 100% one which worked with me was like this:
thnxsudo chown root:root binary_filename
sudo chmod +s binary_filename
Dual Booting Ubuntu 10.04, Windows 7
Toshiba Satellite A200-1M5, Duo Core 2.0 Ghz, 1 Gigs RAM, 256 Intel Card
You are registered Linux user number 490788
Happy Linuxing


