07-15-2015
Hi Lace0047,
I'm not sure I have a definitive answer for you but I'll throw my thoughts out here and see if it helps.
First, I just want to confirm you are using the "Windows Services for Unix" NFS sharing function on your Windows server. If you are not, please let us know what you are using as it might affect the outcome. Do you also have any sort of mapping between Windows and Linux users or are they independent of each other?
The simplest answer may be to run chown, chmod, or chgrp after the rsync completes in order for the permissions to match the parent folder. This would be pretty straight forward if there are not other files in the destination folder.
If there are files in the destination folder that were not put there by rsync, you could work around this by creating a staging area and doing the following:
- rsync to the staging area
- chmod/chown/chgrp the files in the staging area
- mv the files from the staging area to the final destination.
Is it possible for you to post the full rsync command being used. Rsync has a ton of switches and it may just take some time to figure out which combo of switches accomplish what you are trying to do. There is even a --chmod switch on rsync but the outcome varies depending on what other switches you are using.
Thanks,
Tony
Last edited by rbatte1; 07-16-2015 at 08:43 AM..
Reason: Converted text numbered-list to have LIST=1 tags
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
While changing ownerships from the root on a server i'm managing, i typed chown -R username:users * and it changed all ownership to username. Can someone tell me if there is someway I can set things back the way they were before? I can't even su username from the root. Am I going to just... (4 Replies)
Discussion started by: szhu
4 Replies
2. Shell Programming and Scripting
hi friends,i have a doubt,if there is a file for which i have only read access then is there any way to execute it,plz reply soon (5 Replies)
Discussion started by: amit007
5 Replies
3. Solaris
What I have"
Solaris 10 U4, recently patched.
ZFS filesystems on the global zone
Local Zones on the zfs filesystems.
If I make a new ZFS filesystem, and present it to a local zone, i.e. /u01.
If I change the ownership of /u01 in the Local zone to oracle:dba /u01.
The file becomes... (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies
4. UNIX for Dummies Questions & Answers
I'm looking for a way to create preprocessed .gz files of static pages to serve up to those browsers that can accept them.
I know I can use:
gzip -c --best index.html > index.html.gz
to create the .gz file _and_ keep the original.
What's the proper command line way to run that on each... (2 Replies)
Discussion started by: dheian
2 Replies
5. Shell Programming and Scripting
I want to copy a file from another user to my owner directory, and want to change the ownership to my account.
in jung's directory:
-rwxr-xr-x 1 jung smart 23 Dec 1 2005 .runme
cp /home/jung/runme .
under my directory:
-rwxr-xr-x 1 jung smart 23 Dec 1... (1 Reply)
Discussion started by: freelong
1 Replies
6. UNIX for Dummies Questions & Answers
how would i change ownership of file1 so the user NATE gets ownership of the file? (1 Reply)
Discussion started by: trob
1 Replies
7. UNIX for Dummies Questions & Answers
Hi there, Complete Newbie here so any help would be so appreciated! :) I've set up a test directory and am trying to figure out out how to ensure that all new files will remain owned by the directory owner... not the creator of the file?? (3 Replies)
Discussion started by: CasperQuiet
3 Replies
8. Shell Programming and Scripting
Hi,
When I do the ls-ld command for example like this:
# ls -ld /Applications
I get an output like this:
drwxrwxr-x+ 114 root admin 3876 18 Aug 14:04 /Applications
I need to somehow use sed to put the ownership into a format like this:
root:admin
So basically remove... (2 Replies)
Discussion started by: pcwiz
2 Replies
9. UNIX for Dummies Questions & Answers
i am able to change the mode using chmod and able to change permission.
but i am not able to change group and ownership. getting as invalid
can any one help me regarding this . (4 Replies)
Discussion started by: satheeshkr_cse
4 Replies
10. UNIX for Advanced & Expert Users
Hi,
I have a script which transfers files/directories from one HP unix to another HP unix server using SCP but i need to retain ownership of files/folders same as source server my script is as follows
cd /sasdata/TR_CNTO328/C0328T07/Dry_Run_1/Macros
find . -type d -newer . -exec scp -pr {}... (6 Replies)
Discussion started by: tushar_spatil
6 Replies
LEARN ABOUT ULTRIX
xunmapsubwindows
XUnmapWindow(3X11) MIT X11R4 XUnmapWindow(3X11)
Name
XUnmapWindow, XUnmapSubwindows - unmap windows
Syntax
XUnmapWindow(display, w)
Display *display;
Window w;
XUnmapSubwindows(display, w)
Display *display;
Window w;
Arguments
display Specifies the connection to the X server.
w Specifies the window.
Description
The function unmaps the specified window and causes the X server to generate an event. If the specified window is already unmapped, has no
effect. Normal exposure processing on formerly obscured windows is performed. Any child window will no longer be visible until another
map call is made on the parent. In other words, the subwindows are still mapped but are not visible until the parent is mapped. Unmapping
a window will generate events on windows that were formerly obscured by it.
can generate a error.
The function unmaps all subwindows for the specified window in bottom-to-top stacking order. It causes the X server to generate an event
on each subwindow and events on formerly obscured windows. Using this function is much more efficient than unmapping multiple windows one
at a time because the server needs to perform much of the work only once, for all of the windows, rather than for each window.
can generate a error.
Diagnostics
A value for a Window argument does not name a defined Window.
See Also
XChangeWindowAttributes(3X11), XConfigureWindow(3X11), XCreateWindow(3X11), XDestroyWindow(3X11), XMapWindow(3X11) XRaiseWindow(3X11)
X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys
XUnmapWindow(3X11)