OpenSolaris

Printable Version Enter a New Search
Bug ID 6648652
Synopsis ufsdump prints confusing error messages when run as non-root user
State 10-Fix Delivered (Fix available in build)
Category:Subcategory utility:filesystem
Keywords rtiq_reviewed
Responsible Engineer Viswanathan Kannappan
Reported Against
Duplicate Of
Introduced In solaris_8
Commit to Fix snv_87
Fixed In snv_87
Release Fixed solaris_nevada(snv_87)
Related Bugs 4448872 , 4839710 , 4845221 , 4961690 , 6649117 , 6676057 , 6698236 , 6752607
Submit Date 9-January-2008
Last Update Date 9-April-2008
Description
When ufsdump starts, it does a roll log operation just before the
actual dump starts. roll log [rl_roll_log()] function goes on to
mount/unmount the filesystem in order to flush metadata from UFS log
to disk.

A non-root user will never be able to roll log which is not checked
in the ufsdump code. It proceeds to roll log and fails with the
following error message which is confusing:

$ /usr/sbin/ufsdump 4f /tmp/dump /var
Unable to create temporary directory in any of the directories listed below:
        /tmp/
        /var/tmp/
        /
Please correct this problem and rerun the program.
  DUMP: Date of this level 0 dump: Wed Jan 09 19:38:19 2008
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/rdsk/c0t1d0s3 (v4u-60a:/var) to /tmp/dump
  DUMP: Mapping (Pass I) [regular files]
  DUMP: Mapping (Pass II) [directories]
  DUMP: Writing 32 Kilobyte records
  DUMP: Estimated 646 blocks (323KB).
  DUMP: Dumping (Pass III) [directories]
  DUMP: Dumping (Pass IV) [regular files]
  DUMP: 574 blocks (287KB) on 1 volume at 1047 KB/sec
  DUMP: DUMP IS DONE
$
Work Around
-> Run ufsdump as root user to avoid this failure.
-> Safely ignore error message as it does not affect functionality by
   any means.
Comments
N/A