Notes to Future Self

Ensuring new files in a directory belong to the group

Issue: I want to create a shared directory when a number of users (all belong to a group called mygroup) can create and edit files. I would like all files, including new files created in this directory and subdirectories to belong to the mygroup.

Solution: Set the SetGID sticky bit
$> chmod g+s dir
Source: superuser.com/questions
Reference: superuser.com blog/tutorial on linux permissions
Newer Post Older Post Home

Blog Archive

  • ►  2015 (6)
    • ►  February (1)
    • ►  January (5)
  • ▼  2014 (34)
    • ►  December (7)
    • ▼  September (12)
      • Make Offline Mirror of a Site Using `wget`
      • Configuring KDE to Have Desktop Icons Appear
      • Steam on Fedora 20
      • Install .deb on Fedora 20
      • Moka Themes and Icons on Fedora 20
      • Fedora 20 - uses GNOME-Shell
      • Windows Desktop Icons - Auto Arrange
      • Python and Command-Line Arguments
      • Ensuring new files in a directory belong to the group
      • SSH and Port Forwarding
      • How long did that command take to run?
      • RCS - Simple Version Control
    • ►  July (13)
    • ►  May (2)
  • ►  2013 (3)
    • ►  May (1)
    • ►  March (2)
Powered by Blogger.