I have a problem with booting the Dropbox because i cant modify a file. There is a file in /.config/autostart/dropbox.desktop that I can not delete or modify (icon appears with a padlock). I figure as the owner user, with rights W and R, but for any attempt to delete or modify the CLI tell me "Operation not allowed". The strange thing is that in a listing ls -l the file appears the same as the the rest of the directory files.
diego@diego-Aspire-5745 ~/.config/autostart $ ls -l
total 44
-rw-r--r-- 1 diego diego 2480 ago 30 2016 diodon.desktop
-rw-r--r-- 1 diego diego 235 mar 17 15:26 dropbox.desktop
-rw-r--r-- 1 diego diego 312 abr 26 15:14 insync.desktop
-rw-r--r-- 1 diego diego 301 abr 26 13:38 megasync.desktop
-rw-r--r-- 1 diego diego 258 ago 30 2016 mint-ctrl-alt-backspace.desktop
-rw-r--r-- 1 diego diego 250 abr 26 15:21 mintupdate.desktop
-rw-r--r-- 1 diego diego 272 may 11 2016 mintupload.desktop
-rw-r--r-- 1 diego diego 200 jul 6 2016 mintwelcome.desktop
-rw-r--r-- 1 diego diego 328 jul 6 2016 nvidia-prime.desktop
-rw-r--r-- 1 diego diego 1098 ago 30 2016 parcellite-startup.desktop
-rw-r--r-- 1 diego diego 265 dic 21 11:27 start-conky.desktop
diego@diego-Aspire-5745 ~/.config/autostart $
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason:Topic automatically closed 6 months after creation. New replies are no longer allowed.
Prudon wrote:I have a problem with booting the Dropbox because i cant modify a file. There is a file in /.config/autostart/dropbox.desktop that I can not delete or modify (icon appears with a padlock). I figure as the owner user, with rights W and R, but for any attempt to delete or modify the CLI tell me "Operation not allowed". The strange thing is that in a listing ls -l the file appears the same as the the rest of the directory files.
This is strange. Try this: go to Startup Applications, remove the Dropbox entry, then add it back. See if the dropbox.desktop in autostart still has the padlock.
With write permission for a file you can alter the file, but you cannot delete it, if you do not have write permissions for the containing folder. The output in the starting post does not show the entries for the folder. Use instead the command ls -la, this will show us the needed information.
Prudon wrote:I have a problem with booting the Dropbox because i cant modify a file. There is a file in /.config/autostart/dropbox.desktop that I can not delete or modify (icon appears with a padlock). I figure as the owner user, with rights W and R, but for any attempt to delete or modify the CLI tell me "Operation not allowed". The strange thing is that in a listing ls -l the file appears the same as the the rest of the directory files.
This is strange. Try this: go to Startup Applications, remove the Dropbox entry, then add it back. See if the dropbox.desktop in autostart still has the padlock.
I can't remove the Dropbox entry. That's the origin of the problem...
diego@diego-Aspire-5745 ~/.config/autostart $ rm -f dropbox.desktop
rm: no se puede borrar 'dropbox.desktop': Operación no permitida
diego@diego-Aspire-5745 ~/.config/autostart $ chmod +w dropbox.desktop
chmod: cambiando los permisos de 'dropbox.desktop': Operación no permitida
diego@diego-Aspire-5745 ~/.config/autostart $
diego@diego-Aspire-5745 ~/.config/autostart $ ls -la
total 52
drwxr-xr-x 2 diego diego 4096 abr 29 19:29 .
drwxr-xr-x 79 diego diego 4096 abr 27 23:12 ..
-rw-r--r-- 1 diego diego 235 mar 17 15:26 dropbox.desktop
-rw-r--r-- 1 diego diego 312 abr 26 15:14 insync.desktop
-rw-r--r-- 1 diego diego 301 abr 26 13:38 megasync.desktop
-rw-r--r-- 1 diego diego 258 ago 30 2016 mint-ctrl-alt-backspace.desktop
-rw-r--r-- 1 diego diego 250 abr 26 15:21 mintupdate.desktop
-rw-r--r-- 1 diego diego 272 may 11 2016 mintupload.desktop
-rw-r--r-- 1 diego diego 200 jul 6 2016 mintwelcome.desktop
-rw-r--r-- 1 diego diego 328 jul 6 2016 nvidia-prime.desktop
-rw-r--r-- 1 diego diego 1098 ago 30 2016 parcellite-startup.desktop
-rw-r--r-- 1 diego diego 408 abr 29 19:29 print-applet.desktop
-rw-r--r-- 1 diego diego 265 dic 21 11:27 start-conky.desktop
diego@diego-Aspire-5745 ~/.config/autostart $
Cosmo. wrote:With write permission for a file you can alter the file, but you cannot delete it, if you do not have write permissions for the containing folder. The output in the starting post does not show the entries for the folder. Use instead the command ls -la, this will show us the needed information.
You're right. After hours I've got it, and I've learned it too. I did not know in chattr command, and I thought permissions were everything.
Thanks to you, and for JerryF, Flemur and Cosmo too.
Prudon wrote:You're right. After hours I've got it, and I've learned it too. I did not know in chattr command, and I thought permissions were everything.
Thanks to you, and for JerryF, Flemur and Cosmo too.
Prudon wrote:You're right. After hours I've got it, and I've learned it too. I did not know in chattr command, and I thought permissions were everything.
Me too! I wonder why that(those) file(s) got into that state? I've never had that happen...
Please edit your original post title to include [SOLVED] if/when it is solved! Your data and OS are backed up....right?