import os src = "/space/test" dst = "/noperm/test" try: os.symlink (src,dst) except Exception, e: print type(e) print e.args print e