python:programmes:show_permissions
Permission
>>> oct(os.stat("toto.txt").st_mode & 0777) '0644'
>>> oct(stat.S_IMODE(os.lstat("toto.txt").st_mode)) '0644'
>>> os.stat("toto.txt").st_uid 0
>>> os.stat("toto.txt").st_gid 0
python/programmes/show_permissions.txt · Dernière modification : 2014/02/09 10:57 de root