im not familiar in shell scripting but im trying to achieve at least this script but my problem is once superuser rt is done logging in it brings me to this
[rt@superuser root]$
instead of reading the second line, i would like to achieve at least something like this
[rt@superuser etc]$
etc
is the directory that i need to be in and not the root.
below are my command line in shell script
#!/bin/sh
su rt
PATH='/usr/local/rt/etc'
cd ${PATH}
how can i make a shell script that need to super user first then automatic change its directory once login in super user.