Sponsored Content
Homework and Emergencies Homework & Coursework Questions changing permissions of a file whos name was passed to 755 Post 302398728 by anix007 on Thursday 25th of February 2010 11:43:23 AM
Old 02-25-2010
Thank you so much, I was just making it harder on myself- I never set variables, so it was coming out terribly messy. I can take it from here- thank you for shining a light for me! I'm a newbie.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

changing file permissions

Use the following to Change permission of fileB (fileB could be fileB*) to change its permission same as the permission of fileA. chmod `ls -l fileA | awk '{pr int "u+", substr($1,2,1), substr($1,3,1), substr($1,4,1), ",g+", substr($1,5,1), substr($1,6,1), substr($1,7,1), ",o+",... (0 Replies)
Discussion started by: gagansharma
0 Replies

2. Shell Programming and Scripting

Changing Permissions

Is it possible to change the permissons for an entire directory in one shot? I'm telneting on to a linux server. ...just a beginner-- --Paul (4 Replies)
Discussion started by: pdavid
4 Replies

3. UNIX for Advanced & Expert Users

Changing file permissions on upload

Hello ! When I connect to a RH FTP server, the files I transfer (from my "windows computer") to this server have the following permissions : -rw------- but I would like those files to have the following permissions : - rw-rw-r-x How can I do that ??? :) Thanks for your help ! G. (6 Replies)
Discussion started by: guix
6 Replies

4. UNIX for Dummies Questions & Answers

changing default file permissions

How can I change the default permissions that are assigned when I create a file? (By default the file has: -rw-r--r-- ..... I'd like it to be -rw-r----- How can I change this default behavior? (8 Replies)
Discussion started by: FredSmith
8 Replies

5. UNIX for Dummies Questions & Answers

Changing file permissions

Is there a way to change a unix user's default file permissions so that when he creates a file, by default permissions are 777??? Thanks! (7 Replies)
Discussion started by: FredSmith
7 Replies

6. UNIX for Dummies Questions & Answers

changing permissions on a 444 file (ie chmod 444)

if I have a file set to permisions 444 (r-- r-- r--) should anyone other than the owner and root be able to change these permissions or delete the file. Apologies if this is a no-brainer but I cant test it myself and someone in our organisation is playin around with files they shouldnt be (1 Reply)
Discussion started by: ajcannon
1 Replies

7. Cybersecurity

changing /cn@0:console file permissions

I'm doing a security sweep of a Sun Sol 5.8 system. The file: /dev/console, which links to /devices/pseudo/cn@0:console, has the following perms: crw--w--w- I would like to get rid of the world write permissions. I can change the file permissions, but as soon as log back in, they are changed... (4 Replies)
Discussion started by: ErnieG
4 Replies

8. Shell Programming and Scripting

HELP changing file permissions

does anyone know how to write a script that will change file permissions. because the Admin blocked me from altering any of my files im only allowed to read and i heard a script like this can bypass it but i dont know how to write it. Display current users. Display user Ids only. Display... (10 Replies)
Discussion started by: live2learn
10 Replies

9. Homework & Coursework Questions

changing permissions of a file whos name was passed to 755

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Write a shell script that gives a passed file the "755" access permissions. The shell script should: Change... (0 Replies)
Discussion started by: anix007
0 Replies

10. Shell Programming and Scripting

Changing file permissions of a file created by another user

Hi, I have used expdp for datapump. The .dmp file is created by the "oracle" user. my requirement is to make a zipped file of this .dmp file. What i am trying to do is change the permissions of this .dmp file from 0640 to 0644 and then do a gzip and zip it. Is there any way i can change... (3 Replies)
Discussion started by: qwertyu
3 Replies
Text::MicroTemplate::File(3pm)				User Contributed Perl Documentation			    Text::MicroTemplate::File(3pm)

NAME
Text::MicroTemplate::File - a file-based template manager SYNOPSIS
use Text::MicroTemplate::File; our $mtf = Text::MicroTemplate::File->new( include_path => [ $path1, $path2, ... ], use_cache => 1, ); # render $mtf->render_file('template.file', $arg1, $arg2, ...); DESCRIPTION
Text::MicroTemplate::File is a file-based template manager for Text::MicroTemplate. PROPERTIES
Text::MicroTemplate provides OO-style interface with following properties. include_path include path (default: ['.']) This accessor is readonly. use_cache cache mode (0: no cache (default), 1: cache with update check, 2: cache but do not check updates) open_layer layer passed to open (default: ":utf8") package_name package under where template files are compiled (default: "main") METHODS
build_file($file) Returns a subref that renders given template file. render_file($file, @args) Renders the template file with given arguments. wrapper_file($file, @args)->(sub { template lines }) Wraps given template with wrapper file. Internally the processed template is passed as $_[0] to the wrapper template. SEE ALSO
Text::MicroTemplate AUTHOR
Kazuho Oku <kazuhooku gmail.com> LICENSE
This program is free software, you can redistribute it and/or modify it under the same terms as Perl 5.10. perl v5.10.1 2010-09-06 Text::MicroTemplate::File(3pm)
All times are GMT -4. The time now is 02:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy