Today I used sudo chmod +x * -R
in my $HOME folder, actually I didn't want to use it in $HOME folder, it was an accident. Afterthat I tried to use sudo chmod -x *
to fix it. But now, I couldn't open any file in $HOME folder with user permission. I can use root permission to open them. I used ll
to check that all files are owned by the user, but why can't I open them? Please help me.
my bash history(in ~/.bash_history):
sudo chmod +x * -R
ll
chmod -x -R *
ll
sudo chmod +x * -R
ll
sudo chmod +w * -R
ll
cd ~/Desktop/
sudo cd ~/Desktop/
sudo chmod -x *
ll
df -h
ll
cd ~/Desktop/
sudo cd ~/Desktop/
sudo cd /home/nix/Desktop/
sudo chmod -x * -R
ll
cd ~/Desktop/
su
gnome-open 1.png &
sudo gnome-open 1.png &
sudo gnome-open 1.png
cd
cd cd skypeFiles/
sudo cd skypeFiles/
ls -a
cd .config/
ls
cd ..
cd .local/
ls
cd share/
ls
cd applications/
ll
chmod +x *
ll
cd ..
chmod +x * -R
su
sudo chown nix:nix -R nix/
ll
At first I tried to chmod -x *
to fix it, nothing works. And then I found that I can use sudo gnome-open
to open files(while only gnome-open
didn't work), I guessed maybe there was something worng with my .desktop
files. After I entered .local/share/applications
, there was only "mimeapps.list*" here, so maybe I was wrong.
nix@***:~$ ls -la
total 324
drwxr-xr-x 53 nix nix 4096 Jan 1 14:01 .
drwxr-xr-x 3 root root 4096 Dec 29 21:40 ..
drwx------ 3 nix nix 4096 Dec 29 18:22 .adobe
drwx------ 2 nix nix 4096 Dec 31 21:40 .aptitude
-rw------- 1 nix nix 9131 Jan 1 14:28 .bash_history
-rw-r--r-- 1 nix nix 220 Apr 9 2014 .bash_logout
-rw-r--r-- 1 nix nix 3870 Dec 29 20:51 .bashrc
-rw-r--r-- 1 nix nix 3870 Dec 29 20:51 .bashrc~
Considering for my privacy, I deleted some result of the command ls -la
, for it didn't really matter in this problem.
ls -la
. – Raja G Jan 01 '15 at 07:10