Edgewall Software
Modify

Opened 14 years ago

Closed 13 years ago

#6106 closed defect (fixed)

trac-admin does not preserve permissions when performing a hotcopy

Reported by: risc@… Owned by: Remy Blank
Priority: normal Milestone: 0.11.3
Component: admin/console Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

as root, i use trac-admin to create a backup using: trac-admin /var/www/trac hotcopy trac-backup

on my machine, the conf directory is 755, owned by www-data, with group www-data. on my machine, the db directory is 775+Sg owned by root, with group www-data.

in the backup, the db directory is demoted to 755. in the backup, both the db and conf directory are owned by root, with group root. i'm writing a script on my end to touchup these permissions. just thought you should know.

Attachments (0)

Change History (8)

comment:1 by anonymous, 14 years ago

i thought i would add, i am running trac-admin as root.

comment:2 by Remy Blank, 13 years ago

Milestone: 0.11.3
Owner: changed from Christopher Lenz to Remy Blank

Right, files are copied with shutil.copy2() which preserves permissions. But directories are created with a simple os.mkdir().

Seems easy enough to fix, I'll give it a shot.

(I know what comes next: file and directory ownership is not preserved either. I'll pass on that one, as this is difficult to get right cross-platform :-)

comment:3 by Remy Blank, 13 years ago

Status: newassigned

Fixed in trunk in [7678]. I'll backport the fix to 0.11.3 once 0.11.2.1 is out.

comment:4 by Remy Blank, 13 years ago

Resolution: fixed
Status: assignedclosed

Backported to 0.11-stable in [7693].

comment:5 by anonymous, 13 years ago

Resolution: fixed
Status: closedreopened

comment:6 by anonymous, 13 years ago

Resolution: fixed
Status: reopenedclosed

comment:7 by anonymous, 13 years ago

Resolution: fixed
Status: closedreopened

comment:8 by Remy Blank, 13 years ago

Resolution: fixed
Status: reopenedclosed

Please stop this.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Remy Blank.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Remy Blank to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.