LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-20-2005, 08:30 PM   #1
Infernox
LQ Newbie
 
Registered: Oct 2005
Posts: 21

Rep: Reputation: 15
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
 
Old 10-20-2005, 09:35 PM   #2
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
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.........
 
Old 10-20-2005, 09:40 PM   #3
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 30
I do agree. Unix-like security is tough as hell

you can't blame the system for being secure, can you?
 
Old 10-20-2005, 09:45 PM   #4
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,718

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

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

egag
 
Old 10-20-2005, 10:18 PM   #5
Infernox
LQ Newbie
 
Registered: Oct 2005
Posts: 21

Original Poster
Rep: Reputation: 15
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
 
Old 10-21-2005, 06:52 AM   #6
Infernox
LQ Newbie
 
Registered: Oct 2005
Posts: 21

Original Poster
Rep: Reputation: 15
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.
 
Old 10-21-2005, 07:48 AM   #7
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,718

Rep: Reputation: 48
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
 
Old 10-21-2005, 08:06 AM   #8
Infernox
LQ Newbie
 
Registered: Oct 2005
Posts: 21

Original Poster
Rep: Reputation: 15
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
 
Old 10-21-2005, 10:35 AM   #9
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,718

Rep: Reputation: 48
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
 
Old 10-21-2005, 11:09 AM   #10
Infernox
LQ Newbie
 
Registered: Oct 2005
Posts: 21

Original Poster
Rep: Reputation: 15
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
 
Old 10-21-2005, 11:19 AM   #11
Infernox
LQ Newbie
 
Registered: Oct 2005
Posts: 21

Original Poster
Rep: Reputation: 15
I changed the permissions to 644, and now nothing happen :s

inferno@localhost:~$ firefox
inferno@localhost:~$
 
Old 10-21-2005, 11:21 AM   #12
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,718

Rep: Reputation: 48
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
 
Old 10-21-2005, 11:26 AM   #13
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,718

Rep: Reputation: 48
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
 
Old 10-21-2005, 11:59 AM   #14
Infernox
LQ Newbie
 
Registered: Oct 2005
Posts: 21

Original Poster
Rep: Reputation: 15
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
 
Old 10-21-2005, 12:11 PM   #15
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,718

Rep: Reputation: 48
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I copy X configuration from one distro to another? glenn69 Linux - Newbie 1 10-24-2004 09:52 PM
copy KDE settings to another user jlinkels Linux - Software 1 09-02-2004 04:21 AM
How to copy a device (CD burner) configuration from another Linux installation? mwettach Linux - Newbie 7 07-31-2004 12:02 PM
Howto copy FC1 configuration to fresh FC2? TomF Fedora 2 06-20-2004 11:55 AM
Copy User Permissions mairul Linux - Newbie 0 02-16-2004 02:09 AM


All times are GMT -5. The time now is 05:55 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration