Quantcast
Channel: Untar with root: is it possible to set the uid? - Server Fault
Browsing latest articles
Browse All 3 View Live

Answer by jtimberman for Untar with root: is it possible to set the uid?

You can run the chef execute resource as a particular user:execute "tar -xf /path/to/your/tarfile.tar" do user "someone"endExecute Resource Documentation

View Article



Answer by larsks for Untar with root: is it possible to set the uid?

Oddly enough, you can get closer to what you want using (GNU) cpio with your tar archive. GNU cpio supports tar format files, and provides the -R command line option to set the user and group of...

View Article

Untar with root: is it possible to set the uid?

Is it possible to tell tar to unpack the archive and set the uid/gid to a specific one, when you run tar as root (while using chef) ?Things I already know:I can use -o to extract as root, then chown...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images