All of lore.kernel.org
 help / color / mirror / Atom feed
From: Belisko Marek <marek.belisko@gmail.com>
To: abuse@basmevissen.nl
Cc: yocto <yocto@yoctoproject.org>
Subject: Re: permissions when installing scripts
Date: Mon, 15 Oct 2018 20:53:34 +0200	[thread overview]
Message-ID: <CAAfyv37MtT+VzEu2eHZtE_KSvGO=tE6Ynk2CZmAt2O3fCttE_g@mail.gmail.com> (raw)
In-Reply-To: <f0a632a1a5264a72d4be11ee371f7d64@basmevissen.nl>

Hi Bas,

On Mon, Oct 15, 2018 at 8:45 PM Bas Mevissen <abuse@basmevissen.nl> wrote:
>
>
>
> cp -a or --preserve(=<something>) optionally combined with other options
> does the trick. However, using install is the better solution.
But -p will keep current user and not root used when installed in
final rootfs (also QA report warnings about host contamination).
I think I'll stick with install ;). Thanks.
>
>
> -- Bas.
>
> On 2018-10-15 14:35, Burton, Ross wrote:
> > As you've discovered, cp doesn't preserve permissions.  Using install
> > -m755 is the idiom.
> >
> > Ross
> > On Mon, 15 Oct 2018 at 11:12, Belisko Marek <marek.belisko@gmail.com>
> > wrote:
> >>
> >> Hi,
> >>
> >> I have package which contains bunch of scripts (with +x flag for
> >> user). When installed in do_install method (simply by copying them to
> >> destination) they loose +x flag. I know copying directly is not best
> >> approach but there exists better way how to keep scripts permissions
> >> like in repo (except calling install -m 755 for all of them)? Thanks.
> >>
> >> BR,
> >>
> >> marek
> >>
> >> --
> >> as simple and primitive as possible
> >> -------------------------------------------------
> >> Marek Belisko - OPEN-NANDRA
> >> Freelance Developer
> >>
> >> Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
> >> Tel: +421 915 052 184
> >> skype: marekwhite
> >> twitter: #opennandra
> >> web: http://open-nandra.com
> >> --
> >> _______________________________________________
> >> yocto mailing list
> >> yocto@yoctoproject.org
> >> https://lists.yoctoproject.org/listinfo/yocto
>

BR,

marek

-- 
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com


  reply	other threads:[~2018-10-15 18:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-15 10:11 permissions when installing scripts Belisko Marek
2018-10-15 12:35 ` Burton, Ross
2018-10-15 18:45   ` Bas Mevissen
2018-10-15 18:53     ` Belisko Marek [this message]
2018-10-15 18:53     ` Burton, Ross
2018-10-15 19:02       ` Bas Mevissen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAfyv37MtT+VzEu2eHZtE_KSvGO=tE6Ynk2CZmAt2O3fCttE_g@mail.gmail.com' \
    --to=marek.belisko@gmail.com \
    --cc=abuse@basmevissen.nl \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.