LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Permission problem with importing evolution mail from the old .evolution folder (https://www.linuxquestions.org/questions/linux-software-2/permission-problem-with-importing-evolution-mail-from-the-old-evolution-folder-644092/)

oskar 05-22-2008 02:21 PM

Permission problem with importing evolution mail from the old .evolution folder
 
I always forget to use the backup function that evolution provides, but usually I'm fine with just copying the .evolution folder over.

I have a backup from ubuntu 8.04, and I'm now on PCLinuxOS. Both theoretically have the same version of evolution, just slightly modified by the packager.

Since on Ubuntu the user has UID/PID: 1000/1000, and something else for PCLOS - I just did a 'chown -R myname:mygroup .evolution'. I hope that's fine. Doesn't look like any of the files are supposed to belong anyone else but me.
but when evolution starts it puts out various messages that it cannot access the folders.
And rightly so - I can't even cd into the directories


Code:

$ ls -l
total 132
drw-rw-rw- 4 roman roman  4096 Apr  6 22:48 addressbook/
drw-rw-rw- 3 roman roman  4096 Apr  6 22:48 cache/
drw-rw-rw- 5 roman roman  4096 May 13 00:03 calendar/
-rw------- 1 roman roman    2 May 22 21:02 camel-cert.db
-rw-rw-rw- 1 roman roman  3152 Apr  6 22:48 categories.xml
-rw-rw-rw- 1 roman roman 65536 May 22 21:02 cert8.db
-rw-rw-rw- 1 roman roman 16384 May 22 21:02 key3.db
drw-rw-rw- 6 roman roman  4096 May 20 15:53 mail/
drw-rw-rw- 5 roman roman  4096 Apr  6 22:48 memos/
-rw-rw-rw- 1 roman roman 16384 May 22 21:02 secmod.db
drw-rw-rw- 5 roman roman  4096 Apr  6 22:48 tasks/

Code:

$ cd calendar/
bash: cd: calendar/: Permission denied

Code:

su -c 'ls -l calendar'
Password:
total 16
drw-rw-rw- 2 roman roman 4096 May 13 00:03 config
drw-rw-rw- 3 roman roman 4096 Apr  6 22:48 local
-rw-rw-rw- 1 roman roman  68 May 13 00:03 searches.xml
drw-rw-rw- 2 roman roman 4096 Apr  6 22:48 views


So....
What gives?

General Failure 05-23-2008 07:08 AM

Diretories need to be executable. chmod them 755 and they're going to work again.

oskar 05-23-2008 12:41 PM

embarassing.
I can't imagine how that happened though.

Since I don't know how to change the permission just for the directories and subdirectories, I just made everything in that folder executable - shouldn't be that much of a problem, right?

That would have been some find -exec job, right?

Nevermind. Evolution seems to work fine now.
Thanks!

General Failure 05-23-2008 03:19 PM

Quote:

Originally Posted by oskar (Post 3162647)
That would have been some find -exec job, right?

:D Yeah, or xargs instead of exec:
find . -type d -print0 | xargs -0 chmod 755

oskar 05-23-2008 08:28 PM

xargs... that looks useful. I'll try to remember that one.


All times are GMT -5. The time now is 08:22 AM.