Re: Can't get the set-user-id bit to work

2005-12-27 Thread Paul Jarc
Sebastian Tennant <[EMAIL PROTECTED]> wrote: > OK, but mandb _is_ a member of the root group, so shouldn't it be able > to write files in /tmp with the permissions as they stand? No, you'd have to make it setuid to root, or setgid to the root group. The user/group associations in /etc/passwd and

Re: Can't get the set-user-id bit to work

2005-12-27 Thread Sebastian Tennant
[EMAIL PROTECTED] (Paul Jarc) wrote: > Sebastian Tennant <[EMAIL PROTECTED]> wrote: >> I have a 3-line script; foo: > > The setuid bit works only for binaries, not scripts. This is a > limitation of the kernel, necessary for security. Ah. I read the chmod manpage and some stuff in the find Info

Re: HISTCMD variable always returns 1 when used in PROMPT_COMMAND, bash 3.1

2005-12-27 Thread Chet Ramey
Arjen Meek wrote: > Hello, > > I'm having a problem in bash 3.1 that I'm pretty sure is a bug. As > indicated in the subject, the HISTCMD variable always returns 1 when > used in PROMPT_COMMAND , rather than the actual number of the current > line in the history. It's not a bug. Bash-3.1 return

Re: bash-3.1.1 parses arrays slightly incorrectly

2005-12-27 Thread Chet Ramey
Mike Frysinger wrote: > On Saturday 24 December 2005 13:27, Chet Ramey wrote: >> Mike Frysinger wrote: >>> On Thu, Dec 22, 2005 at 09:24:06AM -0500, Chet Ramey wrote: Bash-Release: 3.1 Patch-ID: bash31-001 Bug-Description: There are parsing problems with compound assig

Re: Can't get the set-user-id bit to work

2005-12-27 Thread Paul Jarc
Sebastian Tennant <[EMAIL PROTECTED]> wrote: > I have a 3-line script; foo: The setuid bit works only for binaries, not scripts. This is a limitation of the kernel, necessary for security. > A cron.daily script handles mandb. I elected to install it with the > set-user-id bit set, as you can se

Can't get the set-user-id bit to work

2005-12-27 Thread Sebastian Tennant
Hi all, If it's a festive time of year where you are then I hope you're enjoying it. First of all, apologies if this is not the correct list for this query. Perhaps you could suggest where else I should go. I have a 3-line script; foo: #!/bin/bash id -u # EUID id -u -r # `re

set -x and $''

2005-12-27 Thread Dan Jacobson
Interesting, here in big5 land I notice set -x will encode into octal its output unless the item has certian printing non alphanumerics in it I suppose. Anyways, there should be a way to tell set -x that one doesn't want the $'' help, and would just like the raw chars. Also a way to have set -x pri