Link to home
Start Free TrialLog in
Avatar of Tessando
TessandoFlag for United States of America

asked on

Ubuntu File Permissions Question for Server Running OpenVPN Access Server

I'm running Ubuntu 14.04.5 on a 64-bit EC2 instance.

I performed in In-Place upgrade for my OpenVPN Access Server yesterday and one of the things the instructions suggest is backing up four particular configuration files.

This is described in this link.

When I navigate to the config file location that I want to backup and run this command:

./bin/sqlite3 ./etc/db/config.db .dump > ./config.db.bak

Open in new window


I get the following result:

mp > ./config.db.bak
-bash: ./config.db.bak: Permission denied

Open in new window


When I add "sudo" in front of the command I get the same result.

Now, the instructions from OpenVPN claim that this can be done while the server is active. In other words, these can be copied while those services are running.

However, I'm a little stumped as to why I can't copy these.

As an administrator, how can I get the proper permissions to backup these configuration files?

Thanks for your help


...
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tessando

ASKER

Thanks for your help.

What ended up resolving my problem was using the "sudo su" command. This gave me the proper permissions to be able to backup those config files.

Thanks!