zsh-workers
 help / color / mirror / code / Atom feed
From: Dave Yost <Dave@Yost.com>
To: zsh-workers@sunsite.dk
Subject: builtin setuid and setgid commands
Date: Tue, 12 Sep 2006 12:16:40 -0700	[thread overview]
Message-ID: <pdy98830624063bc12cb7255de8@[192.168.1.2]> (raw)

Zshell should have builtins to call the setuid and setgid system calls.

With this feature, one can write a shell script that is executed by 
root but runs as another user.

The usefulness of this feature came up in the context of the 
mysql.server script, which starts/stops the server and is run by root 
at boot time.  It would be nice if the script itself could use a 
setuid command to ensure that it is running as the mysql user.

Thanks

Dave


             reply	other threads:[~2006-09-12 19:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-12 19:16 Dave Yost [this message]
     [not found] <pdy98830624063bc12cb7255de8@192.168.1.2>
2006-09-12 19:51 ` Mikael Magnusson
2006-09-12 20:57   ` Dave Yost
2006-09-13  0:56     ` Bart Schaefer

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='pdy98830624063bc12cb7255de8@[192.168.1.2]' \
    --to=dave@yost.com \
    --cc=zsh-workers@sunsite.dk \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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).