116 reputation
5
bio website user.it.uu.se/~embe8573
location Uppsala, Sweden
age 31
visits member for 2 years
seen Oct 23 '12 at 19:05

Emanuel Berg

Hire me! Programmer, Swedish university degree in Computer Science.

computer projects (includes CV, letters, code, screenshots)

internet activity (where to find me)

Check out some of my Unix & Linux tech writing.


Jul
14
awarded  Autobiographer
Jul
8
awarded  Scholar
Jul
8
comment MySQL/CGI: password in C source file unsafe?
Yes, exactly right. Works with a 700 file now. Check out edit 2.
Jul
8
accepted MySQL/CGI: password in C source file unsafe?
Jul
8
revised MySQL/CGI: password in C source file unsafe?
added 253 characters in body
Jul
8
comment What not to reveal of OS configuration
github: That's more or less what I've done, only problem is that it is a software server so it can only be reached when I'm online. Not very useful so far that is... Perhaps github or some other resource can host it. Thing is, I want it to look my way, I don't want a profile page at a career community. Open Source: I agree 100%, and not just for career but for personal improvement (if there even is a contradiction).
Jul
7
awarded  Supporter
Jul
7
asked What not to reveal of OS configuration
Jul
6
comment MySQL/CGI: password in C source file unsafe?
I didn't find any httpd with ps axuf - is this something that has to be monitored for a span of time? But, with su -c "lsof -i | head -n 1 ; lsof -i | grep :http" I found 10 files running the apache2 command: nine with user www-data, and one with root. Is that of use?
Jul
5
comment MySQL/CGI: password in C source file unsafe?
It is a web interface that reads from a database. Right now, when I use my ordinary user and start a browser, and try, it crashes if the permissions of the login file are 0700 (not because of the check). It needs read rights, probably because of the fopen line. Or, will this be OK when I have the correct owner? And what should that be? Hidden: It is not a directory but a file, but OK, removed the dot.
Jul
4
awarded  Editor
Jul
4
revised MySQL/CGI: password in C source file unsafe?
added code
Jul
4
comment MySQL/CGI: password in C source file unsafe?
See the edit. I got server error if I took away the read rights. 644 was the lowest I got (on group and other). Also, I didn't understand what you said about ownership? (This is the commented region.)
Jul
4
awarded  Student
Jul
3
asked MySQL/CGI: password in C source file unsafe?