Frank Murphy wrote:
> Can "root account" be renamed to something less well known?
> If so how?
I have a system that requires an admin user that has the
same privs as root but uses a different shell.
I did this with the following config:
# Defaults specification
# User privilege specification
root ALL=(ALL) ALL
admin ALL=(ALL) NOPASSWD: ALL
Note you can stop root logging in at all with the following in
Note also to keep the admin and root
passwords in sync I use the following script:
# A simple script to copy admin password to root password
while read pwent; do
user=`echo $pwent | cut -d: -f1`
if [ $user = "root" ]; then
elif [ $user = "admin" ]; then
rest=`echo $pwent | cut -d: -f2-`
done < /etc/shadow > /tmp/shadow
cp /tmp/shadow /etc/shadow
chmod 400 /etc/shadow
Pádraig Brady - http://www.pixelbeat.org
--- Following generated by rotagator ---
Testing/ stepping through your shell script
$ sh -x script.sh 2> script.log
Your script runs a bit slower but, every line that is
executed (after variable expansion) gets logged.
View the log later with any pager or editor.
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!