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
slack.conf(5)							File Formats Manual						     slack.conf(5)

NAME
slack.conf - configuration file for slack DESCRIPTION
The file /etc/slack.conf contains configuration information for slack(8) and its backends. It should contain one keyword-value pair per line, separated by an '=' sign. Keywords must consist solely of capital letters and underscores. Values may take any appropriate format, but must not begin with a space. Comments start with '#', and all text from the '#' to the end of a line is ignored. Trailing whitespace on lines is ignored. Empty lines or lines consisting of only whitespace and comments are ignored. Valid keywords are: SOURCE The master source for slack roles. It can be in one of four forms: o /path/to/dir Use a local directory. o somehost:/path/to/dir Use given directory on a remote host via rsync over SSH. o rsync://somehost/module Use module on a remote rsyncd server (directly over the network). o somehost::module Use the rsync daemon protocol over SSH to the given host. See "USING RSYNC-DAEMON FEATURES VIA A REMOTE-SHELL CONNECTION" in rsync(1) All forms of SOURCE are passed directly to rsync, so you can do things like add "user@" before the host on any remote forms. For more about what rsync can do, see its manual page, of course. For the last form, however, we do a little magic. rsync treats the last two forms equivalently, so we overload the last form by automatically passing "-e ssh" to rsync when we see it. This hack lets us tell slack to use this nice feature of rsync just using the SOURCE config option. ROOT The root filesystem into which to install slack roles. Usually '/'. ROLE_LIST The location of the role list, which lists the roles to be installed by default on each host. This can be a path relative to the source, or can be an entirely separate location if it starts with a slash or a hostname (option- ally preceeded by user@). CACHE A local cache directory, used as a local mirror of the SOURCE. STAGE A local staging directory, used as an intermediate stage when installing files. BACKUP_DIR A directory in which to keep dated backups for rollbacks. EXAMPLE
A typical file might look like this: # slack.conf configuration file SOURCE=slack-master:/slack # source is on a remote # host named "slack-master" ROLE_LIST=slack-master:/roles.conf ROOT=/ CACHE=/var/cache/slack STAGE=/var/lib/slack/stage BACKUP_DIR=/var/lib/slack/backups FILES
/etc/slack.conf SEE ALSO
slack(8), rsync(1) File formats 2005-05-23 slack.conf(5)
All times are GMT -4. The time now is 02:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy