How Can I Make All Files and Folders on My Drive Writable by All Users?

0
6
Asked By CreativeCactus22 On

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

Answered By TechieTommy On

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.

Answered By BinaryBard On

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.

Answered By GeniusGiraffe99 On

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.