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
XMOUNTAINS(1)						      General Commands Manual						     XMOUNTAINS(1)

NAME
xmountains - A fractal landscape generator. SYNOPSIS
xmountains [ bqgPdEmMrBnZIASTWFGCapcevfRltxsXYH ] DESCRIPTION
xmountains is a X11 based fractal landscape generator. It generates random fractal surfaces and displays them in a window. While the pro- gram is running the fractal is continuously extended on the right and the image is scrolled from right to left to expose the newly gener- ated area. Flags: -b Use the root window. -q Reset the root window when the program exits. This option is ignored unless the program is using the root window. -g [string] Set the geometry of the window. -P [filename] Write the PID to the specified file. -d [string] Set the display. -E Toggle the way that window repainting is done. By default the image pixmap is installed as the background pixmap of the window and window repainting should be performed automatically by the X server. If this does not work on a particular system then this flag can be used to enable explicit expose event processing. In the default mode root window images will remain in place after the program exits. -m Display a map of the surface rather than a perspective view. -M Produce reflections in the water. This may be a little slower. -r [20] To reduce the load on the X server the program generates several columns of pixels before scrolling the image. This flag sets the number of columns. A negative value reverses the direction of scrolling. A value of zero makes the program scan across the window without scrolling at all. -B [80] Set the number of shades of each colour that the program allocates. -n [245] Set a maximum number of colours to use. This is just a different way of setting the number of shades of each colour. -Z [10] Set the number of seconds that the program sleeps after scrolling the screen. -I [40.0] Set the vertical angle of illumination. -A [0.0] Set the horizontal angle of illumination. -S [0.6] Set the vertical stretch of the surface. -T [0.5] Set the vertical shift of the surface. -W [0.5] Set the height where the water occurs. -F [1] Reduce the variation in the foreground height to ensure a good view of the surface. This flag sets the number of iterations for which the foreground height is constrained to a constant value. -G [-1.0] Mean altitude for the for foreground. -C [0.3] Set the contour parameter. The base colour of a point depends on its height and how flat the surface is. This parameter controls the relative importance of these factors. -a [2.5] Set the Altitude of the viewpoint. -p [4.0] Set the distance of the viewpoint from the front of the surface. -c [1.0] Set the contrast parameter. Values too far from 1.0 will give strange results -e [0.3] Set the ambient light level. This is a fractional value that sets how bright shaded areas will be compared to fully illuminated ground. -v [0.6] Set the vertical light level. The program also implements a secondary light source shining from directly above the surface. This flag sets how bright this light source is relative to the main light source. -f [0.65] Set the fractal dimension of the surface. This should be in the range 0.5-1.0. -R [0] Set the seed for the random number generator. A value of 0 causes the seed to be set from the clock. -l [10] Set the width of the surface. Increasing this value by one doubles the width of the surface. -t [2] Set the number of non-fractal iterations. Increasing this value by one doubles the average number of mountains across the width of the surface. -x Use cross updates (see under -H) -s [1] Control the regeneration steps used to reduce creasing. There are three possible regeneration steps controlled by the first 3 bits of this flag value. (see under -H) -X [0.0] regeneration step parameter (see under -H) -Y [0.0] regeneration step parameter (see under -H) -H Print a short description of the algorithm explaining the -x -s -X and -Y parameters. IDENTIFICATION
Author: S.Booth@ed.ac.uk XMOUNTAINS(1)
All times are GMT -4. The time now is 05:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy