* want to execute a script having sudo : sudo cryptsetup
@ 2017-09-25 9:48 Kumar, Shrawan
2017-09-27 16:21 ` John Finley
0 siblings, 1 reply; 7+ messages in thread
From: Kumar, Shrawan @ 2017-09-25 9:48 UTC (permalink / raw)
To: yocto; +Cc: connect.shrawan
[-- Attachment #1: Type: text/plain, Size: 293 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 2618 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: want to execute a script having sudo : sudo cryptsetup
2017-09-25 9:48 want to execute a script having sudo : sudo cryptsetup Kumar, Shrawan
@ 2017-09-27 16:21 ` John Finley
2017-09-27 17:22 ` Khem Raj
0 siblings, 1 reply; 7+ messages in thread
From: John Finley @ 2017-09-27 16:21 UTC (permalink / raw)
To: Kumar, Shrawan; +Cc: yocto, connect.shrawan
[-- Attachment #1: Type: text/plain, Size: 918 bytes --]
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@vbox-ubuntu-16$ cat /etc/sudoers.d/john
john ALL=(ALL) NOPASSWD: ALL
john@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@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@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
[-- Attachment #2: Type: text/html, Size: 2317 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: want to execute a script having sudo : sudo cryptsetup
2017-09-27 16:21 ` John Finley
@ 2017-09-27 17:22 ` Khem Raj
2017-09-27 17:28 ` John Finley
0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2017-09-27 17:22 UTC (permalink / raw)
To: John Finley, Kumar, Shrawan; +Cc: yocto, connect.shrawan
[-- Attachment #1: Type: text/plain, Size: 1291 bytes --]
On Wed, Sep 27, 2017 at 9:21 AM John Finley <john.finley@gmail.com> wrote:
> 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:
>
I think you can leverage pseudo tool to emulate the root user during build
john@vbox-ubuntu-16$ cat /etc/sudoers.d/john
> john ALL=(ALL) NOPASSWD: ALL
> john@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@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@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
[-- Attachment #2: Type: text/html, Size: 3268 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: want to execute a script having sudo : sudo cryptsetup
2017-09-27 17:22 ` Khem Raj
@ 2017-09-27 17:28 ` John Finley
2017-09-28 17:18 ` Randy MacLeod
2018-04-24 12:40 ` [EXTERNAL] " Kumar, Shrawan
0 siblings, 2 replies; 7+ messages in thread
From: John Finley @ 2017-09-27 17:28 UTC (permalink / raw)
To: Khem Raj; +Cc: yocto, Kumar, Shrawan, connect.shrawan
[-- Attachment #1: Type: text/plain, Size: 1657 bytes --]
pseudo can't do some of the cryptsetup functions that really require root,
or at least I could not convince it to. Using sudo is not so good, but I
don't think there's an easy way around it for the cryptsetup stuff.
On Wed, Sep 27, 2017 at 10:22 AM, Khem Raj <raj.khem@gmail.com> wrote:
>
> On Wed, Sep 27, 2017 at 9:21 AM John Finley <john.finley@gmail.com> wrote:
>
>> 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:
>>
>
> I think you can leverage pseudo tool to emulate the root user during build
>
> john@vbox-ubuntu-16$ cat /etc/sudoers.d/john
>> john ALL=(ALL) NOPASSWD: ALL
>> john@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@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@yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto
>>>
>>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>
[-- Attachment #2: Type: text/html, Size: 4005 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: want to execute a script having sudo : sudo cryptsetup
2017-09-27 17:28 ` John Finley
@ 2017-09-28 17:18 ` Randy MacLeod
2018-04-24 12:40 ` [EXTERNAL] " Kumar, Shrawan
1 sibling, 0 replies; 7+ messages in thread
From: Randy MacLeod @ 2017-09-28 17:18 UTC (permalink / raw)
To: John Finley, Khem Raj; +Cc: yocto, Kumar, Shrawan, connect.shrawan
On 2017-09-27 01:28 PM, John Finley wrote:
> pseudo can't do some of the cryptsetup functions that really require
> root, or at least I could not convince it to. Using sudo is not so good,
> but I don't think there's an easy way around it for the cryptsetup stuff.
If you can narrow down what's missing, and open an enhancement request
for oe-core-2.5 that would be helpful.
Please take a quick look to see if your ER is it already in this list:
https://bugzilla.yoctoproject.org/buglist.cgi?quicksearch=pseudo&list_id=601276
Sorting by the product column will help.
../Randy
>
> On Wed, Sep 27, 2017 at 10:22 AM, Khem Raj <raj.khem@gmail.com
> <mailto:raj.khem@gmail.com>> wrote:
>
>
> On Wed, Sep 27, 2017 at 9:21 AM John Finley <john.finley@gmail.com
> <mailto:john.finley@gmail.com>> wrote:
>
> 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:
>
>
> I think you can leverage pseudo tool to emulate the root user during
> build
>
> john@vbox-ubuntu-16$ cat /etc/sudoers.d/john
> john ALL=(ALL) NOPASSWD: ALL
> john@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@harman.com <mailto:Shrawan.Kumar@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____
>
--
# Randy MacLeod. WR Linux
# Wind River an Intel Company
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [EXTERNAL] Re: want to execute a script having sudo : sudo cryptsetup
2017-09-27 17:28 ` John Finley
2017-09-28 17:18 ` Randy MacLeod
@ 2018-04-24 12:40 ` Kumar, Shrawan
1 sibling, 0 replies; 7+ messages in thread
From: Kumar, Shrawan @ 2018-04-24 12:40 UTC (permalink / raw)
To: Khem Raj, yocto; +Cc: connect.shrawan
[-- Attachment #1: Type: text/plain, Size: 3344 bytes --]
Hello Team,
Referring to the patch below regarding removal of user & group from sysroot when recipe/package is cleaned using clean/cleansstate/cleanall :
https://patchwork.openembedded.org/patch/119549/
Has this patch been up streamed ?
Regards
Shrawan
From: John Finley [mailto:john.finley@gmail.com]
Sent: 27 September 2017 22:58
To: Khem Raj <raj.khem@gmail.com>
Cc: Kumar, Shrawan <Shrawan.Kumar@harman.com>; connect.shrawan@gmail.com; yocto@yoctoproject.org
Subject: [EXTERNAL] Re: [yocto] want to execute a script having sudo : sudo cryptsetup
pseudo can't do some of the cryptsetup functions that really require root, or at least I could not convince it to. Using sudo is not so good, but I don't think there's an easy way around it for the cryptsetup stuff.
On Wed, Sep 27, 2017 at 10:22 AM, Khem Raj <raj.khem@gmail.com<mailto:raj.khem@gmail.com>> wrote:
On Wed, Sep 27, 2017 at 9:21 AM John Finley <john.finley@gmail.com<mailto:john.finley@gmail.com>> wrote:
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:
I think you can leverage pseudo tool to emulate the root user during build
john@vbox-ubuntu-16$ cat /etc/sudoers.d/john
john ALL=(ALL) NOPASSWD: ALL
john@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@harman.com<mailto:Shrawan.Kumar@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@yoctoproject.org<mailto:yocto@yoctoproject.org>
https://lists.yoctoproject.org/listinfo/yocto<https://clicktime.symantec.com/a/1/MOxSc3tHYimtXz88Uyw80L_8ty0Knji8zD20dvdKy5I=?d=RKN7OsB9MIpXzcBpMHBnqKcb1Fp4icnioT1vSaxtWISHXsnxsOkCjTBMJtEQE5zmwppGt2FSTDf6O8RZUpjOB5J_-rvQ15c_kGcEIGzDdn_QK9kNRYB7uWrGs1ltwQc4bJ2NIdtmoV1SDP5IeGDQ-lO-VCEQCoFAlR-3NcvECednv8-PyNJ3TSzWpn5hOVIf29_J8B-dElh7CNVHaZW_3R5op5VfdJFNT3e4CTXaXXK3PlXTyu8ppHLUeQciuXYRA_kwYHxbE8ALU1A8yX1D7XqhCzAGsrs59jxhD1n1FY4QnKrKJ1b03YaP61d2Pzb_GnyFAi4k66oLWl-Y_h1ySGsdvNNnyGVlrXID_wxD9IkGmXc5qFEPtweylwycMrffg_QvyrnHMmdFgY343MXny-JJEnoE15zcGLORhnfECIyEQ90-sWaPAVAem3riPhc%3D&u=https%3A%2F%2Flists.yoctoproject.org%2Flistinfo%2Fyocto>
--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org<mailto:yocto@yoctoproject.org>
https://lists.yoctoproject.org/listinfo/yocto<https://clicktime.symantec.com/a/1/MOxSc3tHYimtXz88Uyw80L_8ty0Knji8zD20dvdKy5I=?d=RKN7OsB9MIpXzcBpMHBnqKcb1Fp4icnioT1vSaxtWISHXsnxsOkCjTBMJtEQE5zmwppGt2FSTDf6O8RZUpjOB5J_-rvQ15c_kGcEIGzDdn_QK9kNRYB7uWrGs1ltwQc4bJ2NIdtmoV1SDP5IeGDQ-lO-VCEQCoFAlR-3NcvECednv8-PyNJ3TSzWpn5hOVIf29_J8B-dElh7CNVHaZW_3R5op5VfdJFNT3e4CTXaXXK3PlXTyu8ppHLUeQciuXYRA_kwYHxbE8ALU1A8yX1D7XqhCzAGsrs59jxhD1n1FY4QnKrKJ1b03YaP61d2Pzb_GnyFAi4k66oLWl-Y_h1ySGsdvNNnyGVlrXID_wxD9IkGmXc5qFEPtweylwycMrffg_QvyrnHMmdFgY343MXny-JJEnoE15zcGLORhnfECIyEQ90-sWaPAVAem3riPhc%3D&u=https%3A%2F%2Flists.yoctoproject.org%2Flistinfo%2Fyocto>
[-- Attachment #2: Type: text/html, Size: 10551 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: want to execute a script having sudo : sudo cryptsetup
@ 2017-09-25 10:06 Kumar, Shrawan
0 siblings, 0 replies; 7+ messages in thread
From: Kumar, Shrawan @ 2017-09-25 10:06 UTC (permalink / raw)
To: yocto; +Cc: connect.shrawan
[-- Attachment #1: Type: text/plain, Size: 293 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 2931 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2018-04-24 12:54 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-25 9:48 want to execute a script having sudo : sudo cryptsetup Kumar, Shrawan
2017-09-27 16:21 ` John Finley
2017-09-27 17:22 ` Khem Raj
2017-09-27 17:28 ` John Finley
2017-09-28 17:18 ` Randy MacLeod
2018-04-24 12:40 ` [EXTERNAL] " Kumar, Shrawan
2017-09-25 10:06 Kumar, Shrawan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.