10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All
I have the following script that is supposed to change permissions of incoming files to a directory, but it does not seem to do what I want, please can you help:
mkdir -p /tmp/tmpdir
find /moneta_polled01/sgsn/ -exec ls -l {} \; |grep -v rwxrwxrwx |awk '{print $9}' >... (4 Replies)
Discussion started by: fretagi
4 Replies
2. Shell Programming and Scripting
I have a script were I issue the following command:
perl -p -i -e "s/$v31a/$db2/" $dbn31
My script fails with permission error. However, at the command line I can edit the directory in question. I am using uname 002 in my script. So, why can i update manually but not in a script? (10 Replies)
Discussion started by: Harleyrci
10 Replies
3. UNIX for Advanced & Expert Users
Hi,
I have written a shell script which calls a java program which reads properties from a configuration file and writes to a log file for each session.However the customer wants that the user should not be able to open/edit the configuration file or the log files meaning they should not... (4 Replies)
Discussion started by: jayadrath
4 Replies
4. Shell Programming and Scripting
Hi there,
I've been having some frustrating problems with a permissions script. Basically I want it to to determine what permissions the owner, group and everybody has for the file passed in.
Here's what I've got:
#!bin/bash
echo -n "Enter filename: "
read file
owner=$( ls -l $file | cut... (7 Replies)
Discussion started by: user_invalid
7 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
I have a shell script which we keep on changing permissions on a On-Demand Basis-->for e:g--from 400(Read only) to 740(Execute permission) etc.
Is there any way by which I can view the history of the script?-->I am interested in finding out the date-time stamps when the script's... (2 Replies)
Discussion started by: DevotedPupil
2 Replies
6. Shell Programming and Scripting
Hello all:
I need found script to save and restore file permissions and owner:group... this is for backup my server...
I have one problem in my server and file permissions and owner:group, mess up..
For this reason i need found one way to secure this aspect of the server...
Thanks! (1 Reply)
Discussion started by: joangopan
1 Replies
7. Shell Programming and Scripting
Hi
I am trying to use shell script to display file permissions, and I can do it fine for the current user logged in, but now I want to view all file permissions for the Owner of the file, Group users and everyone, so it will look something like this:
-----------------READ WRITE EXECUTE
OWNER... (11 Replies)
Discussion started by: barbus
11 Replies
8. Shell Programming and Scripting
Hi
I have this code, and i want work with a ls -shalR output in .txt
What i need read to do this??
Where start?
#!/usr/bin/perl
# Allrights- A perl tool for making backups of file permissions
# Copyright (C) 2005 Norbert Klein <norbert@acodedb.com>
# This program is free... (1 Reply)
Discussion started by: joangopan
1 Replies
9. Linux
Hi,
All
I am trying to change the permission for all the files in the current dir such that the user(owner) have the read write and excute permissions. When I excute the korn shell it will change the whole files and directory permissions as "rwx". Any help will be highly appreciated.
Thanks (1 Reply)
Discussion started by: uhelp
1 Replies
10. Shell Programming and Scripting
this is that the question is asking me:
Make the following three changes to your '.bash_profile' startup file.
Add three new lines to the end of the file, one for each of the following
tasks:
Change your primary prompt to display the name of your current directory,
followed by a colon... (1 Reply)
Discussion started by: pvdodhia
1 Replies