the printf command

hello, Im at another part of the program i am writing. Where i think i'm going to need to use the printf command.

If anyone can help me figure out the printf layout i would greatly appreicate it.

thanks

printf "%-10s%5s%-25s%-s" $str1 $str2 $str3 $str4

just wanted to clarify, what do the $str1 $str2 ... represent?

its the string which you want to print

This isn't quite how it works. The /etc/passwd file isn't a command interpreter, it's just a plain text file in UNIX, although a very important one. The login command checks the file (and possibly /etc/shadow, or /etc/security/passwd) to verify that the username and password entered are correct. It also looks at the home directory and the shell. If you enter the correct userid & password, it will drop you into your home directory and execute the shell listed in the passwd file. If you enter an incorrect password, /bin/false is not executed, but the program "login" will itself deny access to the system.