- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
When I execute boa I receive an error as: --- Quote Start --- [30/Nov/1999:00:14:38 +0000] No such user: root --- Quote End --- I have tried to configure boa but I haven't succeeded . I have changed some parameters of "etc/boa.conf", I Also have inserted some printf's in "config.c" to check if the information that is read is correct. I have noticed that information that is readed is always the same althought I have modified boa.conf. This is the correct file to change the configuration of Boa?, or which things I do wrong. PD: I have a DE2-70 with uclinux MMU Thanks a lotLink Copied
12 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Where is the file that you are modifying?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have found two boa.conf, and I have changed the two of them to know what happened. The first path is: /nios2-linux/uClinux-dist/romfs/etc/boa.conf The second path: /nios2-linux/uClinux-dist/romfs/home/httpd/boa.conf I have tried to change user to nobody, to try to avoid this error: --- Quote Start --- [30/Nov/1999:00:14:38 +0000] No such user: root --- Quote End --- Thanks a lot- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a running boa (on a No-MMU installation)
in my /etc/boa there is (comment lines deleted) Port 80 User root Group root ServerName www.nios2.com (http://www.nios2.com) DocumentRoot /home/httpd UserDir public_html DirectoryIndex index.html KeepAliveMax 100 KeepAliveTimeout 20 MimeTypes /etc/mime.types DefaultType text/html ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/ (www.nios2.com (http://www.nios2.com) seems to be quite irrelevant, I don't have such a thing) Moreover I do have a user ftp with no password: cat /etc/passwd root:$1$9T/VnwvK$ftljw4uPOFUdEHO.v3yh5/:0:0:root:/:/bin/sh ftp:x:500:500:FTP User:/home/ftp: and a directory /home/ftp for boa to use. -Michael- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Hi, I have found two boa.conf, and I have changed the two of them to know what happened. The first path is: /nios2-linux/uClinux-dist/romfs/etc/boa.conf The second path: /nios2-linux/uClinux-dist/romfs/home/httpd/boa.conf I have tried to change user to nobody, to try to avoid this error: Thanks a lot --- Quote End --- If you modify either of those, they will get overwritten on build. You should edit the one in your vendor directory e.g. vendors/Altera/common/boa.conf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Many thanks for answers. I have changed the parameter user to nobody, the error: --- Quote Start --- No such user:root --- Quote End --- has disappeared. Althought now has appeared another one : --- Quote Start --- [30/Nov/1999:00:00:15 +0000] ../../boa-0.94.14rc21/src/boa.c:262 (drop_privs) - getpwuid: No such file or directory child process exit abnormally.: No such file or directory --- Quote End --- I will continue searching a solution, and thanks a lot anyway- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I had the same problem with you.Now I almost gave up.Maybe boa is impossible to work in Linux on DE2-70...But I wandering that if you found the solutions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It's very unlikely that this can't work, I use boa happily on a NEEK board (with uClinux NoMMU). Hardware issues should not affect boa in any way.
-Michael- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
../../boa-0.94.14rc21/src/boa.c:262 (drop_privs) - getpwuid: No such file or directory
child process exit abnormally.: No such file or directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- did you try some other web server in linux on DE2-70? --- Quote End --- I don't have a DE2-70. But as said, hardware should not matter here. -Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I haven't solutioned that problem I gave up. But the other day I found a post about this theme. It suggested to comment two lines of code(Lines that give the error). These lines are relationed with ethernet's security, so boa can run without them. I don't know if it goes, I have to prove it during this week. In /src/boa.c in function drop_privs, comment these lines:
DIE("getpwuid");
DIE("initgroups");
Please keep inform if you find the solution for this trouble, I also will try it. Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have tested what I have said in my last post and it didn't go. Then appeared different errors
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page