LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Denied & it is my file & I have permission ? (https://www.linuxquestions.org/questions/linux-newbie-8/denied-and-it-is-my-file-and-i-have-permission-820401/)

jv2112 07-17-2010 11:44 AM

Denied & it is my file & I have permission ?
 
If I try the sudo mv command on the file listed below I get the error listed. I am confused. It is my file & I have permissions

Somehow a slew of files on my system are now showing this way.

This seems to correspond when I ran rsync from my netbook to sync it up with my desktop where I am having a problem.

Any ideas ? :doh:

Potential Source ->

Quote:

sudo rsync -av --delete --rsh=ssh joe@192.168.1.4:/media/Abyss/Memories/ /home/joe/Pictures/

Type of issue ->

Quote:

mv: cannot remove `100_2259.jpg': Permission denied

Quote:

joe@Tux-Box:/media/Abyss/Memories/2009/3-09$ stat 100_2259.jpg
File: `100_2259.jpg'
Size: 243012 Blocks: 480 IO Block: 4096 regular file
Device: 811h/2065d Inode: 1312030 Links: 1
Access: (0777/-rwxrwxrwx) Uid: ( 1000/ joe) Gid: ( 1000/ joe)
Access: 2010-07-17 11:41:26.708020712 -0400
Modify: 2009-12-13 21:49:59.501938000 -0500
Change: 2009-12-24 05:54:02.854309200 -0500

Keith Hedger 07-17-2010 12:41 PM

is the drive being mounted read only?do you have write permissions for the enclosing folder? if you use mv from the command line instead of rsync does that work?

jv2112 07-17-2010 03:05 PM

Drive -> No

Only Some folders within the parent folder at issue is effected. According to the file stats I am the owner and have RWX permissions. The other parent folders on the drive are OK.

Both functions(MV / RSYNC) = NG

:cry:

MTK358 07-17-2010 03:57 PM

If YOU are the owner, do NOT use sudo!

If root is the owner, you DO use sudo.

paulsm4 07-17-2010 04:12 PM

jv2112 -

Important concept: "root" on your local host is NOT the same as "root" on the remote host. This is a Good Thing.

You can give full permissions to your "root" on the remote host ... but I would discourage this. Similarly (as MTK358 suggested), I would discourage you from running "rsync" as "root".

Here's a great link, with lots of good advice:

http://troy.jdmz.net/rsync/

'Hope that helps .. PSM

jv2112 07-17-2010 06:35 PM

Thanks for the responses. So will it set it straight if I re run the rsync sequence without Sudo ?:newbie:

Kenny_Strawn 07-17-2010 09:55 PM

Quote:

Originally Posted by jv2112 (Post 4036694)
Thanks for the responses. So will it set it straight if I re run the rsync sequence without Sudo ?:newbie:

Yes. You could also try to do this:

Code:

chmod -R 777 /media/Abyss
which will max out the permissions on the drive.

This will also work:

Code:

sudo chmod 777 /dev/sd*
This will max out the permissions on all drives you plug in.

jv2112 07-18-2010 07:25 AM

Thanks for the suggestion. I tried all 3 & I still get the same type of error on files that I should not.


Quote:

sudo mv -v DSCF9568.JPG /home/joe/Desktop/
Quote:

`DSCF9568.JPG' -> `/home/joe/Desktop/DSCF9568.JPG'
mv: cannot remove `DSCF9568.JPG': Permission denied
Quote:

joe@Tux-Box:/media/Abyss/Memories/2009/10-09$ stat DSCF9568.JPG
File: `DSCF9568.JPG'
Size: 894494 Blocks: 1752 IO Block: 4096 regular file
Device: 811h/2065d Inode: 1311570 Links: 1
Access: (0777/-rwxrwxrwx) Uid: ( 1000/ joe) Gid: ( 1000/ joe)
Access: 2010-07-17 11:38:02.458020233 -0400
Modify: 2009-12-13 21:49:48.851948000 -0500
Change: 2009-12-24 05:54:02.844311156 -0500
:scratch:

This is a mystery......... :Pengy: : Can Linus help..... All suggestion welcome !!!!


All times are GMT -5. The time now is 03:51 AM.