07-03-2007
Grant File privileges
The provided script did work. Thank You so much!
However, the created file hasn't been granted 'write' privileges to the user. The file is getting created through Oracle trigger and the process automatically uses 'dbadmin' user on UNIX.
Is there any way that we can force UNIX to provide 'r' & 'w' privileges to group and other members for the files that get generated through that process or files that get generated in the specified directory.
Any help is greatly appreciated.
Thanks!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
how to move a file to a different folder after an automated FTP . (1 Reply)
Discussion started by: dineshr85
1 Replies
2. Shell Programming and Scripting
Hi,
I have a requirement to move a file from one folder(a) to another folder(b) only when folder (b) have a write permission. Folder permission is 755
If the permission is otherthan 755 we need to come out of the loop
I will appreciate your help
Thanks
Soll (1 Reply)
Discussion started by: sollins
1 Replies
3. Shell Programming and Scripting
Hi All,
please help me to write a shell that ftp a file which is in the local (C:\) drive to a Unix server.
Where as i know the IP for the Unix server.
i could do this process by using ftp command.
pls help me to write as Shell script.
Thanks in advance for all of your answers.:b::b: (3 Replies)
Discussion started by: little_wonder
3 Replies
4. Shell Programming and Scripting
This is the file structure:
DESKTOP/Root of Photo Folders/Folder1qweqwasdfsd/*jpg
DESKTOP/Root of Photo Folders/Folder2asdasdasd/*jpg
DESKTOP/Root of Photo Folders/Folder3asdadfhgasdf/*jpg
DESKTOP/Root of Photo Folders/Folder4qwetwdfsdfg/*jpg
DESKTOP/Root of Photo... (4 Replies)
Discussion started by: guptaxpn
4 Replies
5. Shell Programming and Scripting
hye there...
i have a problem to copy file in specific folder
that will change the name according to
host,time(%m%s) and date(%Y%M%D)
example folder name:
host_20100531.154101801
this folder name will always change...
but i just want to copy the AAA.txt and BBB.txt file..
really need... (17 Replies)
Discussion started by: annetote
17 Replies
6. Shell Programming and Scripting
Hi all,
let me explain my requirments
i am having 5 folder with different name for eg) abc , cdf , efd, rtg, ead
each 5 folders contain 15 files
i want to move 10 files to some other folder, remain 5 files should be there in the same folder.
give me some suggestion on this. (6 Replies)
Discussion started by: natraj005
6 Replies
7. Shell Programming and Scripting
Hello,
I'm trying to make a bash script that send me e-mail if there is any new file in my ftp folder.
cat inotify.sh
#!/bin/sh
/usr/bin/inotifywait -e create \
-mrq /home/mrowcp | while read line; do
echo -n "$line " >> /var/log/inotify.log
echo `date | cut -d " " -f1-4` >>... (3 Replies)
Discussion started by: mrowcp
3 Replies
8. Shell Programming and Scripting
Hello Smart People!
I have a perl script that will import xml data into an access db.
I would like to modify it so it will automatcially parse through all xml files in the folder. I swa a post but couldnt get it working. her is what my scrip looks like, i only list the top if you need more... (3 Replies)
Discussion started by: cowboymaverick
3 Replies
9. Shell Programming and Scripting
I am hosting a nwserver.That is a Neverwinter Nights game server on linux Ubuntu 11.04 server.
I need help creating a script to read a .txt and retrieving character logins and character names.
The game will make a .txt in folder home/nwn/(filenam.txt).
Then I will make a crontab job to... (0 Replies)
Discussion started by: 222222quick
0 Replies
10. Shell Programming and Scripting
I need help to write shell script to copy files from one server to another server.
Source Directory UAE(inside i have another folder Misc with files inside UAE folder).I have to copy this to another server UAE folder( Files should be copied to UAE folder and Misc files should be copied in target... (3 Replies)
Discussion started by: naresh2389
3 Replies
LEARN ABOUT HPUX
setprivgrp
setprivgrp(1M) setprivgrp(1M)
NAME
setprivgrp - set special privileges for groups
SYNOPSIS
groupname [privileges]
[privileges]
[privileges]
file
DESCRIPTION
The command associates a group with a list of privileges, thus providing access to certain system capabilities for members of a particular
group or groups. The privileges can be displayed with the command (see getprivgrp(1)).
Privileges can be granted to individual groups, as defined in the file, and globally for all groups.
Only a superuser can use the command.
Options and Arguments
recognizes the following options and arguments:
privileges One or more of the keywords described below in
groupname The name of a group defined in the file named The current privileges for groupname, if any, are replaced by the spec-
ified privileges. To retain prior privileges, they must be respecified.
Specify global privileges that apply to all groups.
The current privileges, if any, are replaced by the specified privileges, To retain prior privileges, they must be
respecified.
If no privileges are specified, delete all privileges for all groups, including global privileges.
If one or more privileges are specified, delete the specified privileges from the current privilege lists of all
groups, including the global privilege list, but do not delete unspecified privileges.
Set the privileges according to entries in the file
file. This file is usually The entry formats are described below in
Privileged Capabilities
The following system capabilities can be granted to groups:
Can use to change file ownerships (see chown(2)).
Can use to set locks on files that are open for reading only (see lockf(2)).
Can use to lock process text and data into memory, and the function to lock shared memory segments (see plock(2) and shm-
ctl(2)).
Can use to set real-time priorities (see rtprio(2)).
Can use and to set POSIX.4 real-time priorities (see rtsched(2)).
Can use to force the target process to run serially with other processes that are also marked by this system call (see seri-
alize(2)).
Can use and to change, respectively, the real user ID and real group ID of a process (see setuid(2) and setgid(2)).
Allows certain administrative operations in the Process
Resource Manager (PRM) product. See that product's documentation for more information.
Allows certain administrative operations in the Instant
Capacity (iCAP) product. See that product's documentation for more information.
Can change system pset configuration (see
pset_create(2)).
Can use to change processor binding, locality domain binding or launch policy of a process (see mpctl(2)).
Group Privileges File Format
The file specified with the option should contain one or more lines in the following formats:
groupname [privileges]
[privileges]
[privileges]
They are described above in "Options and Arguments".
RETURN VALUE
exits with one of the following values:
Successful completion.
Failure.
AUTHOR
was developed by HP.
FILES
SEE ALSO
getprivgrp(1), chown(2), getprivgrp(2), lockf(2), plock(2), rtprio(2), rtsched(2), serialize(2), setgid(2), setuid(2), shmctl(2),
mpctl(2), pset_create(2), privgrp(4).
setprivgrp(1M)