Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Permissions issue after copying files Post 302385959 by patrick99e99 on Monday 11th of January 2010 12:57:28 AM
Old 01-11-2010
thank you very much! It works perfectly..

That "{}" is pure magic!

-patrick
 

10 More Discussions You Might Find Interesting

1. HP-UX

File permissions issue

Hi, We have a apps database running on HP-UX 11.11. Yesterday, we had a problem with the server which was resolved after rebooting the server. Now the problem I am facing is that now the files created by application manager user has weird file permissions. Like instead of rw-r-r it is... (1 Reply)
Discussion started by: isingh786
1 Replies

2. Linux

permissions issue

We are trying to run a program on a Red Hat ES3 machine that works fine under root user but not as any other user. I believe its getting denied access to the USB ports (which this program needs), Does anyone know how i can open up access to the USB ports on a machine to all users. Thanks, Frank (0 Replies)
Discussion started by: frankkahle
0 Replies

3. UNIX for Dummies Questions & Answers

Issue with file permissions when using mailx

Hiya... I've got a script on AIX 4.2 that sends an email, with an attachment, that has always worked happily in the past and has chosen today to stop working. It now throws up an error "/tmp/Rs13492: The file access permissions do not allow the specified action" The /tmp/RsXXXXX file name... (2 Replies)
Discussion started by: phaedrus
2 Replies

4. UNIX for Advanced & Expert Users

Issue with File Permissions

one of the business users is ftping files into unix box using user name ftp_user, where as i am using infa_user to login into same unix box. When i am trying to access those or copy over those files from upload directory it says permission denied. Though i know the password of... (4 Replies)
Discussion started by: Ariean
4 Replies

5. Shell Programming and Scripting

mkdir: copying a folder's permissions

Hi, I wanted to know how to create a folder using mkdir and then have it copy the permissions from another specified folder on the system. For example if I did this: mkdir /Volumes/USBSTICK/System How can I make it copy the permissions from the /System folder ? Thanks (4 Replies)
Discussion started by: pcwiz
4 Replies

6. Shell Programming and Scripting

Permissions Issue

Hi Experts, I have one ftp user which will FTP the files to two subdirectories of some other user. Say i have one user "xyz" . It FTP's the file to the directory of "abc" user. I have added xyz user in abc group. -rw-r--r-- 1 xyz abc 0 Jul 26 10:05 mo -rw-r--r-- 1 xyz abc ... (1 Reply)
Discussion started by: sugarcane
1 Replies

7. Shell Programming and Scripting

Permissions issue

Hi, I have a shell script which calls oracle procedure. Procedure creates a file using oracle utl_file and places file on unix server at loaction /tmp. The file permission is getting set to 640 (Owner=oracle, group=dba) I need it to be 644 by default. (So others can read it.) The umask... (4 Replies)
Discussion started by: krishna_gnv
4 Replies

8. Shell Programming and Scripting

Issue with copying files

Hi I have to write a shell script which copy files from one folder to another. When I try to do it directly from command prompt cp filename.dat /outgoing/filename.dat its working fine. But when I put the same command inside a shell script say test.sh its not getting copied. and when I check $?... (3 Replies)
Discussion started by: ravinunna
3 Replies

9. Solaris

Permissions issue

Hello, I'm having an issue with a directory that is used to forward Windows logs. I have a user account on Windows servers that uses SCP to put logs on my Solaris 10 server. A appliance called LogLogic then takes the logs from my server and stores them. I need to have have group read so the... (8 Replies)
Discussion started by: bitlord
8 Replies

10. Shell Programming and Scripting

Issue with copying files into dir inside for loop

Hi , I'm trying to move/copy the files inside the loop into a directory . I tried the below code and the issue is the data is not copying into the created directory but the files are copying into another file file_path="/home/etc" Last_Day=20130930 mkdir $file_path/ARC_${Last_Day} ... (3 Replies)
Discussion started by: smile689
3 Replies
acl(2)								System Calls Manual							    acl(2)

NAME
acl() - set a file's Access Control List (ACL) information (JFS File Systems only) SYNOPSIS
DESCRIPTION
The system call is used to manipulate ACLs on JFS file system objects. pathp points to a path name naming a file. nentries specifies how many ACL entries are pointed to by aclbufp. aclbufp is a pointer to the first element of an array of This type is defined in as follows: The values for are: Permissions for the owner of the object. Permissions for additional users. Permissions for members of the owning group of the object. Permissions for members of additional groups. Maximum permissions granted to the file group class. Permissions for other users. Default permissions for the object owner. Default permissions for additional users. Default permissions for members of the owning group of the object. Default permissions for members of additional groups Default maximum permissions granted to the file group class. Default permissions for other users. cmd The following values for cmd are available: nentries ACL entries, specified in buffer aclbufp, are stored in the file's ACL. Any existing ACL on the file is replaced by the new ACL. All directories in the path name must be searchable. Buffer aclbufp is filled with the file's ACL entries. Discretionary read access to the file is not required, but all directo- ries in the path name must be searchable. The number of entries in the file's ACL is returned. Discretionary read access to the file is not required, but all directories in the path name must be searchable. For command the call will succeed if and only if all of the following are true: There is exactly one entry each of type and If pathp points to a directory, there is at most one entry each of type and Entries of type or do not contain duplicate entries. A duplicate entry is one of the same type containing the same numeric ID. If the ACL contains no entries of type and no entries of type then the entries of type and have the same permissions. If the ACL contains no entries of type and no entries of type and an entry of type is specified, then an entry of type is also spec- ified and the two entries have the same permissions. Security Restrictions The value for cmd can only be executed by a process that has an effective user ID equal to the owner of the file, or by the superuser, or by a user with the privilege. See privileges(5) for more information about privileged access on systems that support fine-grained privileges. RETURN VALUE
returns the following values: n Successful completion. Returns the number of ACL entries for cmd and Successful completion. Returns for cmd Failure. is set to indicate the error. ERRORS
If fails, the ACL is unchanged, and is set to one of the following values: The caller does not have access to a component of the path name. cmd is not or cmd is and nentries is less than the number of mandatory ACL entries(4). cmd is and the ACL specified in aclbufp is not valid [see above discussion, and aclsort(3C)]. A disk I/O error has occurred while storing or retrieving the ACL. cmd is and the effective user ID of the caller does not match the owner of the file, and the caller is not the superuser or a user with privilege. A component of the path does not exist. cmd is and nentries is less than the number of entries in the file's ACL. cmd is and there is insufficient space to store the ACL. cmd is and nentries is greater than which is defined in A component of the path specified by pathp is not a directory. cmd is and an attempt is made to set a default ACL on a file type other than a directory. cmd is the file specified by pathp resides on a local non-JFS file system, and additional entries were specified in the ACL. cmd is the file specified by pathp resides on a non-local file system, and additional entries were specified in the ACL. cmd is and the file specified by pathp resides on a file system that is mounted read-only. aclbufp points to an illegal address. SEE ALSO
aclsort(3), getacl(1), setacl(1), privileges(5). acl(2)
All times are GMT -4. The time now is 05:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy