What are permissions to create a folder or file?

I've seen lots of stuff on the internet about HOW to set permissions.

Please tell me WHAT permissions are required for a user to be able to create a folder or a file. I would have thought just w but I'm not sure.


Solution 1:

To change file and directory permissions change directories with cd to the directory that contains the file/directory whose permissions you want to change, and use the command chmod (change mode).

Add write permissions to a file or a directory:

chmod +w filename
chmod +w directoryname

If you want to read the file and also want write permissions, you need read permissions too. Add read/write permissions to a file or a directory:

chmod +rw filename
chmod +rw directoryname