On Tue, Nov 16, 1999 at 12:52:45PM +0100, kevin lyda wrote:
> Why did the person replace /bin/sh? Because there's no way for a
> regular user to change their shell on a Solaris box with a "files"
> passwd target. You have to su to root and edit /etc/passwd. Of
> course you have to so to root to copy bash over sh...
From man passwd
-r Specifies the repository to which an operation is
applied. The supported repositories are files, nis
, or nisplus.
-e Change the login shell. For the files repository,
this only works for the super-user. Normal users
may change the nis or nisplus repositories. The
choice of shell is limited by the requirements of
getusershell(3C). If the user currently has a
shell that is not allowed by getusershell , only
root may change it.
"As with most of my theories, this one doesn't hold up to close
scrutiny, but it's surprisingly resilient to casual criticism."
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!