[yocto] want to execute a script having sudo : sudo cryptsetup

John Finley john.finley at gmail.com
Wed Sep 27 09:21:03 PDT 2017


Try making it so the user doing the build is not prompted for a password
when they do "sudo". I have this in my vm:
    john at vbox-ubuntu-16$ cat /etc/sudoers.d/john
    john ALL=(ALL) NOPASSWD: ALL
    john at vbox-ubuntu-16$
I don't know if that's all that's needed; I have to google it every time.

On Mon, Sep 25, 2017 at 2:48 AM, Kumar, Shrawan <Shrawan.Kumar at harman.com>
wrote:

> Hello Team ,
>
>
>
> I am trying to achieve below from yocto , do we have a way  ?
>
>
>
>
>
> dd if=/dev/zero of=hello.enc bs=4k count=$400
>
> mknod /dev/loop_dev_0
>
> losetup /dev/loop_dev_0 hello.enc
>
> *sudo* cryptsetup --type=plain open /dev/loop_dev_0  plainMap < $2
>
>
>
>
>
>
>
>
>
> Thanks and Regards
>
> Shrawan
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170927/175ac085/attachment.html>


More information about the yocto mailing list