Re: weird xzcat behaviour

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



01.04.2014 17:27, Mark Haney:

> I've been volunteered to try to build a boot image for a Nitrogen 6x
> Freescale SOM board using whatever OS I can make work.  I chose
> Fedora's ARM image since I'm more comfortable with using Fedora.  In
> the process of trying to using xzcat to dump the image to the microSD
> card I noticed something strange.  When I tried:
> 
> sudo xzcat Fedora-Minimal-armhfp-20-1-sda.raw.xz > /dev/sdb
> 
> I would get a 'Permission denied' error.
> 
> But when I ran the same command as root directly, it worked just fine.
>  I'm not sure I've ever encountered a situation where sudo wouldn't
> work like this before. Is there a particular reason for this?  Or is
> this a bug?  For the record, I changed nothing on the device between
> attempts to xzcat the image.

There's nothing strange or weird with that. While xzcat is run via sudo
with elevated rights, the output redirection is done by the user's shell
(i. e. *not* with elevated rights).
Do, for example, something like
sudo date > output.file
and look who's output.file's owner.

-- 
Regards
  mks
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux