I can't access files without elevated privileges (SOLVED)

I have been playing fast and loose lately with my Peppermint 6 setup and now have a problem accessing files in my Home directory.
When I click on File Manager it opens and all the folders have cross on them and some also have a padlock.
When I right click on a folder and select open, it says I do not have the required permissions.
What have I done and how do I repair this ? Anyone any ideas. ?

What’s the output from:

ls -l ~/

don@ldwatson ~ $ ls -l ~/
total 143760
drwx------ 4 www-data www-data 4096 Jun 6 12:12 alan’s croft
drwx------ 38 www-data www-data 4096 Sep 20 19:18 All Pen Stuff
-rw-rw-r-- 1 www-data www-data 153468 Sep 30 10:50 Attachment.eml
-rw-r----- 1 www-data www-data 144295753 Sep 4 16:16 AutoCad2004.rar
drwxrwxr-x 2 www-data www-data 4096 Aug 29 14:42 Base_Trials
drwx------ 2 www-data www-data 4096 Jun 6 12:12 Benilux Park
drwx------ 2 www-data www-data 4096 Jun 6 20:38 blanket
drwxrwxr-x 12 www-data www-data 4096 Oct 8 22:12 Broxburn_members_sheet
drwx------ 2 www-data www-data 4096 Jun 6 20:38 bus times for club
drwx------ 4 www-data www-data 4096 Sep 17 21:50 calc_and_base_tutes
drwx------ 4 www-data www-data 4096 Jun 6 12:13 castle pics
drwx------ 5 www-data www-data 4096 Jun 6 12:14 chip carving and pyro
-rw-rw-r-- 1 www-data www-data 0 Sep 29 12:19 code~
-rw-rw-r-- 1 www-data www-data 0 Aug 26 15:01 dbase1~
-rw-rw-r-- 1 www-data www-data 0 Aug 26 15:05 dbase2~
drwxr-xr-x 2 www-data www-data 4096 Oct 4 19:58 Desktop
drwxr-xr-x 9 www-data www-data 4096 Oct 3 12:31 Documents
drwxr-xr-x 2 www-data www-data 12288 Oct 9 14:36 Downloads
drwxrwxr-x 2 www-data www-data 4096 Aug 23 12:02 Draft_Sight_Tutes
drwx------ 11 www-data www-data 4096 Aug 4 15:23 e_cigs
drwx------ 12 www-data www-data 4096 Jun 6 20:42 FG Aircraft
-rw-rw-r-- 1 www-data www-data 292 Oct 9 14:03 file_ownership
-rw-rw-r-- 1 www-data www-data 997 Sep 23 12:44 film_dbase
-rw-rw-r-- 1 www-data www-data 948 Sep 23 12:05 film_dbase~
-rw-rw-r-- 1 www-data www-data 1233 Jul 16 16:03 firefox install~
-rw-rw-r-- 1 www-data www-data 862 Sep 29 13:44 Front_Page.dia
drwx------ 4 www-data www-data 4096 Jul 6 19:00 glabel_file
-rw-rw-r-- 1 www-data www-data 1486 Sep 23 19:30 grahams_input
drwx------ 2 www-data www-data 4096 Jun 6 20:40 haldane opening
drwx------ 9 www-data www-data 4096 Oct 2 09:48 holiday pages ins etc
drwx------ 2 www-data www-data 4096 Jun 6 12:15 John’s fire
drwx------ 8 www-data www-data 4096 Jul 17 13:47 kdenlive
drwx------ 2 www-data www-data 4096 Jun 6 20:40 Key_breakins
-rw-rw-r-- 1 www-data www-data 838 Oct 7 09:59 lamp_stack
drwx------ 5 www-data www-data 4096 Jul 4 18:39 Lesley_Pics
-rw-rw-r-- 1 www-data www-data 375 Jul 16 16:04 malware bytes install~
drwx------ 4 www-data www-data 4096 Sep 17 20:14 marks answers
drwx------ 2 www-data www-data 4096 Jun 6 20:40 Me_gifs_jpg
drwxr-xr-x 2 www-data www-data 4096 Sep 4 16:27 Music
drwxrwxr-x 3 www-data www-data 4096 Sep 20 20:00 My_Setups
drwx------ 2 www-data www-data 4096 Jul 23 13:31 new_heating_setup
-rw-rw-r-- 1 www-data www-data 117 Sep 20 23:04 new_member
drwx------ 6 www-data www-data 4096 Aug 23 11:58 Newsletters
drwxrwxr-x 3 www-data www-data 4096 Jul 17 16:20 None
drwx------ 3 www-data www-data 4096 Jun 6 12:15 Notelets
-rw-rw-r-- 1 www-data www-data 116567 Sep 28 21:46 Object Types.dia.autosave
drwx------ 2 www-data www-data 4096 Jun 6 20:38 Passports
-rw-r----- 1 www-data www-data 54710 Sep 22 22:04 people.sql
drwx------ 3 www-data www-data 4096 Jul 6 22:39 Perth_club_sales_sheet
drwxr-xr-x 12 www-data www-data 4096 Sep 5 21:16 Pictures
drwx------ 6 www-data www-data 4096 Jun 14 18:07 printer cameramanuals
drwxr-xr-x 2 www-data www-data 4096 Sep 15 13:59 Public
drwx------ 5 www-data www-data 4096 Sep 19 15:42 Royal_Aircraft_Factory_BE’2_etc
drwx------ 3 www-data www-data 4096 Jun 6 12:17 rtlwifi-lwfinger
drwx------ 5 www-data www-data 4096 Jun 6 12:17 Scribus_files
-rw-rw-r-- 1 www-data www-data 994 Sep 22 10:28 servers
drwxrwxr-x 2 www-data www-data 4096 Sep 17 20:13 server_trial
-rw-rw-r-- 1 www-data www-data 324 Sep 11 09:09 sezo_access_points~
-rw-rw-r-- 1 don don 62 Oct 10 00:44 site_hints~
-rw-rw-r-- 1 www-data www-data 3002 Sep 22 00:03 SMF Server requirements
-rw-rw-r-- 1 www-data www-data 100 Sep 20 22:40 spam_problem
drwx------ 5 www-data www-data 4096 Jun 6 20:39 spurtles
drwxrwxr-x 4 www-data www-data 4096 Sep 23 23:21 sqlbases
drwx------ 2 www-data www-data 4096 Jun 6 12:17 strathpeffer_060415
drwx------ 3 www-data www-data 4096 Jun 6 12:17 stuff from desktop
-rw-rw-r-- 1 www-data www-data 0 Oct 7 18:54 sudo
drwx------ 2 www-data www-data 4096 Aug 24 17:21 superhub
drwx------ 2 www-data www-data 4096 Jun 6 12:17 System Volume Information
drwxr-xr-x 2 www-data www-data 4096 Jun 5 20:46 Templates
-rw-rw-r-- 1 www-data www-data 20 Oct 7 21:25 test.php
-rw-rw-r-- 1 www-data www-data 0 Oct 7 21:24 test.php~
drwx------ 2 www-data www-data 4096 Jun 6 12:17 thumbnail
drwx------ 4 www-data www-data 4096 Jun 6 20:40 Trial_Pictures
drwx------ 3 www-data www-data 4096 Jun 6 12:21 Turned Pieces
drwxrwxr-x 2 www-data www-data 4096 Aug 9 11:14 Ubuntu iso
drwxr-xr-x 3 www-data www-data 4096 Aug 25 15:58 Videos
drwx------ 4 www-data www-data 4096 Jun 6 20:39 web_stuff_dan_phil
drwxrwxr-x 2 www-data www-data 4096 Jun 13 15:34 wedding_video_large
-rw-rw-r-- 1 www-data www-data 2476 Oct 9 12:05 whats_my_ip
-rw-rw-r-- 1 www-data www-data 0 Oct 9 12:03 whats_my_ip~
-rw-rw-r-- 1 www-data www-data 520 Oct 9 12:10 whats_my_ip_2
-rw-rw-r-- 1 www-data www-data 520 Oct 9 12:07 whats_my_ip_2~
drwx------ 2 www-data www-data 4096 Jul 4 18:42 woodworking todo
-rw-rw-r-- 1 www-data www-data 1501 Oct 9 11:09 wordpress_updates
-rw-rw-r-- 1 www-data www-data 1501 Oct 9 11:06 wordpress_updates~
drwx------ 2 www-data www-data 4096 Jun 6 12:21 words_at_wedding
drwx------ 2 www-data www-data 4096 Jun 6 20:39 Yudu instructions
-rw-r----- 1 www-data www-data 2240521 Sep 22 23:01 zipcodes.sql
don@ldwatson ~ $

Is this ok ? Thanks Mark

Hi Mark,
I also had a look at history

don@ldwatson ~ $ history
1 exit
2 sudo apt update
3 sudo apt upgrade
4 exit
5 sudo apt update
6 sudo apt install firefox vlc libreoffice thunderbird skype && sudo update-apt-xapian-index
7 sudo apt install ttf-mscorefonts-installer
8 sudo apt install lubuntu-restricted-extras ubuntu-restricted-extras
9 exit
10 sudo apt update
11 sudo apt upgrade
12 sudo apt update
13 sudo apt install firefox vlc libreoffice thunderbird skype && sudo update-apt-xapian-index
14 sudo apt install ttf-mscorefonts-installer
15 sudo apt install lubuntu-restricted-extras ubuntu-restricted-extras
16 exit
17 sudo apt-get install-f
18 exit
19 gksudo synaptic
20 sudo apt-get install-f
21 sudo apt-get install -f
22 exit
23 sudo apt-get update
24 exit
25 sudo dpkg -i ~/Desktop/epson-inkjet-printer-201101w_1.0.0-1lsb3.2_i386.deb
26 exit
27 sudo apt-get remove --purge epson-inkjet-printer-201101w
28 sudo apt-get install lsb
29 exit
30 sudo apt-get install bsdgames
31 apt-get -f install
32 exit
33 update
34 sudo apt-get update
35 exit
36 bsdgames
37 cd bsdgames
38 exit
39 sudo apt-get -f install
40 exit
41 exit
42 dpkg -l | grep epson-inkjet-printer-201101w
43 exit
44 sudo apt-get -f install
45 exit
46 exit
47 exit
48 uname -a
49 exit
50 exit
51 sudo apt-get remove --purge iscan
52 sudo apt-get remove --purge iscan-data
53 sudo apt-get remove --purge epson-inkjet-printer-201101w
54 exit
55 sudo apt-get update
56 sudo apt-get upgrade
57 exit
58 apt autoremove
59 exit
60 sudo apt-get install bsdgames
61 exit
62 bsdgames
63 exit
64 sudo apt-get autoremove
65 exit
66 sudo apt-get install bsdgames
67 apt-get autoremove
68 sudo apt-get install --reinstall bsdgames
69 exit
70 cribbage
71 cribbage
72 glabels
73 exit
74 uname -a
75 exit
76 cp -vr ~/.local/share/applications ~/.local/share/applications-backup
77 cd ~/.local/share/applications
78 grep -rl ‘chromium-browser --app’ ./ | xargs sed -i ‘s/chromium-browser --app/google-chrome --app/g’
79 sudo apt remove chromium-browser
80 exit
81 sudo apt-get remove --purge chromium-browser
82 cd ~/.config
83 rm -rv chromium
84 cd ~/.cache
85 rm -rv chromium
86 exit
87 apt autoremove
88 ls -a ~/.local/share/applications
89 rm -v ~/.local/share/applications/chromium.desktop
90 exit
91 ls -a ~/.local/share/applications
92 exit
93 gedit ~/.config/lxpanel/Peppermint/panels/panel
94 cd ~/.config/lxpanel/Peppermint/panels
95 rm -v panel~
96 lxpanelctl restart
97 exit
98 gedit ~/.config/lxpanel/Peppermint/panels/panel
99 exit
100 gedit ~/.config/lxpanel/Peppermint/panels/panel
101 exit
102 cd ~/.config/lxpanel/Peppermint/panels
103 rm -v panel~
104 lxpanelctl restart
105 exit
106 sudo apt install palapeli
107 exit
108 route -n
109 ip route show
110 exit
111 sudo apt-get remove --purge bricscadv14
112 sudo apt-get remove --purge bricscadv15
113 sudo updatedb
114 locate brics
115 exit
116 dpkg -l | grep -i bric
117 dpkg -l | grep -i bric
118 exit
119 locate brics
120 locate brics
121 exit
122 sudo lshw -C network
123 iwlist scan
124 iwconfig
125 rfkill list
126 exit
127 sudo lshw -C network
128 uname -a
129 lsusb
130 exit
131 sudo lshw -C network
132 sudo iwlist scan
133 exit
134 ping -c 5 192.168.0.1
135 ping -c 5 google.co.uk
136 exit
137 route -n
138 ip route show
139 exit
140 dpkg -l | grep -i bric
141 sudo apt-get remove --purge bricscadv14
142 sudo apt-get remove --purge bricscadv15
143 sudo apt-get remove --purge bricscad
144 sudo updatedb
145 locate brics
146 exit
147 inxi -F
148 exit
149 ping -c 5 192.168.1.1
150 ping -c 5 google.co.uk
151 exit
152 ping -c 5 192.168.1.1
153 ping -c 5 192.168.1.1
154 exit
155 ping -c 5 192.168.1.1
156 ping -c 5 google.co.uk
157 exit
158 ping -c 5 192.168.1.1
159 ping -c 5 google.co.uk
160 exit
161 ping -n 5 192.168.1.1
162 ping -n 5 192.168.1.1
163 ping -c 5 192.168.1.
164 ping -c 5 192.168.1.1
165 ping -c 5 google.com
166 exit
167 ping -c 5 192.168.1.1
168 ping -c 5 google.com
169 ping -c 5 google.co.uk
170 exit
171 ping -c 5 google.com
172 exit
173 ping -c 5 192.168.1.1
174 ping -c 5 google.com
175 exit
176 sudo apt-get install usb-creator-gtk
177 exit
178 ping -n 5 192.168.1.1
179 -c 5 192.168.1.1
180 -c 5 192.168.1.1
181 -c 5 google.com
182 exit
183 ping -c 5 192.168.1.1
184 ping -c 5 google.com
185 ping -c 5 google.com
186 ping -c 5 8.8.8.8
187 exit
188 ping -c 5 192.168.1.1
189 ping -c 5 google.com
190 ping 8.8.8.8
191 exit
192 sudo lshw -C network
193 cat /etc/modprobe.d/rtl8723be.conf
194 exit
195 cat /etc/modprobe.d/rtl8723ae.conf
196 exit
197 echo “options rtl8723ae fwlps=0” | sudo tee /etc/modprobe.d/rtl8723ae.conf
198 sudo modprobe -r rtl8723ae
199 sudo modprobe rtl8723ae
200 exit
201 exit
202 ping -c 5 192.168.1.1
203 ping -c 5 google.com
204 exit
205 ls
206 exit
207 ping -c 5 192.168.1.1
208 ping -c 5 google.co.uk
209 ping -c 5 w.armii@sky.com
210 exit
211 sudo apt-get install apache2
212 apt-get autoremove
213 exit
214 sudo apt-get install default-jdk
215 sudo apt-get install libmysql-java
216 sudo apt-get install mysql-server
217 sudo apt-get install phpmyadmin
218 exit
219 sudo apt-get install mysql-server
220 sudo apt-get install phpmyadmin
221 exit
222 sudo apt-get install nmap
223 nmap --ttl 1 -sP 192.168.0/24
224 nmap --ttl 1 -sP 192.168.0/24
225 nmap --ttl 1 -sP 192.168.0.1
226 nmap --ttl 1 -sP 192.168.0.2
227 sudo service ssh status
228 dpkg -l | grep ssh
229 sudo apt-get install ssh
230 dpkg -l | grep ssh
231 nmap --ttl 1 -sP 192.168.0/24
232 exit
233 sudo apt-get install mysql-server
234 sudo apt-get install phpmyadmin
235 exit
236 dpkg -l | grep phpmyadmin
237 exit
238 sudo nano /etc/apache2/apache2.conf
239 exit
240 sudo service apache2 restart
241 exit
242 dpkg -l | grep phpmyadmin
243 dpkg -l | grep mysql-server
244 exit
245 ping -c 5 192.168.1.1
246 ping -c 5 google.com
247 exit
248 ping -c 5 192.168.1.1
249 ping -c 5 google.com
250 exit
251 ip link
252 ip link
253 exit
254 mysql --user=donald --password=craig1don
255 mysql --user=root --password=craig1don
256 mysql --user=root --password=don1craig
257 mysql --user=root --password=donicraig
258 mysql --user=root --password=don1craig
259 exit
260 mysql --user=root --password=don1craig
261 mysql --user=root --password=don1craig
262 exit
263 mysql -h localhost -u root -p
264 exit
265 bin/mysqld_safe --user=mysql &
266 exi
267 exit
268 bin/mysqld_safe --user=mysql &
269 exit
270 ./mysqld --basedir=/usr/local --verbose --help
271 sudo apt-get update
272 sudo apt-get install tasksel
273 sudo tasksel
274 exit
275 sudo apt-get update
276 sudo apt-get install tasksel
277 sudo tasksel
278 sudo apt-get install phpmyadmin
279 exit
280 sudo tasksel
281 sudo apt-get install phpmyadmin
282 cd /home/don/Downloads/
283 ls
284 ls
285 cd /home/don/Downloads/
286 ls
287 sudo cp wordpress-4.3.1.tar.gz/var/www
288 sudo cp /wordpress-4.3.1.tar.gz/var/www
289 sudo cp/wordpress-4.3.1.tar.gz/var/www
290 sudo cp wordpress-4.3.1.tar.gz /var/www
291 cd /var/www
292 ls
293 exit
294 cd /var/www/
295 ls
296 sudo tar -xvf wordpress-4.3.1.tar.gz
297 cd
298 cd /home
299 ls
300 sudo rm /var/www/index.html
301 cd /var/www/
302 sudo rm /var/www/index.html
303 cd
304 cd/
305 cd /
306 cd
307 ls
308 cd /var/www/
309 ls
310 exit
311 sudo apt-get update
312 sudo apt-get install tasksel
313 sudo tasksel
314 $>sudo apt-get install phpmyadmin
315 sudo apt-get install phpmyadmin
316 cd /var/www/wordpress/
317 sudo cp -r * /var/www
318 sudo /etc/init.d/apache2 restart
319 exit
320 sudo nano /etc/apache2/apache2.conf
321 Include /etc/phpmyadmin/apache.conf
322 sudo service apache2 restart
323 exit
324 ifconfig eth0 | grep inet | awk ‘{ print $2 }’
325 ifconfig eth0 | grep inet | awk ‘{ print $2 }’
326 apt-cache search php5-
327 sudo apt-get install php5-cgi php5-cli php5-common php5-curl php5-mysql php5-mysqlnd php5-mysqlnd-ms
328 exit
329 sudo nano /var/www/info.php
330 sudo nano /var/www/info.php
331 sudo service apache2 restart
332 exit
333 sudo mysql_install_db
334 sudo /usr/bin/mysql_secure_installation
335 sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
336 sudo nano /etc/apache2/mods-enabled/dir.conf
337 apt-cache search php5-
338 sudo nano /var/www/info.php
339 sudo service apache2 restart
340 exit
341 mysqladmin -u root -p status
342 exit
343 ls /var/www
344 /usr/sbin/apache2 -V
345 php -v
346 mysql -u root -p
347 ls /var/www/wordpress
348 exit
349 sudo mv -v /var/www/wordpress /var/www/html/wordpress
350 gksudo nemo /var/www
351 exit
352 gksudo nemo /var/www
353 exit
354 <?php echo(exec("whoami")); ?>
355 phpinfo();
356 exit
357 id -u root
358 exit
359 ps axl |grep ftp
360 pgrep ftp
361 exit
362 sudo apt-get install vsftpd
363 sudo gedit /etc/vsftpd.conf
364 sudo gedit /etc/vsftpd.conf
365 sudo /etc/init.d/vsftpd start
366 sudo /etc/init.d/vsftpd start
367 chown -R www-data:www-data /var/www/wordpress/wp-content
368 service apache2 restart
369 sudo chown -R www-data:www-data
370 sudo chown -R www-data:www-data *
371 exit
372 apt autoremove
373 exit
374 sudo -i
375 sudo su
376 exit
377 sudo s
378 sudo -s
379 ls -l ~/
380 exit
381 exit
382 cd
383 exit
384 history
don@ldwatson ~ $

I think my problem may have started in the 360’s ?

370 sudo chown -R www-data:www-data *

That’s the one that did it … you recursively changed owner:group of everything in your home folder to www-data:www-data

Open a terminal and run:

cd /home/don

then

sudo chown -R don:don *

Thanks Mark,
It is all back to normal now. ;D (at least until the next time)

take care
Don W

Terrific news Don :slight_smile: