Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Cannot create stunnel.pid

1,218 views
Skip to first unread message

Paul Deering

unread,
Aug 11, 2004, 9:59:42 PM8/11/04
to
Hi All,

For the life of me I can not figure what is wrong. I have compiled and
install stunnel-4.05 on a Solaris 9 system. For some reason I get the
following error message. Any pointer would be welcome.

2004.08.11 15:25:38 LOG3[466:1]: Cannot create pid file /var/run/stunnel.pid
2004.08.11 15:25:38 LOG3[466:1]: create: No such file or directory (2)

# stunnel.conf file

cert = /usr/local/etc/stunnel/stunnel.pem
chroot = /var/run/
# PID is created inside chroot jail
pid = /var/run/stunnel.pid
setuid = nobody
setgid = nogroup

Paul E. Deering, Ph.D.
376 Stocker
Russ College of Engineering and Technology
Athens, OH 45701
PH: (740) 593-2478
FX: (740) 593-0659
dee...@ohiou.edu


Brian Hatch

unread,
Aug 11, 2004, 10:25:56 PM8/11/04
to
--3oCie2+XPXTnK5a5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

> For the life of me I can not figure what is wrong. I have compiled and=
=20
> install stunnel-4.05 on a Solaris 9 system. For some reason I get the=20


> following error message. Any pointer would be welcome.

>=20
> 2004.08.11 15:25:38 LOG3[466:1]: Cannot create pid file /var/run/stunnel.=


pid
> 2004.08.11 15:25:38 LOG3[466:1]: create: No such file or directory (2)

is there a /var/run/ directory? is it writable as the user running
stunnel?

--=20
Brian Hatch The roll of elder
Systems and brother is being
Security Engineer more than adequately
http://www.ifokr.org/bri/ performed ... by my
elder brother.
Every message PGP signed

--3oCie2+XPXTnK5a5
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBGtTJP+Nf30gFDwERApSQAJwNR6erVy8aMc9O+fGRWr56O/liFACeJHhQ
5mBnghr+8W9fBzpHCK3r4zo=
=32Ny
-----END PGP SIGNATURE-----

--3oCie2+XPXTnK5a5--

Colin McKinnon

unread,
Aug 12, 2004, 4:27:24 AM8/12/04
to
On Thursday 12 August 2004 02:58, you wrote:
>
> 2004.08.11 15:25:38 LOG3[466:1]: Cannot create pid file
> /var/run/stunnel.pid 2004.08.11 15:25:38 LOG3[466:1]: create: No such file
> or directory (2)
>

> # stunnel.conf file
>
> cert = /usr/local/etc/stunnel/stunnel.pem
> chroot = /var/run/
> # PID is created inside chroot jail
> pid = /var/run/stunnel.pid
> setuid = nobody
> setgid = nogroup
>

Is there a /var/run/var/run directory? IIRC it does a chroot b4 writing the
pid file.

C.

Paul Deering

unread,
Aug 12, 2004, 6:10:39 AM8/12/04
to
I appreciate the response.

Just for fun I put everything in /tmp and I still get the same error
message. I su to nobody and created a file in /tmp just to be sure I have
the proper permissions.

mailhub{root}32: ls -ld /tmp
drwxrwxrwt 5 root sys 445 Aug 12 05:58 /tmp/


Error message from stunnel
2004.08.12 05:56:47 LOG3[844:1]: Cannot create pid file /tmp/stunnel.pid
2004.08.12 05:56:47 LOG3[844:1]: create: No such file or directory (2)


#stunnel.conf
# Comment it out on Win32
cert = /usr/local/etc/stunnel/stunnel.pem
chroot = /tmp


# PID is created inside chroot jail

pid = /tmp/stunnel.pid


setuid = nobody
setgid = nogroup

At 07:24 PM 08/11/2004 -0700, Brian Hatch wrote:


> > For the life of me I can not figure what is wrong. I have compiled and

> > install stunnel-4.05 on a Solaris 9 system. For some reason I get the

> > following error message. Any pointer would be welcome.
> >

> > 2004.08.11 15:25:38 LOG3[466:1]: Cannot create pid file
> /var/run/stunnel.pid
> > 2004.08.11 15:25:38 LOG3[466:1]: create: No such file or directory (2)
>

>is there a /var/run/ directory? is it writable as the user running
>stunnel?
>
>--

>Brian Hatch The roll of elder
> Systems and brother is being
> Security Engineer more than adequately
>http://www.ifokr.org/bri/ performed ... by my
> elder brother.
>Every message PGP signed

robbi...@gmail.com

unread,
Aug 3, 2020, 5:51:36 PM8/3/20
to
All you need to do is to grant the directory permissions

Then try and restart stunnel worked 100%

@ https://techfashy.com

0 new messages