From: Kyle Farnsworth <kyle@farnsworthtech.com>
To: openembedded-core@lists.openembedded.org
Subject: tinylogin ends up with group/user id 1000
Date: Wed, 06 Feb 2013 15:49:27 -0600 [thread overview]
Message-ID: <5112CFE7.8070300@farnsworthtech.com> (raw)
tinylogin installs the executable using the mode setting "-m 4755" which
sets the userID bit (-rwsr-xr-x). From what I read that seems like the
right thing to do. But when it gets added to the rootfs image it ends
up with a group and user id = 1000. Then when getty attempts to login I
get this message:
login: cannot set groups: Operations not permitted
I did enough debugging to find this occurs when it makes a syscall to
setgroups. If I change the install to use mode "-m 0755" the group/user
id ends up being 0 and it works.
Where is the logic that determines group/user ids and why would it use
1000? Can I override it?
Kyle
reply other threads:[~2013-02-08 7:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=5112CFE7.8070300@farnsworthtech.com \
--to=kyle@farnsworthtech.com \
--cc=openembedded-core@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox