How to install setgid in ubuntu

On my ubuntu 14.04 lts, ​​I tried the setgid command as root, but it didn't give setgid not found as setuid says to install and install. But for setgid, it doesn't give any choice. So how can I get this command on linux ubuntu 14.04 LTS

+3


source to share


1 answer


When the setgid bit is set on a directory, new subfolders and files in that directory inherit the directory's owner group. If you do this in a folder, you can force new files and folders to have their own group id, even if another user makes the creation.

You can enable the setgid bit by doing:

chmod g+s <directory name here>

      



User and group can appear in the parent directory.

ls -l

      

See: http://www.toptip.ca/2010/03/linux-setgid-on-directory.html

+8


source