Advertisement
Guest User

Untitled

a guest
Mar 6th, 2010
420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. >>> import os
  2. >>> os.mkdir('foo')
  3. Traceback (most recent call last):
  4. File "<stdin>", line 1, in <module>
  5. OSError: [Errno 17] File exists: 'foo'
  6. >>> os.mkdir('dummy_own')
  7. >>> os.ch
  8. os.chdir( os.chmod( os.chown( os.chroot(
  9. >>> os.chown('dummy_own', 5000, 6000)
  10. Traceback (most recent call last):
  11. File "<stdin>", line 1, in <module>
  12. OSError: [Errno 1] Operation not permitted: 'dummy_own'
  13. >>>
  14. [tmp]% ls -ld dummy_own
  15. drwxr-xr-x 2 parthm parthm 4096 2010-03-06 18:06 dummy_own/
  16. [tmp]%
  17.  
  18. [tmp]% chown 5000:6000 dummy_own
  19. chown: changing ownership of `dummy_own': Operation not permitted
  20. [tmp]%
  21. [tmp]% pwd
  22. /home/parthm/tmp
  23. [tmp]%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement