rsync is changing permissions


 
Thread Tools Search this Thread
Operating Systems OS X (Apple) rsync is changing permissions
# 1  
Old 07-20-2010
rsync is changing permissions

I have the following command. This is meant to download all files from my server to the Downloads folder of my startup drive:

Code:
/usr/local/bin/rsync -avve ssh --numeric-ids --delete --ignore-errors -R grndlvl@myserver.com:/usr/home/./grndlvl grndlvl@myserver.com:/usr/home/./grndlvl/mail_boxes/ grndlvl@myserver.com:/usr/home/./grndlvl/public_html/ /Volumes/'Macintosh HD'/Users/jeffrey/Downloads

This has always worked in the past, but now, I find that it's changing permissions for most of the directories so that a user called "_unknown" has rw, and Everyone has No access, and there are no other users. I even checked the permissions of one directory, which is all my mail boxes, and it has some weird "+" sign I've never seen before and can't be changed through the Finder, and I have no idea what chmod command would either create or eliminate it:
Code:
d-wxrw---x+   20 3004  1000      680 Feb  4 02:35 mail_boxes

As well, even when I do manually chmod the directories I am able to, the very next rsync changes them all back!

So what am I missing here?

Last edited by Yogesh Sawant; 12-10-2010 at 05:36 AM.. Reason: added code tags
# 2  
Old 07-20-2010
your command doesnt like with problem
may be you can try
Code:
-rlptgoD

instead of
Code:
-a

option..

+ access control list for fs so save permission in ACL like file access perm (chmod) and then process mapping with acl and fmpb
give this setfacl -m and remove this setfacl -x ..... and list getfacl file (or dir)

try this option and and add this end of the command
Code:
 
rsync -rlptgoDvvvve ssh --numeric-ids --delete --ignore-errors -R ............ /Volumes/'Macintosh HD'/Users/jeffrey/Downloads | grep generator

Any change the perms?
# 3  
Old 07-20-2010
I'll give it a try and let you know Smilie

---------- Post updated at 02:50 PM ---------- Previous update was at 01:44 PM ----------

That did it. Thank you.

BTW, can I ask you what the difference between the use of -a and the other set of options is? Am I missing anything, for example symlinks or resource forks?

Oh, also, now that it's working, I assume the grep's no longer needed. Are there any other options I can now delete?
# 4  
Old 08-13-2010
Well, I just moved my OS to a new drive, but of the same name, and now I'm getting the same permissions issues with the new command.
# 5  
Old 08-14-2010
try with strace and write output
Code:
strace rsync -avve ssh --numeric-ids --delete --ignore-errors -R ............ /Volumes/'Macintosh HD'/Users/jeffrey

or

try update rsync if there is available
# 6  
Old 08-14-2010
Looks like I don't have strace. Is that available in Mac OS X?
Code:
bash: strace: command not found

Also, this is the latest rsync, v.3.0.7.

Last edited by Yogesh Sawant; 12-10-2010 at 05:36 AM.. Reason: added code tags
# 7  
Old 08-14-2010
depending on your version of osx, you may have either ktrace or dtrace.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

changing directory permissions

Hi, Im getting this annoying problem on file permission when I copy a folder to a mounted external directory. the files inside the copied folders become all executable. I tried to search for ways how to undo the permission over the web but to no avail. tried this one but it doesnt change a... (2 Replies)
Discussion started by: ida1215
2 Replies

2. Cybersecurity

Permissions for Backup user to rsync files

I've got a new MythTV box at home and figured it would be a great opportunity to use it to do daily mirrors of my mysqlbackup directory (let's say /mysqlbackup/backups) and my website at /usr/local/apache/htdocs and below. I figured it would be a best practice NOT to use a root login but to... (0 Replies)
Discussion started by: dheian
0 Replies

3. Shell Programming and Scripting

Help with changing rsync script

#/bin/bash #set -vx DST_SRV=<destination_hostname> MDATE=`date +%Y%m%d%H%M` SRC_CONTENT="/home/prad/sourcecontent/" DST_CONTENT="/tmp/prad/destinationfolder/" DST_LOG="/tmp/prad/STATS" CURRENT_LOG="/home/prad/STATS/rsync-current.log" EMAIL="/home/prad/EMAIL/email.log"... (3 Replies)
Discussion started by: pnara2
3 Replies

4. Shell Programming and Scripting

changing the permissions

HI, I wann give permissions to a folder which contains multiple folders..... how can i give permissions to all folder at a time tat means if i give permissions to main folder it the same permissions has to take on all the folders in the main folders how can i use one command to give... (1 Reply)
Discussion started by: nani1984
1 Replies

5. Shell Programming and Scripting

HELP changing file permissions

does anyone know how to write a script that will change file permissions. because the Admin blocked me from altering any of my files im only allowed to read and i heard a script like this can bypass it but i dont know how to write it. Display current users. Display user Ids only. Display... (10 Replies)
Discussion started by: live2learn
10 Replies

6. Cybersecurity

changing /cn@0:console file permissions

I'm doing a security sweep of a Sun Sol 5.8 system. The file: /dev/console, which links to /devices/pseudo/cn@0:console, has the following perms: crw--w--w- I would like to get rid of the world write permissions. I can change the file permissions, but as soon as log back in, they are changed... (4 Replies)
Discussion started by: ErnieG
4 Replies

7. UNIX for Dummies Questions & Answers

Changing file permissions

Is there a way to change a unix user's default file permissions so that when he creates a file, by default permissions are 777??? Thanks! (7 Replies)
Discussion started by: FredSmith
7 Replies

8. UNIX for Advanced & Expert Users

Changing permissions of a user

So I need to change the permissions of my user account. I can access the root account on the server, but don't know how to change the permissions of my user account. I was advised to try 'userconf' to see if I am part of a group, but I dunno how that works. ANyone who knows how to see the... (3 Replies)
Discussion started by: achink125
3 Replies

9. Shell Programming and Scripting

Changing Permissions

Is it possible to change the permissons for an entire directory in one shot? I'm telneting on to a linux server. ...just a beginner-- --Paul (4 Replies)
Discussion started by: pdavid
4 Replies

10. Shell Programming and Scripting

changing file permissions

Use the following to Change permission of fileB (fileB could be fileB*) to change its permission same as the permission of fileA. chmod `ls -l fileA | awk '{pr int "u+", substr($1,2,1), substr($1,3,1), substr($1,4,1), ",g+", substr($1,5,1), substr($1,6,1), substr($1,7,1), ",o+",... (0 Replies)
Discussion started by: gagansharma
0 Replies
Login or Register to Ask a Question