I have a situation.
We have Solaris 8 machines. For every users we have to change the shell from /bin/sh to .../sdshell. So far we have been doing it by editing the /etc/passwd file manually. Is there a better way to do so? Because I am trying to write a script to do these task.
what i have tried:
useradd -s ... its not working, it says the shell is not valid.