"File not found"

HvRooyen

Senior Member
Joined
Aug 14, 2006
Messages
590
Reaction score
96
Location
Bloemfontein
Can someone please point my nose in the right direction with this noob problem?
Trying to get Openvpn bridging going. This includes calling the script /etc/openvpn/bridgestart from /etc/init.d/openvpn. Processes run as root, with permissions on both files exactly the same.

My problem is that the first script exits with error "File not found". I get the same if I try to execute the script from command line, although I can ls or rename it to my heart's content.

WTF?
 
You need to be a bit more specific since your description leaves much to the imagination.

/etc/openvpn/brigestart exists?
ls -l of /etc/openvpn please.

Same with /etc/init.d/openvpn.

My guess would be that /etc/openvpn/brigestart should be executable, but it is not, therefore making it a worthless normal txt file. You need to change permissions on that script and make it executable:
chmod +x /etc/openvpn/bridgestart

But give us the output of /etc/init.d/openvpn, the script and the ls output and we can be far more accurate.
:)
 
Noob problem 2: Do not try to fix things that mess up routing via remote access. Will need to attend to this further tonight, when I have physical access again.
However:
whereis openvpn reported file not found (!). As said above, I could see the file easy enough with cd / ls, no misspellings.

/etc/init.d/openvpn as well as /etc/openvpn/bridgestart had read, write and executable status for root. I can not remember the rest (see above). Openvpn ran as root.

Thanks
Henk
 
this might be an irritating question but, do those files have any uppercase in them?
 
It runs as root without any problems?

No file issues what so ever?

How did you install OpenVPN? Could it be that you need to add your normal user to a certain group in order to get it to run?
 
OpenVPN installed the easy way, via GUI frontend to apt in Ubuntu. Runs fine without any issues. What I am trying to do is change the TUN interface to TAP (i.e. bridge rather than tunnel, as Samba does not like the tunnel. In order to get br0 running while preserving connectivity, the init.d/openvpn script needs to call bridgestart when openvpn starts (and no earlier!).

I manage the machine remotely - was working in Webmin (logged in as the ubuntu non-root admin!). However: Starting openvpn via the init.d scripts showed openvpn running as root, so I deduce from this that privileges are fine. Am I missing something here perhaps?
 
Top
Sign up to the MyBroadband newsletter
X