Copy the configuration from one user to another one
Hello, i need to copy the configuration from one user (root) to another one (inferno). How can i do that?
Thanks |
it's kinda hard since "inferno" will end up with files that are owned by "root".........you'll have to change all of them so inferno can access/use them.........
|
I do agree. Unix-like security is tough as hell :D
you can't blame the system for being secure, can you? |
just copy them over ( as root ) to /home/inferno and run:
Code:
chown -R inferno:users /home/inferno egag |
Quote:
|
Mmmm, i have another problem, i can't run firefox, but if i'm logged as root in the console (With su), everything works fine.
|
did you copy the files from root to user while firefox was running ?
in that case there is a file called " lock " in the dir. " ~/.firefox/dafault/<???>/ " ( not sure which dir exactly, take a look ) you should delete that file. ( it's 0 bytes ) otherwise, open a console ( as user ) and start firefox. what errors do you get ? egag |
inferno@localhost:~$ firefox
(firefox-bin:22156): Gdk-WARNING **: gdk_property_get(): length value has wrapped in calculation (did you pass G_MAXLONG?) *** Failed to load overlay chrome://adblock/content/adblock.xul *** Failed to load overlay chrome://linkification/content/linkificationOverlay.xul *** Failed to load overlay chrome://flashgot/content/localeCheckOverlay.xul *** Failed to load overlay chrome://flashgot/content/flashgotOverlay.xul *** Failed to load overlay chrome://flashgot/content/flashgotOverlayFF.xul *** Failed to load overlay chrome://imagezoom/content/imageZoomOverlay.xul I didn't find that file/folder :( |
the first warning is not important ( should be ok )
for the " failed to load " warnings... can you check the permissions of the .jar files in /usr/lib/firefox-1.0.6/crome/ dir. ? perms should be 644 ( rw-r--r-- ) egag |
inferno@localhost:~$ ls -l /usr/lib/firefox-1.0.6/chrome/
total 20 -rw-r--r-- 1 root root 16719 2005-10-05 14:03 chrome.rdf and inferno@localhost:~$ ls -l /usr/lib/firefox-1.0.7/chrome/ total 4592 drwxr-xr-x 3 root root 4096 2005-09-20 20:28 browser/ -rw-r--r-- 1 root root 1002601 2005-09-20 20:31 browser.jar -rw-r--r-- 1 root root 16719 2005-10-21 00:20 chrome.rdf -rw-r--r-- 1 root root 100623 2005-09-20 20:31 chromelist.txt drwxr-xr-x 3 root root 4096 2005-09-20 20:29 classic/ -rw-r--r-- 1 root root 512911 2005-09-20 20:31 classic.jar drwxr-xr-x 3 root root 4096 2005-09-20 19:43 comm/ -rw-r--r-- 1 root root 95376 2005-09-20 20:29 comm.jar drwxr-xr-x 5 root root 4096 2005-09-20 20:10 embed-sample/ -rw-r--r-- 1 root root 23308 2005-09-20 20:10 embed-sample.jar drwxr-xr-x 3 root root 4096 2005-09-20 20:21 en-US/ -rw-r--r-- 1 root root 316748 2005-09-20 20:29 en-US.jar drwxr-xr-x 5 root root 4096 2005-09-20 20:22 help/ -rw-r--r-- 1 root root 314226 2005-09-20 20:29 help.jar drwxr-xr-x 3 root root 4096 2005-09-20 19:50 icons/ drwxr-xr-x 5 root root 4096 2005-09-20 20:28 inspector/ -rw-r--r-- 1 root root 546798 2005-09-20 20:29 inspector.jar -rw-r--r-- 1 root root 2904 2005-09-20 20:29 installed-chrome.txt drwxr-xr-x 3 root root 4096 2005-09-20 20:24 modern/ -rw-r--r-- 1 root root 2925 2005-09-20 20:24 modern.jar drwxr-xr-x 7 root root 4096 2005-09-20 20:45 overlayinfo/ drwxr-xr-x 3 root root 4096 2005-09-20 20:19 pipnss/ -rw-r--r-- 1 root root 753 2005-09-20 20:19 pipnss.jar drwxr-xr-x 3 root root 4096 2005-09-20 20:20 pippki/ -rw-r--r-- 1 root root 281230 2005-09-20 20:20 pippki.jar drwxr-xr-x 3 root root 4096 2005-09-20 19:57 toolkit/ -rw-r--r-- 1 root root 1367648 2005-09-20 20:29 toolkit.jar |
I changed the permissions to 644, and now nothing happen :s
inferno@localhost:~$ firefox inferno@localhost:~$ |
looks ok.
firefox has a dir in your home dir ( ~/.firefox or ~/.mozilla/firefox ( one of those )) you could try to rename the ~/.firefox or ~/.mozilla/firefox to say ~/firefoxdata for backup and see if it works then. it looks like some permission error somewhere and trying the above will give a clue... egag |
Quote:
the permissions were ok. what does the listing look like now ? egag |
Well, i changed again to 644 (logged as root) and now display this:
root@localhost:/home/inferno# firefox bash: /usr/bin/firefox: Permission denied. Then i changed to 777 and i'm here... if i try to run firefox with "inferno" nothing happen. :( Code:
This is the actual permissions |
well....i'd say it's time to reinstall firefox.
something has gone wrong with changing permissions. ( 777 is always a bad idea... ) just do a " removepkg mozilla-firefox-1....etc " and reinstall the package from cd. ( slackware/xap dir. on cd1 ) FF should just work ok.( though i use mozilla but may people use FF ) after the reinstall, move the FF dir. in your home page to a backup dir. and try again. egag |
All times are GMT -5. The time now is 10:27 AM. |