From: "Денис Смирнов" <mithraen@freesource.info>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] mkimage-profiles или hasher -- кто-то не работает
Date: Wed, 13 Aug 2014 00:21:07 +0400
Message-ID: <20140812202107.GD23554@mw.mithraen.ru> (raw)
In-Reply-To: <20140812141244.GA28809@imap.altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 687 bytes --]
On Tue, Aug 12, 2014 at 06:12:44PM +0400, Michael Shigorin wrote:
>> Я нашел в чем проблема: видимо mkimage создает тот самый
>> script.sh напрямую. В итоге из-за локального umask 007 к этому
>> файлу был доступ от юзера, но не было доступа из hasher.
>> Локально проблему решил umask 0 перед сборкой.
chmod +x это неправильно:
Вот тебе простой скрипт для теста:
#!/bin/sh
touch test.file
umask 0
chmod 0 test.file
chmod +x test.file
ls -l test.file
umask 007
chmod 0 test.file
chmod +x test.file
ls -l test.file
chmod +x в первом и втором случае дает отличающийся результат
Глянь man chmod на предмет umask
--
С уважением, Денис
http://mithraen.ru/
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
next prev parent reply other threads:[~2014-08-12 20:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-12 0:13 Денис Смирнов
2014-08-12 9:46 ` Michael Shigorin
2014-08-12 14:02 ` Денис Смирнов
2014-08-12 14:12 ` Michael Shigorin
2014-08-12 20:21 ` Денис Смирнов [this message]
2014-08-13 10:19 ` Michael Shigorin
2014-08-13 10:29 ` Денис Смирнов
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=20140812202107.GD23554@mw.mithraen.ru \
--to=mithraen@freesource.info \
--cc=sisyphus@lists.altlinux.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
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git