In my ubuntu 14.04 lts, I tried setgid command as root user but it give setgid not found, for setuid it says to install and I install . But for setgid it does not give any option. So how can I get this command in linux ubuntu 14.04 LTS
When the setgid bit is set on a directory, new sub folders and files within that directory will inherit the group of the owner of the directory. If you do this on a folder, you can force new files and folders to have your group id, even if another user does the creation.
You can turn the setgid bit on by running:
chmod g+s <directory name here>
The user and group can be displayed using in the parent directory.
ls -l
See: http://www.toptip.ca/2010/03/linux-setgid-on-directory.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.