Operating System - HP-UX
1832695 Members
2838 Online
110043 Solutions
New Discussion

Re: I am unable to move zip file in to another location.

 
yogesh kumar_2
Frequent Advisor

I am unable to move zip file in to another location.

Hi,

I have created nis user for me.I got my user id as 672.The same user id already had other user(as like super user,for ex:svnuser)i have given root privileges to svnuser.After that i written one backup script in linux workstation(RedHat).I have logged in through my username and I have written backup script in the following path /home1/svnuser/backup/ .The script states that i need to mv some files in to another location (i,e/net/ccs-ben/sb_backup).I have completed my backup script by keeping the same user id 672, after that i have changed my user id into 673.Now i am trying to executed the backup script its showing the following error:

mv:failed to preserve ownership for '/net/ccs-ben/sb_backup':operation not permitted.

can anyone help me out in this issue.
6 REPLIES 6
prasadb
Super Advisor

Re: I am unable to move zip file in to another location.

specify here the permissions of the file by..

ls -l , that would possibly help to understand the reason,,


Suraj K Sankari
Honored Contributor

Re: I am unable to move zip file in to another location.

Hi,

Check your source file permission and owner & group as well as check your user also, means he should belong to the group which is your source file.

Suraj

Re: I am unable to move zip file in to another location.

As Super User Give the Permission to execute to every one.

chmod +x

hope this will solve your problem.

If in the script you are using some commands which are user specific that you need to check.
Gary Cantwell
Honored Contributor

Re: I am unable to move zip file in to another location.

Hi There,

Please take a moment to assign points to those who have taken the time to assist you. Here's how:

http://forums1.itrc.hp.com/service/forums/helptips.do?#33

Thanks,

Gary
SKR_1
Trusted Contributor

Re: I am unable to move zip file in to another location.

Permissions issue. Please check the ownership and permissions of the file. Check for your user ID and its related groups.

Thanks

SKR
V. Nyga
Honored Contributor

Re: I am unable to move zip file in to another location.

Hi,

check who's owner of the directoy '/net/ccs-ben/sb_backup' and its permissions.
Is it a local dir?

"... after that i have changed my user id into 673."

Did you change the id (in passwd) or the user?

Volkmar
*** Say 'Thanks' with Kudos ***