I tend to use sudo if I only have a few things to do.
If I intend to perform multiple tasks, I either use the su command, or simply run "sudo bash" which lets me avoid the sudo timeout.
As others have commented, I can use "sudo bash" as a stepping stone to the likes of the postgres account for setting up a user role, or running a database dump prior to upgrading the postgresql engine.
To borrow the perl acronym TIMTOWTDI.
With Samba, a useful adjunct is wsdd.
The only thing it does it to respond to Windows autodiscovery, so you can find the samba shares without having to know either the IP address or hostname of the samba server.