diff options
author | Alexandre Fayolle <alexandre.fayolle@logilab.fr> | 2008-01-29 15:04:48 +0100 |
---|---|---|
committer | Alexandre Fayolle <alexandre.fayolle@logilab.fr> | 2008-01-29 15:04:48 +0100 |
commit | 21a8afc7f8ae353b4d5102189d6131276ca598ac (patch) | |
tree | b4b6ce65f97d6259e21633fbef8a02bcea6cd4b7 /shellutils.py | |
parent | a4c7486e5935b56427dcaa426f484e9d0d69e8f6 (diff) | |
download | logilab-common-21a8afc7f8ae353b4d5102189d6131276ca598ac.tar.gz |
added caution about exception raised by chown
Diffstat (limited to 'shellutils.py')
-rw-r--r-- | shellutils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shellutils.py b/shellutils.py index 892f54d..99c305f 100644 --- a/shellutils.py +++ b/shellutils.py @@ -35,6 +35,8 @@ from logilab.common import STD_BLACKLIST def chown(path, login=None, group=None): """same as `os.chown` function but accepting user login or group name as argument. If login or group is omitted, it's left unchanged. + + Note: you must own the file to chown it (or be root). Otherwise OSError is raised. """ if login is None: uid = -1 |