How can I issue commands as a different user than the one actually running the program ? is this possible ?
I´m actually trying to see if the 'postgres' user has write permissions on a certain folder, so what I think in doing, is try to write a small text file to this folder to see if it´s successful using this user instead of the current one.
Another way to get this information though, would be to get the folder permissions. Is there a portable way of doing this ?
Nelson