Skip to main content
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Source Link

Andreas Wiese say that if you have common group id across all hosts you may solve your issue with setgid bit and ACL

I ask question Predefined group ids across Linux distros?Predefined group ids across Linux distros?

After own research found that such group exist across all touched distros: sys group share id 3 on Debian, Ubuntu, RedHat, Fedora, CentOS, Suse, FreeBSD, OpenBSD, NetBSD, MacOSX, Solaris.

With this:

$ sudo chgrp -R sys /mnt/data/dir $ sudo chmod -R g+s /mnt/data/dir $ sudo setfacl -R -m g:sys:rwx /mnt/data/dir $ sudo setfacl -R -d -m g:sys:rwx /mnt/data/dir 

and flavor of this:

$ sudo adduser user sys 

you user be able to read/write any file on /dir.

Most job may do setgid bit but unfortunately you usually have little control on umask. So ACL is used to provide complete solution.

See also:

Andreas Wiese say that if you have common group id across all hosts you may solve your issue with setgid bit and ACL

I ask question Predefined group ids across Linux distros?

After own research found that such group exist across all touched distros: sys group share id 3 on Debian, Ubuntu, RedHat, Fedora, CentOS, Suse, FreeBSD, OpenBSD, NetBSD, MacOSX, Solaris.

With this:

$ sudo chgrp -R sys /mnt/data/dir $ sudo chmod -R g+s /mnt/data/dir $ sudo setfacl -R -m g:sys:rwx /mnt/data/dir $ sudo setfacl -R -d -m g:sys:rwx /mnt/data/dir 

and flavor of this:

$ sudo adduser user sys 

you user be able to read/write any file on /dir.

Most job may do setgid bit but unfortunately you usually have little control on umask. So ACL is used to provide complete solution.

See also:

Andreas Wiese say that if you have common group id across all hosts you may solve your issue with setgid bit and ACL

I ask question Predefined group ids across Linux distros?

After own research found that such group exist across all touched distros: sys group share id 3 on Debian, Ubuntu, RedHat, Fedora, CentOS, Suse, FreeBSD, OpenBSD, NetBSD, MacOSX, Solaris.

With this:

$ sudo chgrp -R sys /mnt/data/dir $ sudo chmod -R g+s /mnt/data/dir $ sudo setfacl -R -m g:sys:rwx /mnt/data/dir $ sudo setfacl -R -d -m g:sys:rwx /mnt/data/dir 

and flavor of this:

$ sudo adduser user sys 

you user be able to read/write any file on /dir.

Most job may do setgid bit but unfortunately you usually have little control on umask. So ACL is used to provide complete solution.

See also:

replaced http://askubuntu.com/ with https://askubuntu.com/
Source Link

Andreas Wiese say that if you have common group id across all hosts you may solve your issue with setgid bit and ACL

I ask question Predefined group ids across Linux distros?

After own research found that such group exist across all touched distros: sys group share id 3 on Debian, Ubuntu, RedHat, Fedora, CentOS, Suse, FreeBSD, OpenBSD, NetBSD, MacOSX, Solaris.

With this:

$ sudo chgrp -R sys /mnt/data/dir $ sudo chmod -R g+s /mnt/data/dir $ sudo setfacl -R -m g:sys:rwx /mnt/data/dir $ sudo setfacl -R -d -m g:sys:rwx /mnt/data/dir 

and flavor of this:

$ sudo adduser user sys 

you user be able to read/write any file on /dir.

Most job may do setgid bit but unfortunately you usually have little control on umask. So ACL is used to provide complete solution.

See also:

Andreas Wiese say that if you have common group id across all hosts you may solve your issue with setgid bit and ACL

I ask question Predefined group ids across Linux distros?

After own research found that such group exist across all touched distros: sys group share id 3 on Debian, Ubuntu, RedHat, Fedora, CentOS, Suse, FreeBSD, OpenBSD, NetBSD, MacOSX, Solaris.

With this:

$ sudo chgrp -R sys /mnt/data/dir $ sudo chmod -R g+s /mnt/data/dir $ sudo setfacl -R -m g:sys:rwx /mnt/data/dir $ sudo setfacl -R -d -m g:sys:rwx /mnt/data/dir 

and flavor of this:

$ sudo adduser user sys 

you user be able to read/write any file on /dir.

Most job may do setgid bit but unfortunately you usually have little control on umask. So ACL is used to provide complete solution.

See also:

Andreas Wiese say that if you have common group id across all hosts you may solve your issue with setgid bit and ACL

I ask question Predefined group ids across Linux distros?

After own research found that such group exist across all touched distros: sys group share id 3 on Debian, Ubuntu, RedHat, Fedora, CentOS, Suse, FreeBSD, OpenBSD, NetBSD, MacOSX, Solaris.

With this:

$ sudo chgrp -R sys /mnt/data/dir $ sudo chmod -R g+s /mnt/data/dir $ sudo setfacl -R -m g:sys:rwx /mnt/data/dir $ sudo setfacl -R -d -m g:sys:rwx /mnt/data/dir 

and flavor of this:

$ sudo adduser user sys 

you user be able to read/write any file on /dir.

Most job may do setgid bit but unfortunately you usually have little control on umask. So ACL is used to provide complete solution.

See also:

replaced http://serverfault.com/ with https://serverfault.com/
Source Link

Andreas Wiese say that if you have common group id across all hosts you may solve your issue with setgid bit and ACL

I ask question Predefined group ids across Linux distros?

After own research found that such group exist across all touched distros: sys group share id 3 on Debian, Ubuntu, RedHat, Fedora, CentOS, Suse, FreeBSD, OpenBSD, NetBSD, MacOSX, Solaris.

With this:

$ sudo chgrp -R sys /mnt/data/dir $ sudo chmod -R g+s /mnt/data/dir $ sudo setfacl -R -m g:sys:rwx /mnt/data/dir $ sudo setfacl -R -d -m g:sys:rwx /mnt/data/dir 

and flavor of this:

$ sudo adduser user sys 

you user be able to read/write any file on /dir.

Most job may do setgid bit but unfortunately you usually have little control on umask. So ACL is used to provide complete solution.

See also:

Andreas Wiese say that if you have common group id across all hosts you may solve your issue with setgid bit and ACL

I ask question Predefined group ids across Linux distros?

After own research found that such group exist across all touched distros: sys group share id 3 on Debian, Ubuntu, RedHat, Fedora, CentOS, Suse, FreeBSD, OpenBSD, NetBSD, MacOSX, Solaris.

With this:

$ sudo chgrp -R sys /mnt/data/dir $ sudo chmod -R g+s /mnt/data/dir $ sudo setfacl -R -m g:sys:rwx /mnt/data/dir $ sudo setfacl -R -d -m g:sys:rwx /mnt/data/dir 

and flavor of this:

$ sudo adduser user sys 

you user be able to read/write any file on /dir.

Most job may do setgid bit but unfortunately you usually have little control on umask. So ACL is used to provide complete solution.

See also:

Andreas Wiese say that if you have common group id across all hosts you may solve your issue with setgid bit and ACL

I ask question Predefined group ids across Linux distros?

After own research found that such group exist across all touched distros: sys group share id 3 on Debian, Ubuntu, RedHat, Fedora, CentOS, Suse, FreeBSD, OpenBSD, NetBSD, MacOSX, Solaris.

With this:

$ sudo chgrp -R sys /mnt/data/dir $ sudo chmod -R g+s /mnt/data/dir $ sudo setfacl -R -m g:sys:rwx /mnt/data/dir $ sudo setfacl -R -d -m g:sys:rwx /mnt/data/dir 

and flavor of this:

$ sudo adduser user sys 

you user be able to read/write any file on /dir.

Most job may do setgid bit but unfortunately you usually have little control on umask. So ACL is used to provide complete solution.

See also:

remove extraneous HTML comments from previous (suggested) edit
Source Link
Anthony Geoghegan
  • 13.6k
  • 7
  • 62
  • 66
Loading
Loading
added 334 characters in body
Source Link
gavenkoa
  • 581
  • 6
  • 13
Loading
Source Link
gavenkoa
  • 581
  • 6
  • 13
Loading