Sponsored Content
Top Forums Shell Programming and Scripting Issue with rsync: failed to set times on "/tmp/.": Not owner (1) Post 303012701 by mohtashims on Wednesday 7th of February 2018 04:21:51 PM
Old 02-07-2018
Hammer & Screwdriver Issue with rsync: failed to set times on "/tmp/.": Not owner (1)

Hi,

Here is my source host and folder details.
Code:
[src-user@source-host]$ hostname
source-host
[src-user@source-host Trn_File]$ id
uid=600000208(src-user) gid=64688(src-user) groups=64688(src-user)
[src-user@source-host Trn_File]$ ls -ltrd /web/Trn_File/data/
drwxrwxrwx 3 src-user src-user 4096 Feb  7 15:27 /web/Trn_File/data/
[src-user@source-host Trn_File]$ ls -ltrd /web/Trn_File/data/*
drwxrwxrwx 8 src-user src-user 4096 Jan 24 02:03 /web/Trn_File/data/jdk1.7.0_95

Here is the destination details
Code:
bash-3.2$ hostname
dest-host
bash-3.2$ id
uid=9941(dest-user) gid=9941(dest-user)
bash-3.2$ ls -ltrd /tmp
drwxrwxrwt  13 root     sys         2518 Feb  7 15:13 /tmp
bash-3.2$ ls -ltrd /tmp/jdk1.7.0_95
drwxrwxrwx   8 dest-user    dest-user        890 Jan 24 01:03 /tmp/jdk1.7.0_95

I m firing the rsync command on the source (source-host) expecting that it will copy and override the /web/Trn_File/data/jdk1.7.0_95 to destination (dest-host) /tmp/jdk1.7.0_95
Code:
 
 [src-user@source-host Trn_File]$ rsync --delay-updates -I -F --compress --archive --rsh=ssh /web/Trn_File/data/ dest-user@dest-host..com:/tmp

However the rsync command fails with the below error:
Quote:
rsync: failed to set times on "/tmp/.": Not owner (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1052) [sender=3.0.9]
Although /tmp has owner as root all the users are free to write in the /tmp directory. So Why does rync not write/copy/overwrite the jdk1.7.0_95 folder inside /tmp ?
Can you please help me understand what needs to be done inorder to fix the problem ?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem with "set" and "awk"

Hi, i'm programming on /bin/csh and i need to get the number extracted by this: set ppl_kn = $(awk '{ field = $6 } ; END{ print field }' < ppl_LM_kn.ppl ) and the output is: "Illegal variable name." Please anyone can help me what's wrong? Thanks in advance (2 Replies)
Discussion started by: tmxps
2 Replies

2. Programming

Differece between "env" and "set" command

Hi, Please clarify what is the difference between "env" and "set" command. I guess set will display the system variables and user defined variables. Thanks Sweta (1 Reply)
Discussion started by: sweta
1 Replies

3. Shell Programming and Scripting

ERROR: "/bin/ksh: Not owner"

When ssh'ing into certain Unix boxes I'm seeing two errors that appear immediately after entering the password I've never seen. After the error message is displayed the connection closes immediately. The first is “/bin/ksh: Not owner” after which the connection is closed. And, “Read from remote... (5 Replies)
Discussion started by: twk
5 Replies

4. Shell Programming and Scripting

Script for delete tmp files older than 15 days and owned by "xxx" id

Hi All , I want to delete files from /tmp directory created by "xxxx" id. because i got the list says more than 60 thousand files were created by "xxxx" id since 2002. The /tmp directory has lot of files created by different user ids like root,system etc.. But, i need a script to... (2 Replies)
Discussion started by: vparunkumar
2 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. Shell Programming and Scripting

""Help Me!""Beginner awk learning issue

Hi All, I have just now started learning awk from the source - Awk - A Tutorial and Introduction - by Bruce Barnett and the bad part is that I am stuck on the very first example for running the awk script. The script is as - #!/bin/sh # Linux users have to change $8 to $9 awk ' BEGIN ... (6 Replies)
Discussion started by: csrohit
6 Replies

7. Solaris

The slices "usr", "opt", "tmp" disappeared!!! Help please.

The system don't boot. on the screen appears following: press enter to maintenance (or type CTRL-D to continue)...I checked with format command. ... the slices "0-root","1-swap","2-backup" exist. ...the slises "3-var","6-usr" -unassigned. :( (16 Replies)
Discussion started by: wolfgang
16 Replies

8. Solaris

Solaris 10 error "-sh: /tmp/outfile: cannot create"

Hello, Each time a user log on to host, they receive below error: -sh: /tmp/outfile: cannot create Example: $ ssh host user@host's password: Last login: Fri Dec 4 08:17:28 2015 from client.ref |-----------------------------------------------------------------| -sh:... (2 Replies)
Discussion started by: feroccimx
2 Replies

9. Shell Programming and Scripting

Why awk print is strange when I set FS = " " instead of FS = "\t"?

Look at the following data file(cou.data) which has four fields separated by tab. Four fields are country name, land area, population, continent where it belongs. As for country name or continent name which has two words, two words are separated by space. (Data are not accurately... (1 Reply)
Discussion started by: chihuyu
1 Replies

10. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
MPSTORE(1)							      mpstore								MPSTORE(1)

NAME
mpstore - store and transfer mpd state between daemons SYNOPSIS
mpstore [host] > file mpload [host] < file mpcp [src] dest mpmv [src] dest mpswap [A] B DESCRIPTION
These commands allow saving, loading, and transferring state between mpd daemons running on different hosts. mpstore dumps a daemon's state to stdout. mpload loads a state dump from stdin and sends it to a daemon. mpcp copies the state from the src daemon to the dest daemon, causing it to begin to play the same song as the src daemon, at the same position. mpmv moves the state, so the dest daemon is left playing what the src daemon was playing, and the src daemon is paused. mpswap exchanges the state of daemons A and B, swapping what they're playing. The first hostname passed to each command can be omitted, if it is then the MPD_HOST environment variable will be used. Like the MPD_HOST variable, the hostname can be of the form "password@hostname" to specify a password. If any hostname is "-", the MPD_HOST setting will be used. The full list of state that is handled is: the contents of the playlist the playback state (playing, paused, stopped) the currently playing song the position within the playing song the volume control the repeat, random, and cross fade settings LIMITATIONS
The host that state is transferred to must have the playing song available in its library, with the same filename. It's ok if some other songs in the playlist are not available; such songs will be skipped. mpcp cannot perfectly synchronise playback between the two daemons. Network latency and timing prevent this. It should manage better than 0.5 second accuracy. If you need better accuracy of synchronised playback, you should probably use Pulse Audio. BUGS
The file format is not the same that mpd uses for saving its own state, which would be nice. AUTHOR
Copyright 2007 Joey Hess <joey@kitenet.net> Licensed under the GNU GPL version 2 or higher. http://kitenet.net/~joey/code/mpdtoys perl v5.10.1 2010-03-06 MPSTORE(1)
All times are GMT -4. The time now is 11:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy