Recent

Author Topic: Using a different system user  (Read 3438 times)

nelson777

  • Jr. Member
  • **
  • Posts: 68
    • http://www.aocontrario.com
Using a different system user
« on: August 09, 2007, 12:53:06 am »
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