LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Copy the configuration from one user to another one (https://www.linuxquestions.org/questions/slackware-14/copy-the-configuration-from-one-user-to-another-one-375258/)

Infernox 10-20-2005 08:30 PM

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

freakyg 10-20-2005 09:35 PM

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.........

raska 10-20-2005 09:40 PM

I do agree. Unix-like security is tough as hell :D

you can't blame the system for being secure, can you?

egag 10-20-2005 09:45 PM

just copy them over ( as root ) to /home/inferno and run:

Code:

chown -R inferno:users /home/inferno
that will do.

egag

Infernox 10-20-2005 10:18 PM

Quote:

Originally posted by egag
just copy them over ( as root ) to /home/inferno and run:

Code:

chown -R inferno:users /home/inferno
that will do.

egag

I love you :D

Infernox 10-21-2005 06:52 AM

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.

egag 10-21-2005 07:48 AM

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

Infernox 10-21-2005 08:06 AM

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 :(

egag 10-21-2005 10:35 AM

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

Infernox 10-21-2005 11:09 AM

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

Infernox 10-21-2005 11:19 AM

I changed the permissions to 644, and now nothing happen :s

inferno@localhost:~$ firefox
inferno@localhost:~$

egag 10-21-2005 11:21 AM

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

egag 10-21-2005 11:26 AM

Quote:

Originally posted by Infernox
I changed the permissions to 644, and now nothing happen :s

inferno@localhost:~$ firefox
inferno@localhost:~$

i missed that post.
the permissions were ok.

what does the listing look like now ?

egag

Infernox 10-21-2005 11:59 AM

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
inferno@localhost:~$ ls -l /usr/lib/firefox-1.0.7/
total 12452
-rwxrwxrwx  1 root root  30869 1999-10-05 23:14 LICENSE*
-rwxrwxrwx  1 root root    177 2004-10-18 20:42 README.txt*
-rwxrwxrwx  1 root root    219 2005-09-20 20:31 browserconfig.properties*
drwxrwxrwx  15 root root    4096 2005-10-21 00:20 chrome/
drwxrwxrwx  3 root root    4096 2005-09-20 20:46 components/
-rwxrwxrwx  1 root root      24 2005-10-21 00:20 components.ini*
drwxrwxrwx  5 root root    4096 2005-09-20 20:29 defaults/
-rwxrwxrwx  1 root root      24 2005-10-21 00:20 defaults.ini*
drwxrwxrwx  3 root root    4096 2005-09-20 20:45 extensions/
-rwxrwxrwx  1 root root    6703 2005-09-23 16:45 firefox*
-rwxrwxrwx  1 root root 9787312 2005-09-20 20:46 firefox-bin*
-rwxrwxrwx  1 root root    6436 2005-09-23 16:45 firefox.orig*
drwxrwxrwx  2 root root    4096 2005-09-20 20:20 greprefs/
drwxrwxrwx  2 root root    4096 2005-09-20 20:31 icons/
drwxrwxrwx  2 root root    4096 2005-09-20 20:31 init.d/
-rwxrwxrwx  1 root root  449428 2005-09-20 20:46 libmozjs.so*
-rwxrwxrwx  1 root root  177164 2005-09-20 20:46 libnspr4.so*
-rwxrwxrwx  1 root root  409468 2005-09-20 20:46 libnss3.so*
-rwxrwxrwx  1 root root  219592 2005-09-20 20:46 libnssckbi.so*
-rwxrwxrwx  1 root root  15272 2005-09-20 20:46 libplc4.so*
-rwxrwxrwx  1 root root    8240 2005-09-20 20:46 libplds4.so*
-rwxrwxrwx  1 root root  134188 2005-09-20 20:46 libsmime3.so*
-rwxrwxrwx  1 root root    476 2005-09-20 20:47 libsoftokn3.chk*
-rwxrwxrwx  1 root root  419824 2005-09-20 20:46 libsoftokn3.so*
-rwxrwxrwx  1 root root  125824 2005-09-20 20:46 libssl3.so*
-rwxrwxrwx  1 root root  665424 2005-09-20 20:46 libxpcom.so*
-rwxrwxrwx  1 root root  94888 2005-09-20 20:46 libxpcom_compat.so*
-rwxrwxrwx  1 root root    7736 2005-09-20 20:46 libxpistub.so*
-rwxrwxrwx  1 root root    9184 2005-09-20 20:46 mozilla-xremote-client*
drwxrwxrwx  2 root root    4096 2005-09-20 20:46 plugins/
drwxrwxrwx  8 root root    4096 2005-09-20 20:47 res/
-rwxrwxrwx  1 root root  10897 2003-12-15 14:27 run-mozilla.sh*
drwxrwxrwx  2 root root    4096 2005-09-20 20:29 searchplugins/
-rwxrwxrwx  1 root root  21240 2005-09-20 20:46 xpicleanup*

I hate FF :(

egag 10-21-2005 12:11 PM

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.