The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Rename a file name Aswarth Shell Programming and Scripting 0 06-04-2008 02:18 PM
rename the file in batch reldb UNIX for Advanced & Expert Users 7 01-14-2008 06:43 PM
File rename redlotus72 UNIX for Dummies Questions & Answers 1 03-09-2006 11:52 AM
how to rename a file before and after a ftp? forevercalz Shell Programming and Scripting 2 10-28-2005 09:19 AM
Help with multiple file rename - change case of part of file name steve7 UNIX for Dummies Questions & Answers 7 06-30-2005 01:41 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-27-2007
MANISH KU MANISH KU is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 6
Not able to rename file

Hi,

I have a shell script that is run by user x on daily basis, which attempts to rename one file that is created by user y and user y have changed the mode of the file to 777, so that means user x have all the previlages to modify that file.
But the problem is that whenever user x try to rename file created by user y it gets permission denied error.
  #2 (permalink)  
Old 06-27-2007
aigles's Avatar
aigles aigles is online now Forum Advisor  
Registered User
  
 

Join Date: Apr 2004
Location: Bordeaux, France
Posts: 1,416
To rename a file, you must have write access to the directory that contains this file.
  #3 (permalink)  
Old 06-27-2007
MANISH KU MANISH KU is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 6
Thanks a lot !!! after changing directory permissions it is working fine now.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:35 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0