I have two users using the same computer with an additional internal drive. Right now, when one user creates a folder or file on this drive, only that user has write permissions for it. I'm looking for a way to ensure that any new folders or files created are writable by both users by default. I'm currently using Kubuntu, and I want to know how to set this up effectively.
3 Answers
You can try using `setfacl` to set default permissions. Run the command `setfacl --default --modify o::rw /path/to/your/directory` to allow others to read and write by default. Just remember to use `chmod o+rw /path/to/your/directory` so non-owners can create new files too.
Make sure you’re using `chmod` correctly to adjust permissions. If you want everything in a directory to have the same permissions, use the `-R` flag with `chmod` and `chown` to apply those settings recursively. It could help ensure all users have the right access.
It sounds like you're running into permission issues. When you create new folders, try setting up a shared group for both users. Use `chown` to change the ownership of the folder to that group so all new files and folders inherit the group's permissions.

Related Questions
How To Get Your Domain Unblocked From Facebook
How To Find A String In a Directory of Files Using Linux