Voytek,
I would strongly recommand to avoid touching files which come from
the package management system, otherwise you may confuse the package
managers and/or loose your changes. In general it's better not to create/change
files under the "standard" directories like /bin /sbin /usr/bin /usr/sbin because
even if today it's a new file you created, tommorow a new package might be installed
and override it.
That's what /usr/local/ was set aside for - local programs/system-files etc.
You should create your own scripts (e.g. I put mine under /usr/local/sbin for
system-related stuff).
Cheers,
--Amos
PS - Did you get the question I sent you a week or so ago?
Voytek wrote:
Greg,
'adduser' is a link to useradd (binary):
# ls -l adduser lrwxrwxrwx 1 root root 7 Jun 27 2003 adduser -> useradd
can I smply 'rm adduser'; then, create 'adduser' script that calls 'useradd -s /bin/false' ?
... I'm not creating mischief deleting links in /usr/sbin...?
or, should I leave the link alone, and, create script elsewhere to call it ?
<quote who="Voytek">
<quote who="Greg">
Greg,
OK, adduser call useradd, so, I'll try passing it an option '-s /bin/false'
# ./useradd usage: useradd [-u uid [-o]] [-g group] [-G group,...] [-d home] [-s shell] [-c comment] [-m [-k template]] [-f inactive] [-e expire ] [-p passwd] [-M] [-n] [-r] name useradd -D [-g group] [-b base] [-s shell] [-f inactive] [-e expire ]
-- Voytek -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
