HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Error when changing permission of the folder.

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

Error when changing permission of the folder.

Hi All,

I am getting following error when try to change the permission of some folders.

Why the errors, like this, is comming.

root@lgapps:/emd/iwire/common > chmod -R 777 library/
chmod: can't change ground_bus18.prt: No such file or directory
chmod: can't change 40049964_92126.prt: No such file or directory
chmod: can't change 40029233_gen.prt: No such file or directory
8 REPLIES
James R. Ferguson
Acclaimed Contributor
Solution

Re: Error when changing permission of the folder.

Hi:

It would appear that the subordinate entites have been removed between the time they were cataloged for action and the actual change in permission was attempted.

Be very careful with recursive ('-R') actions that you don't affect something you don't want to change. Also, "wide-open" "rxw" (777) permissions on files and directories is generally very undesirable and highly unnecessary!

Regards!

...JRF...
Jamie A Dennis
Frequent Advisor

Re: Error when changing permission of the folder.

Hello,

Please post the output of ls -laR of the library directory (assuming the path is /emd/iwire/common/library ?).

Best regards,


Jamie
"If hindsight is 20/20, why don't more people use their rearview mirrors?" - James (Jamie) A. Dennis, 1998
Vijaykumar_1
Valued Contributor

Re: Error when changing permission of the folder.

Hi Senthil,

Can you pls provide the o/p of ls -l ground_bus18.prt or any of the files that you are getting an error.

Hopefully these files doesnt exist..If they exist then pls provide me the bdf /library op..
R.K. #
Honored Contributor

Re: Error when changing permission of the folder.

Yes..as said probably the files were removed after execution of the command.
- Try to find if these exists.
- What about rest of the file permission in that directory, have they changed?

Regds..
Don't fix what ain't broke
Ganesan R
Honored Contributor

Re: Error when changing permission of the folder.

Hi Senthilkumar,

Most probable cause would be the one James pointed out. What happen when you give recursive option is, shell will collect the list of files needs to be modified then it apply the changes.

If any application runtime files got deleted by the application after shell collected the list of files, then shell produce the error saying that not able to find the file. It is normal behaviour and you can ignore it.

You might have seen this kind of behaviour in ignite backups.
Best wishes,

Ganesh.

Re: Error when changing permission of the folder.

>Ganesan: shell will collect the list of files

The shell isn't involved, chmod(1) is doing all of the work.
Steven E. Protter
Exalted Contributor

Re: Error when changing permission of the folder.

Shalom,

That -R can work across soft links and wreak havoc.

You should take a look with ll -R and see what you just opened up to 777 permissions.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sunny123_1
Esteemed Contributor

Re: Error when changing permission of the folder.

Hi

First look out if these files are exist or not.

Regards
Sunny