little scripting problem hi all. I have a little scripting problem.
here's what i've done so far
when a user logs in, the /etc/profile scripts kicks in and checks if the
user is root, it the user isn't root then it mounts an nfs export to
/var/spool/mail so the user hass access to global mail addressed to him.
when the user logs out the nfs export ius unmounted in .bash_logout
that works ok but
when i log in as me i may want to su as root. no nfs clients need mounting
in fact i need to be able to check if i am logged into root via su ot via
direct login. How do i do this?
Thanks |