Changing file permissions of a file created by another user | Unix Linux Forums | Shell Programming and Scripting

  Unix/Linux Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Changing file permissions of a file created by another user

Shell Programming and Scripting


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 01-09-2013
qwertyu qwertyu is offline
Registered User
 
Join Date: Nov 2012
Last Activity: 21 January 2013, 5:12 AM EST
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
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 the permissions of this .dmp file to 0644.

P.s it is created by "oracle" user and i want to change the permission from my UNIX users.

Please help. TIA!
Sponsored Links
    #2  
Old Unix and Linux 01-09-2013
Sandeep Lade Sandeep Lade is offline
Registered User
 
Join Date: Nov 2012
Last Activity: 10 January 2013, 2:08 AM EST
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
No, you can't change permission of a file until and unless you are the owner of the file/ you are a root user.
If you belongs to oracle user Group, you have read permission. So, you can copy the dump file and do whatever you want to . And one more thing the db dump file is already a compressed file . So, zipping the file doesn't make sense
Sponsored Links
    #3  
Old Unix and Linux 01-09-2013
qwertyu qwertyu is offline
Registered User
 
Join Date: Nov 2012
Last Activity: 21 January 2013, 5:12 AM EST
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
Setting permissions :

If it were a compressed file already, then why is the "compression" option available where we can specify metadata_only, data_only, all or none ??
    #4  
Old Unix and Linux 01-09-2013
Sandeep Lade Sandeep Lade is offline
Registered User
 
Join Date: Nov 2012
Last Activity: 10 January 2013, 2:08 AM EST
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
The data_only , metadata_only options are available to know the content you want to dump from DB
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Unix or Linux Image More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Creating a File system with required permissions for all DIR's created in firestar UNIX for Dummies Questions & Answers 6 06-14-2010 11:18 AM
HELP changing file permissions live2learn Shell Programming and Scripting 10 12-12-2008 10:31 AM
Changing file permissions FredSmith UNIX for Dummies Questions & Answers 7 05-17-2006 08:15 AM
Changing file permissions on upload guix UNIX for Advanced & Expert Users 6 07-13-2004 04:37 PM
changing file permissions gagansharma Shell Programming and Scripting 0 11-27-2001 10:26 PM



All times are GMT -4. The time now is 04:01 PM.