Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15222 - updatedb --localuser is broken (su problem)
Summary: updatedb --localuser is broken (su problem)
Status: RESOLVED DUPLICATE of bug 15014
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-06 11:57 UTC by Stanislav Brabec
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stanislav Brabec 2003-02-06 11:57:54 UTC
updatedb --localuser is broken.

Script expects su arguments - su -c "command".

Either fix script or install better (maybe standard) su command, which
understand -c (and even better also -l).

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-08 02:31:55 UTC
If all else fails, RTFM ?  The su we use have '-' that behave the same as '-l'.
Also, could you please try to formulate your exact problem better, as well
as with maybe some examples and what would have been the expected result ?

Anyhow, what is seems like you want, is:

 # su - -c updatedb --localuser
Comment 2 Stanislav Brabec 2003-02-10 05:27:55 UTC
Sorry, it was my fault (man page contains -c inside text, not as subtitle).

The problem seems to be little different:

su nobody -c command

does nothing (at least on my machine), because /etc/passwd contains:

nobody:x:65534:65534:nobody:/:/bin/false

Other su implementations does not use default shell value, or only for login shells.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-16 18:40:33 UTC
Ok, that is better =)  Will have a look at our su .. should not be difficult to
patch.
Comment 4 Donny Davies (RETIRED) gentoo-dev 2003-02-23 14:45:24 UTC
Az is the man.
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-23 19:31:49 UTC
Ok, last problem is dup of 15014.

*** This bug has been marked as a duplicate of 15014 ***