File 'support/perm.tcl' (part of 'Makedist_Support')


Home | Packages | Files | Procedures | Keywords | External packages


Written by
Andreas Kupries
Description
Procedures to set permissions on files and directories
Depends on
Tcl
Keywords
permissions, support, base support

::makedist::support::SetPermissions (path fileperm dirperm)

Sets the permissions for the file or directory given as path. Uses fileperm for a file or dirperm else. Traves directories recursively.
Notes: Requires existence of command 'chmod' in the path. Future implementations might be build on top of 'file attributes' of Tcl 8.
Argument: path File or directory to set permissions on.
Argument: fileperm Permissions to set if path is a file.
Argument: dirperm Permissions to set if path is a directory.

mNormalPermissions (args)

Sets the permissions for all files and/or directories to standard values (files: 444, directories 754). Traverses directories recursively. Actually only a wrapper to ::makedist::support::SetPermissions.
Argument: args List of files and directories to manipulate.

mSecurePermissions (args)

Sets the permissions for all files and/or directories to (relatively) secure values (files: 400, directories 500). Traverses directories recursively. Actually only a wrapper to ::makedist::support::SetPermissions.
Argument: args List of files and directories to manipulate.


Generated by AutoDoc 2.1 at 06/05/1999, invoked by Andreas Kupries