Preserve the permissions with rsync
Let’s say I have a file a.txt in LINUX with permission of 0664.
When I use rsync to copy the file to my Mac with rsync -r -t -v LINUX MAC, the file’s permission becomes 0644.
Let’s say I have a file a.txt in LINUX with permission of 0664.
When I use rsync to copy the file to my Mac with rsync -r -t -v LINUX MAC, the file’s permission becomes 0644.
Can someone explain to me how umask affects the default mask of newly created files if ACLs are activated? Is there some documentation about this?
Two setuid programs, /usr/bin/bar and /usr/bin/baz, share a single configuration file foo. The configuration file’s mode is 0640, for it holds sensitive information. The one program runs as bar:bar (that is, as user bar, group bar); the other as baz:baz. Changing users is not an option, and even changing groups would not be preferable.
I have 3 users A,B and C inside a group ‘admin’. I have another user ‘D‘ in whose home directory, there is a project folder. I have made D as the owner of that folder and assigned ‘admin’ as the group using chgrp. Group and owners have all the permissions, but still A,B or C are unable to access the folder. I have two question :
I’m making a deb package to install a custom application. I changed all files/folders ownership to root in order to avoid the warnings I was getting during installation, and in Ubuntu all runs smoothly, as Ubuntu changes the ownership of the files/folders to the user installing the package.
I use the ‘tap’ net device with KVM to get my vm connect to the Internet. But I have to be root, or use ‘sudo’, which is inconvenient. I think I can put my user account into some group so I can access the net device without root privilege. I tried the netdev group, but does not work. My account is already in the kvm group.
My goal is to allow all users who are members of the “team” group to edit (r/w) the same set of remote files — normal work collaboration — using a local mount point. I have tried NFS and SSHFS using ACLs without success yet. Here I am trying to get SSHFS working by making the umask correct (which, in theory, should solve the problems I’m experiencing).
First, some background:
Why can’t I edit files owned by root but being e.g. somewhere deep in my personal directory, it says:
It seems that whenever I create a file with touch the permissions are set to: -rw-r–r–.