|Version 3 (modified by jamesog, 10 years ago) (diff)|
Running Without Root Privilege
- System Requirements
- Comparison With Other Systems
- Restoring Files
- Verify and Restore Whole Backups
- Checking Space Usage
- Managing Client Accounts
- Regular Maintenance
- Fixing Corruption on Server
- Recovering from Lost Keys
- Pull data from a USB hdd
- Recipies and HOWTOs
- Logging Output
- Related Projects
- Developers Documentation
- Source Code Repository
- Coding Style
- Current Development Progress
- Future Development Plans
- Betas and Release Candidates
- Build Automation
It is possible to run both the server and client without root privileges.
The server, by default, runs as a non-root user. However, it expects at least to be launched as as root and then changes user to a specified user as soon as it can, simply for administrative convenience. The server uses a port greater than 1024, so it doesn't need root to start.
To run it entirely as a non-root user, edit the bbstored.conf file, and remove the User directive from the Server section. Then simply run the server as your desired user.
Of course, the user that you configure the server to run as must be able to read the configuration file, read and write the backup store, and read and write to the backup state directory.
The client requires root privilege for normal operation, since it must be able to access all files to back them up. However, it is possible to run the client as a non-root user, with certain limitations.
Follow the installation instructions, but install the executable files manually to somewhere in your home directory. Then use bbackupd-config to configure the daemon, but use a directory other than /etc/box - probably somewhere in your home directory.
All directories you specify to be backed up must be readable, and all files must be owned by the user and readable to that user.
Important: If any file or directory is not readable by this user, the backup process will skip that file or directory. Keep an eye on the logs for reports of this failure.
Non-root operation of the backup client is recommended only for testing, and should not be relied on in a production environment.