Sponsored Content
Top Forums UNIX for Advanced & Expert Users Directory Default Permissions Post 302141412 by prvnrk on Friday 19th of October 2007 12:22:27 AM
Old 10-19-2007
I'm not sure if i could understand your question.

Right now, i'm managing with periodic chmod on recent files which is considered inefficient. If there's no better solution to my requirement, i would go with this only.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

default directory permissions

Hello, Is there a way to set the default permissions for a specific directory and all it's files and subdirectories? For example: I want the general umask to be -rwxr-x--- But I want the default for the cgi-bin directory and everything below it to be -rwxr-xr-x So that when I put... (3 Replies)
Discussion started by: Thumpasorus
3 Replies

2. Shell Programming and Scripting

determine owner directory permissions from within the directory

From within a directory, how do I determine whether I have write permission for it. test -w pwd ; echo ? This doesn't work as it returns false, even though I have write permission. (4 Replies)
Discussion started by: Sniper Pixie
4 Replies

3. UNIX for Dummies Questions & Answers

permissions of a directory

Read and write bits make sense for a directory but what about the execute permission bit What does that imply?Is it just a filler? Saurabh (3 Replies)
Discussion started by: smehra
3 Replies

4. UNIX for Dummies Questions & Answers

how to change permissions in a certain directory?

Hi , I have a situation where plenty of users log in to the same directory and put in files. When they put in the files, I need those files to become group writable (chmod g+w) automatically. I have no control over the users' profiles. Is there a way to do it? (1 Reply)
Discussion started by: praveen_indramo
1 Replies

5. UNIX for Advanced & Expert Users

Home Directory Permissions

My users home directory located in a RHEL 5.0 nfs server. Client is ubuntu 8.1 using NIS for authntication anf NFS for automounting home Directory on the client side. I set 700 to the users home directory. My problem here is some of the users change the mode, which result in leak of... (2 Replies)
Discussion started by: a_artha
2 Replies

6. UNIX for Dummies Questions & Answers

Directory Permissions

Hi all. Only one of the following makes any kind of sense as a possible permission field for a UNIX file. Which one? --w------- ----rwxrwx -r-------- --rwx----- ----r----- I think it is no. 3. I dont think it would be 2, because why would you want to give groups and... (1 Reply)
Discussion started by: hawaiifiver
1 Replies

7. UNIX for Dummies Questions & Answers

Setting default directory file permissions and ownership help

I'm trying to setup a directory structure for my staff which enables them full access to files in the directories with their name, and have access to anything in the shared directory. The directory structure looks like this: root@www10 # ls -l total 56 drwxr-xr-x 7 internal internal 4096... (3 Replies)
Discussion started by: v_greg
3 Replies

8. Shell Programming and Scripting

Checking directory permissions on UNIX directory

Hi, How do i check if I have read/write/execute rights on a UNIX directory? What I'm doing is checking read access on the files but i also want to check if user has rights on the direcory in whcih these files are present. if then...... And I check if the directory exists by using... (6 Replies)
Discussion started by: chetancrsp18
6 Replies

9. Solaris

Directory Permissions for 2 users on 1 directory

we want to allow user to FTP files into a directory, and then the program (PLSQL) will read and process the file, and then move the file to other directory for archiving. the user id: uftp1, group: ftp the program run in oracle database, thus have the user Id: oraprod, group: dba how to... (2 Replies)
Discussion started by: siakhooi
2 Replies

10. UNIX for Dummies Questions & Answers

Directory permissions

i have an application that writes to a directory. let's call the directory: /var/app/ the permissions of this directory is: drwxrwxr-x Now the files that the application creates in this directory usually dont have read permissions for others. i know there's something called... (3 Replies)
Discussion started by: SkySmart
3 Replies
Any::Template::ProcessDir(3pm)				User Contributed Perl Documentation			    Any::Template::ProcessDir(3pm)

NAME
Any::Template::ProcessDir -- Process a directory of templates VERSION
version 0.07 SYNOPSIS
use Any::Template::ProcessDir; # Process templates and generate result files in a single directory # my $pd = Any::Template::ProcessDir->new( dir => '/path/to/dir', process_text => sub { my $template = Any::Template->new( Backend => '...', String => $_[0] ); $template->process({ ... }); } ); $pd->process_dir(); # Process templates and generate result files to a separate directory # my $pd = Any::Template::ProcessDir->new( source_dir => '/path/to/source/dir', dest_dir => '/path/to/dest/dir', process_file => sub { my $file = $_[0]; # do something with $file, return content } ); $pd->process_dir(); DESCRIPTION
Recursively processes a directory of templates, generating a set of result files in the same directory or in a parallel directory. Each file in the source directory may be template-processed, copied, or ignored depending on its pathname. CONSTRUCTOR
Specifying directory/directories o If you want to generate the result files in the same directory as the templates, just specify dir. my $pd = Any::Template::ProcessDir->new( dir => '/path/to/dir', ... ); o If you want to generate the result files in a separate directory from the templates, specify source_dir and dest_dir. my $pd = Any::Template::ProcessDir->new( source_dir => '/path/to/source/dir', source_dir => '/path/to/dest/dir', ... ); Specifying how to process templates process_file A code reference that takes the full template filename and the "Any::Template::ProcessDir" object as arguments, and returns the result string. This can use Any::Template or another method altogether. By default it calls "process_text" on the contents of the file. process_text A code reference that takes the template text and the "Any::Template::ProcessDir" object as arguments, and returns the result string. This can use Any::Template or another method altogether. Optional parameters dir_create_mode Permissions mode to use when creating destination directories. Defaults to 0775. No effect if you are using a single directory. file_create_mode Permissions mode to use when creating destination files. Defaults to 0444 (read-only), so that destination files are not accidentally edited. ignore_files Coderef which takes a full pathname and returns true if the file should be ignored. By default, all files will be considered. readme_filename Name of a README file to generate in the destination directory - defaults to "README". No file will be generated if you pass undef or if you are using a single directory. template_file_suffix Suffix of template files in source directory. Defaults to ".src". This will be removed from the destination file name. Any file in the source directory that does not have this suffix (or "ignore_file_suffix") will simply be copied to the destination. METHODS
process_dir Process the directory. If using multiple directories, the destination directory will be removed completely and recreated, to eliminate any old files from previous processing. SEE ALSO
Any::Template COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Jonathan Swartz. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-05-14 Any::Template::ProcessDir(3pm)
All times are GMT -4. The time now is 09:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy