Debian file system mess up

Just installed Debian 8.6.0 for the first time and I think I have messed up the file system permissions. I have a root, and my personal user but I cant delete files for some reason. I have given everyone permission to one file to test and I still cant delete it.

Check your folder permissions rather than the permissions of that file. Deleting a file is associated with the folder it is in, not the file itself.

Better explanations here: http://unix.stackexchange.com/questions/7466/i-cant-delete-a-file-that-i-have-write-permissions-for-as-a-group-member#7468

The permission screen shot I uploaded was in the folder not the file.

How do I add the directory permission in chmod I am trying u+d but its an invalid mode.. hmm

chmod 755 $(pwd)
or
chmod 755 test #your folder name

Should work for ya.

sets:

Owner - read write execute
Group - Read execute
Other - Read execute

if you don't want other to read execute, use 750 instead.

pwd will get your current directory you're in.

otherwise, give it the folder you're trying to get execute access to.

You need execute access on folders to be able to do stuff like cd, ls, and etc.

sudo chown -R $USER:$USER /home/$USER
chmod 0755 /home/$USER

First one ensures you are the owner and gives you all access. Second one changes the permissions, by setting a umask of 022.

File permissions and ownership are different.

Suggested reading: umask values and file permission octals.