If you want to setup a password for privileged EXEC mode in CISCO devices, the commands are following
Sw-Floor-1>en
Sw-Floor-1#config t
Enter configuration commands, one per line. End with CNTL/Z.
Sw-Floor-1(config)#enable secret class
Sw-Floor-1(config)#
Sw-Floor-1(config)#exit
Sw-Floor-1#
The password will be "class"
Next when we will try to enter the priviledged exec mode, the device will ask for password
Sw-Floor-1>en
Password:
Sw-Floor-1#