The problem:
Number of the commands must be executed consequently, written in one-line command:
comamand1; command2; command3;
The very first command is
sw user_name;
The problem is that no commands are executed after the sw user_name; one. (the user gets changed though)
Any ideas about how i can execute the string of the commands described above?

P.S.
bash-3.2$ sw
Sorry, user ehwe is not allowed to execute '/bin/su -' as root on server_name
Guess it explains what the sw is :)
P.P.S sw stands for /bin/su -
sw? What's this command supposed to do? Aren't you trying to usesu?swalmost certainly starts a new interactive shell, so the next command in the sequence would not run until that shell exits.which su" output say?