NBackup fails with error code 1
-------------------------------

                 Key: CORE-3540
                 URL: http://tracker.firebirdsql.org/browse/CORE-3540
             Project: Firebird Core
          Issue Type: Bug
          Components: NBACKUP
    Affects Versions: 2.5.0
         Environment: Kubuntu Linux version 2.6.32-26-generic (buildd@rothera) 
(gcc version 4.4.3 (Ubuntu
4.4.3-4ubuntu5) ) #48-Ubuntu SMP Wed Nov 24 09:00:03 UTC 2010
Firebird 2.5 SuperServer
Firebird NBackup (/opt/firebird/bin/nbackup) Physical Backup Manager version 
LI-V2.5.0.26074 Firebird 2.5

            Reporter: Jeffrey Zullo


Running the nbackup command as a non-root fails with the error message
Failure: Error (1) opening database file: /db/ib/path/database.gdb

The command being executed is:
/opt/firebird/bin/nbackup -U sysdba -P ... -B 0 
localhost:/db/ib/path/database.gdb /path/to/backup/to.nbk

The same exact command works as:
sudo /opt/firebird/bin/nbackup -U sysdba -P ... -B 0 
localhost:/db/ib/path/database.gdb /path/to/backup/to.nbk

The user executing the command is a member of the firebird group, and the 
database and nbackup programs are owned by firebird and in the firebird group.
The error code seems to specify "operation not permitted." GBAK runs fine 
without sudo.

Expected behavior: running nbackup as a member of the firebird group will 
execute without needing to sudo as root.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to