How Can I Make All Files and Folders on My Drive Writable by All Users?
Asked by
CreativeCactus22
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.
Answers
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.
Reply to this answer
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.
Reply to this answer
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.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions