On a shared computer, I have a QGIS project which links up to a PostGIS database that contains my data. If a user wants to access layers from the db, they have to enter the db credentials, so that's OK.
However, I have previously logged on and imported layers from my db into QGIS, and...