#6844 ipa-restore fails when umask is set to 0027
Closed: fixed 6 years ago Opened 7 years ago by pvoborni.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1434924

Description of problem:

Some organizations are setting the umask to 0027 due to security baselines
according to regulations or company internal rules


Version-Release number of selected component (if applicable):
4.4


How reproducible:
Always


Steps to Reproduce:
1. ipa-backup --online --data
2. ipa-restore --online --data /back/up/dir
3. IPA server crippled

Actual results:
/var/lib/dirsrv/slapd-EXAMPLE-COM/ldif/EXAMPLE-COM-ipaca.ldif
/var/lib/dirsrv/slapd-EXAMPLE-COM/ldif/EXAMPLE-COM-userRoot.ldif

and probably others do not provide access rights for the dirsrv user, in this
case 0600


Expected results:
ipa-restore should manually set 0644 for those files to avoid the directory
server not starting anymore


Additional info:

Mitigation:

Set the umask to 0022 (at least temporary)
systemctl start dirsrv@EXAMPLE-COM (if nor running anymore)
re-run ipa-restore --online --data /back/up/dir

Metadata Update from @pvoborni:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1434924

7 years ago

Metadata Update from @pvoborni:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1434924

7 years ago

Metadata Update from @pvoborni:
- Issue tagged with: bug

7 years ago

Metadata Update from @slaykovsky:
- Issue assigned to slaykovsky

6 years ago

Metadata Update from @slaykovsky:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/1262

6 years ago

master:

  • 28f7eda ipa-restore: Set umask to 0022 while restoring

Metadata Update from @tkrizek:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

6 years ago

Metadata Update from @tkrizek:
- Issue set to the milestone: FreeIPA 4.6.2 (was: FreeIPA 4.7)
- Issue status updated to: Open (was: Closed)

6 years ago

ipa-4-6:

  • 74fcdef ipa-restore: Set umask to 0022 while restoring

Metadata Update from @cheimes:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

6 years ago

ipa-4-6:

  • 6833242 Check if user permssions and umask 0022 is set when executing ipa-restore

ipa-4-7:

  • 9d5cc29 Check if user permssions and umask 0022 is set when executing ipa-restore

Login to comment on this ticket.

Metadata