Sponsored Content
Full Discussion: Ownership changes
Top Forums UNIX for Dummies Questions & Answers Ownership changes Post 302949830 by Lace0047 on Thursday 16th of July 2015 12:09:07 PM
Old 07-16-2015
Thank you for your reply. I don't have Cygwin installed on the Windows server. I only have Services for NFS. As for the rsync command, I don't want to preserve the permission at the source as it will overwrite the Windows destination permission.

Windows server 2008 Standard
  • On the domain
  • Has Services for NFS and acts as NFS server
  • NFS share on E drive (allow anonymous access unchecked). Permission have a list of IPs Read/Write ANSI encoding and Root Access Allowed)
  • Identity mapping points to our domain
Linux1
  • Acts as the NFS client
  • Mounts the Windows share
Linux2
  • Rsync data to Linux1 NFS mount causing ownership changes to a domain user account and wipes previous permissions to new ones on files and folders in Windows.
  • Each day, our fix is to change the ownership back to the Administrators group and go to the parent folder and inherit permissions to what was changed from the parent folder on Windows.
It is quite cumbersome to make the ownership changes and manually do the permission changes each day in order for clients to make changes to the Windows files.

I need to find a solution for rsync to make changes to the data while keeping the ownership (Administrators group) and permissions intact.

I'm not too sure how the mapping works but the domain is specified. I'm guessing the user used by Linux to mount and rsync points to a specific domain user. How it chooses the user in the domain I'm not sure. I've noticed that the Linux user (test) points to domain account which contains test (test DOMAIN\1_2_test). Perhaps Linux user maps to same name user in the domain(or has that same name in the userID). But that domain user seem to overwrite the ownership of the file and adds Full Control in the permission which I want to avoid.

I'm not supporting the 2 Linux boxes but I can find out if you need more information at that level.

Hope I've cleared it up a bit more.
lace0047

Last edited by Lace0047; 07-16-2015 at 01:23 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

ownership of files

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

help regarding file ownership

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

Filesystem ownership with zones

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

precompressing and ownership

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

Why the cp keeps the original ownership?

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

changing ownership?

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

Ownership question

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

Get ownership info from LS

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

regarding changing ownership and group

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

retain ownership

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
rsync_selinux(8)					rsync Selinux Policy documentation					  rsync_selinux(8)

NAME
rsync_selinux - Security Enhanced Linux Policy for the rsync daemon DESCRIPTION
Security-Enhanced Linux secures the rsync server via flexible mandatory access control. FILE_CONTEXTS SELinux requires files to have an extended attribute to define the file type. Policy governs the access daemons have to these files. If you want to share files using the rsync daemon, you must label the files and directories public_content_t. So if you created a special directory /var/rsync, you would need to label the directory with the chcon tool. chcon -t public_content_t /var/rsync To make this change permanent (survive a relabel), use the semanage command to add the change to file context configuration: semanage fcontext -a -t public_content_t "/var/rsync(/.*)?" This command adds the following entry to /etc/selinux/POLICYTYPE/contexts/files/file_contexts.local: /var/rsync(/.*)? system_u:object_r:publix_content_t:s0 Run the restorecon command to apply the changes: restorecon -R -v /var/rsync/ SHARING FILES
If you want to share files with multiple domains (Apache, FTP, rsync, Samba), you can set a file context of public_content_t and pub- lic_content_rw_t. These context allow any of the above domains to read the content. If you want a particular domain to write to the pub- lic_content_rw_t domain, you must set the appropriate boolean. allow_DOMAIN_anon_write. So for rsync you would execute: setsebool -P allow_rsync_anon_write=1 BOOLEANS
system-config-selinux is a GUI tool available to customize SELinux policy settings. AUTHOR
This manual page was written by Dan Walsh <dwalsh@redhat.com>. SEE ALSO
selinux(8), rsync(1), chcon(1), setsebool(8), semanage(8) dwalsh@redhat.com 17 Jan 2005 rsync_selinux(8)
All times are GMT -4. The time now is 03:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy