when checking the permissions, this is what is seen. All the folders are owned by root and not by shyam, the user. The permissions were 777.
Code: Select all
shyam@shyamdesk ~ $ ls -lrth
total 0
drwxrwxrwx 1 root root 0 May 3 19:19 Desktop
drwxrwxrwx 1 root root 0 May 3 19:19 Downloads
drwxrwxrwx 1 root root 0 May 3 19:19 Templates
drwxrwxrwx 1 root root 0 May 3 19:19 Public
drwxrwxrwx 1 root root 0 May 3 19:19 Documents
drwxrwxrwx 1 root root 0 May 3 19:19 Music
drwxrwxrwx 1 root root 0 May 3 19:19 Pictures
drwxrwxrwx 1 root root 0 May 3 19:19 Videos
I tried changing owner and permissions using chown and chmod but there is no effect.
sudo chown -R $USERNAME: $HOME
chmod 755 $HOME
chmod 644 $HOME/.dmrc
root is still the owner and permissions are still 777. But when I run chown and chmod, it does not give any error either. I even tried running the commands after switching to root using su . What should I do? This is the first time my bro (non-techie) is trying lmde and at a loss to explain to him why this occurs
PS: When I create a new file, it's owner is also root and permissions are 777. But the current user is shyam.