Don't abuse su for dropping user privileges
Like M. Fielder's and M. Hunter's 1986 book, one can find many instances in books, on the World Wide Web, in tutorials, and even on manual pages, of abusing su for dropping superuser privileges and running programs with ordinary user privileges — in
cron
jobs,/etc/rc
scripts,init.d
scripts, and even from/etc/inittab
. They are all wrong.Don't abuse
su
for this purpose. It has never in fact been the function ofsu
, and for the past two decades people have been triggering errors with this abusage. Over the past decade or so, as of 2014, this error has gradually become more and more blatant, going from a few ignorable warning messages in obscure log files to systems that fail to function, but it has in fact been there all of this time.
Source: Don't abuse su for dropping user privileges, an article by Jonathan de Boyne Pollard.