?
Solved

linux error message when trying to run an automated move

Posted on 2011-03-16
7
Medium Priority
?
444 Views
Last Modified: 2012-05-11
I'm trying to run a process that has been lying dormant on our system for a couple years. It involves the generation of a bunch of web pages that are written to a linux file then moved through a samba share to a windows server. At some point during all these transfers I'm getting the error message below for each .htm  file attempted. I don't know hardly anything about linux and the guy who set all this up is long gone. I know this was working at one time.


linux mv:preserving ownership for '/webpages/123.htm': operation not permitted
0
Comment
Question by:jrickercha
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 6

Accepted Solution

by:
de2Zotjes earned 1336 total points
ID: 35150670
It's a warning, not an error. The mv program is telling you that it cannot preserve the original ownership for the file it is moving.
There is a good possibility that this is caused by the way you are mounting the the windows share on your linux box.

Anyway, check to see if the files actually do end up where you intend them to be. If not you could perhaps put up the script code and a list of mounts (simply type mount<enter>) so we get some more info on what is going on.
0
 

Author Comment

by:jrickercha
ID: 35151209
Thank you.
The files in question do not appear to be making the move.
The script that is executing the move is:
sudo mv /home/pick/webpages/partpageD* /webpages/$1
there are a bunch of these lines in the /usr/chabin/  directory in a file called mvwebpages
the "partpageD" portion changes depending upun the page being moved.

the mount command lists:
/dev/sda6 on / type ext2 (rw)
none on /proc type proc (rw)
/dev/sda1 on /boot type ext2 (rw)
/dev/sdd1 on /data type ext2 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
automount(pid683) on /misc type autofs (rw,fd=5,pgrp=683,minproto=2,maxproto=3)
//jabba/ARTransfers on /artransfers type smbfs (0)
//jabba/PickTransfers on /transfers type smbfs (0)
//jabba/ShippingRates on /shippingrates type smbfs (0)
//jabba/PowerSource on /pwrsrc type smbfs (0)
//jabba/TechSupp on /techsupp type smbfs (0)
//jabba/PartsWebPages on /webpages type smbfs (0)

The last entry is the target in question. We use one of the other shares (powersource) every day so I know at least that is working.

Thank you for your help!
John
0
 
LVL 18

Expert Comment

by:TobiasHolm
ID: 35186679
Hi!

Type (on the Linux server): cat /etc/passwd
Look for the username with PID 683. Then check that this username exist in your Windows environment and that the user account is enabled. Also check the Samba configuration ( in file samba.conf ) for how the shares are setup.

Regards, Tobias
0
WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

 
LVL 35

Expert Comment

by:Duncan Roe
ID: 35187048
I don't like the look of the zeroes in e.g //jabba/PartsWebPages on /webpages type smbfs (0). That says to me they are mounted with no access, but I haven't really got into Samba yet so maybe they're OK. Any other expert know?
0
 
LVL 18

Assisted Solution

by:TobiasHolm
TobiasHolm earned 664 total points
ID: 35187186
Have you compared the share permissions on the Windows server for //jabba/PartsWebPages and //jabba/PowerSource ? Can you set the same rights on PartsWebPages as on the PowerSource share?

Regards, Tobias
0
 
LVL 6

Assisted Solution

by:de2Zotjes
de2Zotjes earned 1336 total points
ID: 35193637
I have rechecked and when there is no permission to write out the files to the target directory you will get a "permission denied" error. The "operation not permitted" is truly related to the ownership of file that was just written.

May I suggest that you try to locate the files you moved on other places in the filesystem hierarchy, possibly by using the find utility?
0
 

Author Comment

by:jrickercha
ID: 35194596
I will dig into the suggestions you have made and let you know what I find.
Thank you very much
0

Featured Post

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month8 days, 10 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question