Hi ,
I have a Sun Enterprise 3500 running Solaris 5.8 .
I'm trying to get a SunOne web server process
started. The webserver must run on port 80.
I understand that ports below 1024 must be
started by a root login. However, shouldn't
I be able to start a server on this port
under my netscape id if I setuid the start script ?
testX:/opt/enterprise/sunone/https-web>ls -ld .
drwxr-xr-x 8 netscape dev 512 Dec 8 05:20
/opt/enterprise/sunone/https-web
testX:/opt/enterprise/sunone/https-web>ls -l
..
..
-rwsr-xr-x 1 root dev 3732 Dec 8 05:20
start
..
..
Thanks,
Carl
See start output below.
testX:/opt/enterprise/sunone/https-web>./start
Sun ONE Web Server 6.1SP2 B04/07/2004 16:09
info: CORE5076: Using [Java HotSpot(TM) Server VM,
Version 1.4.2_04] from [Sun Microsystems Inc.
info: WEB0100: Loading web module in virtual server
[https-web] at [/search]
startup failure: could not bind to port 80 (Permission
denied)
failure: HTTP3127: [LS ls1] http://web:80: Error
creating socket (Permission denied)
failure: HTTP3094: 1 listen sockets could not be
created
failure: CORE3186: Failed to set configuration
testX:/opt/enterprise/sunone/https-web>
|
|
0
|
|
|
|
Reply
|
cnurbw (28)
|
2/24/2005 4:10:50 PM |
|
Solaris won't let you use SUID on a shell script - it's a security
feature. You'll need to become root to startup the web server and bind
to port 80. Try using "su" (eg :- su root -c "./start"), or look into
"sudo".
-Mark
|
|
0
|
|
|
|
Reply
|
Mark
|
2/24/2005 4:41:03 PM
|
|