Linux MS DOS discussions
 help / color / mirror / Atom feed
From: Ryan Underwood <nemesis-lists@icequake.net>
To: linux-msdos@vger.kernel.org
Subject: Re: root can't access files?
Date: Mon, 4 Aug 2003 14:11:43 -0500	[thread overview]
Message-ID: <20030804191143.GI3006@dbz.icequake.net> (raw)
In-Reply-To: <20030804164736.28318.qmail@web14301.mail.yahoo.com>


Hi,

On Mon, Aug 04, 2003 at 09:47:36AM -0700, ToniB wrote:
> --- Ryan Underwood <nemesis-lists@icequake.net> wrote:
>  
> > The problem occurs when:
> > 1) The daemon is run with root privileges
> > 2) The daemon's init script is run through a `sudo`.
> > 
> > DOSEMU checks to the "real" uid, drops privileges to the
> > real uid, and then can no longer access the files which have root
> > permissions.  So it fails starting the user's requested program for
> > 
> 
> 'man sudoers' explains how you can add a line
> to allow users to exec a file or  cmd line.
> 
> You might  want to give access to all users,
> to the command (that ony root can exec now),
> by adding a line like
> 
> USERS-LIST BBS-HOST=cmdline
> 
> to your sudoers file.

Thanks for the reply.  I'm still having trouble seeing how that would
affect the issue.  The problem is not that people are not able to run
sudo; it is that when sudo is used to run the init script, when dosemu
eventually becomes a child process of (a child process of) the init
script, it sees that "hm, this program is running as root, but the real
uid of the person who started it is not root", and drops the root
privileges that were afforded to it by sudo.  When a "real" root login
runs the init script, then dosemu sees that the real uid matches the
effective uid, and doesn't drop privileges.

Do you see what I mean?

-- 
Ryan Underwood, <nemesis at icequake.net>, icq=10317253

  parent reply	other threads:[~2003-08-04 19:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-03  2:50 root can't access files? Ryan Underwood
2003-08-03  3:01 ` Ryan Underwood
2003-08-04  2:00   ` Ryan Underwood
     [not found]     ` <20030804164736.28318.qmail@web14301.mail.yahoo.com>
2003-08-04 19:11       ` Ryan Underwood [this message]
2003-08-04 22:40     ` Bart Oldeman
2003-08-29  4:39       ` Ryan Underwood
2003-08-29  9:37         ` Bart Oldeman
2003-08-29 19:01           ` Ryan Underwood

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=20030804191143.GI3006@dbz.icequake.net \
    --to=nemesis-lists@icequake.net \
    --cc=linux-msdos@vger.kernel.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