cpio -i preservation of ownership and permissions

From: Sandels, Mark (Mark.sandels_at_orh.nhs.uk)
Date: 08/28/03

  • Next message: Smith, Mike R.: "Summary: Monitor a specific port"
    Date: Thu, 28 Aug 2003 15:00:21 +0100
    To: tru64-unix-managers@ornl.gov
    
    

    Hi List,
      I've found that a cpio -iBcdumv does not always preserve permissions and
    owner/group ownership
    of directories when the command is run as root. What happens in these cases
    is that the
    owner and group are set to "root" and "system" respectively.

    Has anyone else any experience of this and is there a work-around?

    Mark Sandels
    Systems Developer
    Oxon Acute Health Informatics Service (OAHIS)
    Oxford Radcliffe Hospitals NHS Trust
    Tel: (01865) (2)22879
    Email: mark.sandels@orh.nhs.uk
    Mail: Room 121
                Manor House Annexe
                John Radcliffe Hospital
                Headley Way
                Headington
                Oxford
                OX3 9RR


  • Next message: Smith, Mike R.: "Summary: Monitor a specific port"

    Relevant Pages

    • Re: Apple recommending anti-virus software for Macs?
      ... > To be ultra-safe with the 'rm' command, ... Not a bad idea for root, It would drive me nuts in my user account. ... downloads directory and executing it. ... That I type an EOF is a trivial difference versus 'sudo' exiting ...
      (comp.sys.mac.system)
    • Re: [opensuse] su - -c $command user ???
      ... I'd like to calculate a command-string as root and pass it with su ... into the context of a unprivileged user to run the command not as ... Basically I need to know $d after the daemonuser created and filled ... Note the echo isn't really going to be a fully valuable ...
      (SuSE)
    • Re: System-users and-groups?
      ... bin shouldn't do so much. ... was root and bin... ... Although the daemon user/group are ... as that user runs that command. ...
      (alt.linux)
    • RE: remote ssh for root
      ... forced-commands-only option set, you have to have the command option set. ... execution as root. ... > This message contains confidential information and is ...
      (SSH)
    • Re: grub menu oddity
      ... >>> command (until the manual root command was executed). ... >>> When I first encountered this behavior, it took several reboots for me to ... FWIW - a new CMOS battery is only $3-5 at your local Shaque du Radio ...
      (comp.os.linux.setup)