From: Bob Wirka <bobwirka@rtcworks.com>
To: Stephen Hemminger <shemminger@osdl.org>
Cc: netdev@oss.sgi.com, linux-net@vger.kernel.org
Subject: Re: NFS and Network Driver Question
Date: Wed, 20 Oct 2004 11:03:56 -0500 [thread overview]
Message-ID: <41768C6C.6040102@rtcworks.com> (raw)
In-Reply-To: <41768B15.1090402@osdl.org>
No, I was actually taking stupid pills. I had the setuid bit set on
'mount', and it was owned by 'admin'. I had a number of files and
directories owned by 'admin' so that I could ftp files in and out of the
original target system (as admin). It bit me.
Everything seems to be working well now.
Best regards,
Bob Wirka
Realtime Control Works
Stephen Hemminger wrote:
> Bob Wirka wrote:
>
>> Ok, now I feel like I'm taking crazy pills...
>>
>> The embedded system boots up and mounts the root file system on my
>> host laptop. The 'rc.sysinit' startup script executes the command
>> 'mount -a' which should mount /proc, /dev/pts, and /dev/shm, as
>> listed in /etc/fstab. When executed, that command returns "mount:
>> only root can do that".
>>
>> When I get to the bash prompt, 'whoami' reports that I am, indeed,
>> root. A 'mount -a' from the command prompt gives the same result; it
>> doesn't think I'm root for the mount command.
>>
>> I can chown a file owned by root to some other user, and I can create
>> a file or directory in a directory owned by root; so it doesn't
>> always think I'm not root.
>>
> Are you getting bit by the nfs uid mapping on the server. Is it
> mapping your local "root" to "nobody"
> on the server?
>
next prev parent reply other threads:[~2004-10-20 16:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-15 21:31 NFS and Network Driver Question Bob Wirka
2004-10-19 18:03 ` Bob Wirka
2004-10-20 0:19 ` Bob Wirka
2004-10-20 0:54 ` Michael Richardson
2004-10-20 15:47 ` Bob Wirka
2004-10-20 15:58 ` Stephen Hemminger
2004-10-20 16:03 ` Bob Wirka [this message]
2004-10-21 15:09 ` Bob Wirka
2004-10-21 15:50 ` Bob Wirka
2004-10-21 16:17 ` Henrik Nordstrom
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=41768C6C.6040102@rtcworks.com \
--to=bobwirka@rtcworks.com \
--cc=linux-net@vger.kernel.org \
--cc=netdev@oss.sgi.com \
--cc=shemminger@osdl.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;
as well as URLs for NNTP newsgroup(s).