ЭЛЕКТРОННАЯ БИБЛИОТЕКА КОАПП |
Сборники Художественной, Технической, Справочной, Английской, Нормативной, Исторической, и др. литературы. |
13.5 Modifying PermissionsThe permissions on a file or directory define who (in broad categories) can do what (more or less) to that file or directory. Under UNIX, the typical way to change permissions on a file is with the chmod (1) command. (See its manpage if you are unfamiliar with its operation.) Similarly, Perl changes permissions with the chmod(0666,"fred","barney"); Here, the value of The return value of foreach $file ("fred","barney") { unless chmod (0666,$file) { warn "hmm... couldn't chmod $file: $!"; } } |