Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Boa configuration

Altera_Forum
Honored Contributor II
2,369 Views

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 lot
0 Kudos
12 Replies
Altera_Forum
Honored Contributor II
810 Views

Where is the file that you are modifying?

0 Kudos
Altera_Forum
Honored Contributor II
810 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
810 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
810 Views

 

--- 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
0 Kudos
Altera_Forum
Honored Contributor II
810 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
810 Views

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?

0 Kudos
Altera_Forum
Honored Contributor II
810 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
810 Views

Boa can work well in uClinux.So did you try some other web server in linux on DE2-70?

0 Kudos
Altera_Forum
Honored Contributor II
810 Views

../../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  

 

Well, it looks that that particular error is due to a missing /etc/passwd file?? 

 

-slacker
0 Kudos
Altera_Forum
Honored Contributor II
810 Views

 

--- 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
0 Kudos
Altera_Forum
Honored Contributor II
810 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
810 Views

Hi, 

 

I have tested what I have said in my last post and it didn't go. Then appeared different errors
0 Kudos
Reply