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
OCF_HEARTBEAT_RSYNCD(7) 					OCF resource agents					   OCF_HEARTBEAT_RSYNCD(7)

NAME
ocf_heartbeat_rsyncd - Manages an rsync daemon SYNOPSIS
rsyncd [start | stop | monitor | meta-data | validate-all] DESCRIPTION
This script manages rsync daemon SUPPORTED PARAMETERS
binpath The rsync binary path. For example, "/usr/bin/rsync" (optional, string, default rsync) conffile The rsync daemon configuration file name with full path. For example, "/etc/rsyncd.conf" (optional, string, default /etc/rsyncd.conf) bwlimit This option allows you to specify a maximum transfer rate in kilobytes per second. This option is most effective when using rsync with large files (several megabytes and up). Due to the nature of rsync transfers, blocks of data are sent, then if rsync determines the transfer was too fast, it will wait before sending the next data block. The result is an average transfer rate equaling the specified limit. A value of zero specifies no limit. (optional, string, no default) SUPPORTED ACTIONS
This resource agent supports the following actions (operations): start Starts the resource. Suggested minimum timeout: 20s. stop Stops the resource. Suggested minimum timeout: 20s. monitor Performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 60s. validate-all Performs a validation of the resource configuration. Suggested minimum timeout: 20s. meta-data Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5s. EXAMPLE
The following is an example configuration for a rsyncd resource using the crm(8) shell: primitive p_rsyncd ocf:heartbeat:rsyncd op monitor depth="0" timeout="20s" interval="60s" SEE ALSO
http://www.linux-ha.org/wiki/rsyncd_(resource_agent) AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors) resource-agents UNKNOWN 03/09/2014 OCF_HEARTBEAT_RSYNCD(7)
All times are GMT -4. The time now is 09:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy