Operating System - HP-UX
1838163 Members
3259 Online
110124 Solutions
New Discussion

file and direcory permission / getting permissioned denied error

 
Yashodhan Deo
Occasional Advisor

file and direcory permission / getting permissioned denied error

Hi

I am facing a peculiar problem... I am using HP Ux ver 11.11. When I copied some execuable files from path1 to path2 the executable refused to execute in path 2 giving execute permission denied error. Hence recurssively assigned 755 permissions o the whole directory structure. Then also the problem persists. Changed the execuatble perm to 777 yet same problem.... Hence recopied the executable then i worked... Since there are lot of such executable files when I tried the same process with second executable it did not work giving same error... Currently instead of coping I hv creaded a soft link..Its working... Can u help me to solve the problem why he executable doesnt work in this directory structure and gives permission denied error. If I execute it as root i work fine. Normally we are logging here as root and then su "username"... Also when I create a new file using touch command permissions are different as compared to the new file I create with vi...
2 REPLIES 2
KapilRaj
Honored Contributor

Re: file and direcory permission / getting permissioned denied error

Are you sure u r trying to execute the ones which u have copied ?. try which so see which path it is taking...

If this is an NFS filesystem which is exported w/o "-root=" option the root user will have no permission on this filesystem

Kaps
Nothing is impossible
Bharat Katkar
Honored Contributor

Re: file and direcory permission / getting permissioned denied error

Hi,

Use # cp -p

Check the Owner and group of the files copied in path 2.

Hope that helps.
Regards,
You need to know a lot to actually know how little you know