LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-17-2010, 11:44 AM   #1
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 718

Rep: Reputation: 102Reputation: 102
Question 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 ?

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
 
Old 07-17-2010, 12:41 PM   #2
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 833

Rep: Reputation: 167Reputation: 167
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?
 
Old 07-17-2010, 03:05 PM   #3
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 718

Original Poster
Rep: Reputation: 102Reputation: 102
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

 
Old 07-17-2010, 03:57 PM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
If YOU are the owner, do NOT use sudo!

If root is the owner, you DO use sudo.
 
Old 07-17-2010, 04:12 PM   #5
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
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
 
Old 07-17-2010, 06:35 PM   #6
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 718

Original Poster
Rep: Reputation: 102Reputation: 102
Question

Thanks for the responses. So will it set it straight if I re run the rsync sequence without Sudo ?
 
Old 07-17-2010, 09:55 PM   #7
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 54
Quote:
Originally Posted by jv2112 View Post
Thanks for the responses. So will it set it straight if I re run the rsync sequence without Sudo ?
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.
 
Old 07-18-2010, 07:25 AM   #8
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 718

Original Poster
Rep: Reputation: 102Reputation: 102
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


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


Reply

Tags
permission denied


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
.nautilus & .gnome-desktop permission denied jak_ggh Linux - Software 1 03-11-2006 07:49 AM
NFS & NIS: permission denied dgermann Linux - Networking 4 02-28-2006 09:39 PM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM
eDonkey & ed2k_gui, permission denied asktoby Linux - General 4 08-27-2003 01:48 PM
NTPD & "permission denied error" ghight Linux - Software 10 02-21-2003 01:14 PM


All times are GMT -5. The time now is 01:42 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration