LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-17-2003, 02:24 PM   #1
notslim
Member
 
Registered: Aug 2003
Distribution: RH9
Posts: 63

Rep: Reputation: 15
transferring settings to another user acct


hey:

i set up this wicked sound set and theme and colours and etc...
as root.

oops.


i dont want to run as root, so is there a way to transfer my settings to my other user?

--dave
 
Old 08-17-2003, 02:34 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Sure, just copy over the . directory containing the files, own them to the new user and smile

The . directory will correspond to the desktop environment likely, and possibly a few applications, but if it's something like KDE, then just .kde should be sufficient.

Cool
 
Old 08-17-2003, 05:17 PM   #3
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
To transfer to another user you will have to be root to do it.

just cp or if it is a directory cp -R

then

chown (add -R if it was a directory) their_username.their_username (don't forget the dot) to what you transferred to their home directory.
 
Old 08-17-2003, 05:21 PM   #4
notslim
Member
 
Registered: Aug 2003
Distribution: RH9
Posts: 63

Original Poster
Rep: Reputation: 15
I don't understand.. .. can you explain slower? How do I cp w/o a dest? and if there is a dest, what is it?
 
Old 08-17-2003, 05:25 PM   #5
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
Sorry,

cp file_to_move destination_directory
just use the -R option after cp if you're copying a directory

Did this help?
 
Old 08-17-2003, 05:47 PM   #6
notslim
Member
 
Registered: Aug 2003
Distribution: RH9
Posts: 63

Original Poster
Rep: Reputation: 15
oooh.. no i understand that.. but what i want to do is transfer ALL my SETTINGS from root user to my other user (Dave).

is THAT possible?

--Dave
 
Old 08-17-2003, 05:50 PM   #7
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
in your root's home directory

cp -R .* users_directory
 
Old 08-17-2003, 05:53 PM   #8
notslim
Member
 
Registered: Aug 2003
Distribution: RH9
Posts: 63

Original Poster
Rep: Reputation: 15
[root@localhost root]# cp -R .* /Dave
cp: copying multiple files, but last argument `Dave' is not a directory

how to remedy this?
 
Old 08-17-2003, 05:56 PM   #9
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
1. Are you in the root accounts home directory which is usally /root?

2. is /Dave the path to Dave's home directory? Or is it /home/Dave

3. Case does matter. Dave is not the same as dave
 
Old 08-17-2003, 05:57 PM   #10
notslim
Member
 
Registered: Aug 2003
Distribution: RH9
Posts: 63

Original Poster
Rep: Reputation: 15
/home/Dave. thanks.
 
Old 08-17-2003, 05:59 PM   #11
notslim
Member
 
Registered: Aug 2003
Distribution: RH9
Posts: 63

Original Poster
Rep: Reputation: 15
erm.. do i have to say "y" to all of them, or is <enter> ok?
 
Old 08-17-2003, 06:01 PM   #12
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
you'll have to say "y" to all of them for them to transfer.

In the /root directory you can
vim .bashrc
if there is a line
alias cp = cp -i
you can comment it out by putting a # in front of that line

After your done I would take the # out. It's safer that way.
 
Old 08-17-2003, 06:08 PM   #13
notslim
Member
 
Registered: Aug 2003
Distribution: RH9
Posts: 63

Original Poster
Rep: Reputation: 15
is there a param for cp that will override the prompts?
 
Old 08-17-2003, 06:13 PM   #14
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
Try the -f option
 
Old 08-17-2003, 06:29 PM   #15
notslim
Member
 
Registered: Aug 2003
Distribution: RH9
Posts: 63

Original Poster
Rep: Reputation: 15
so
Code:
[root@localhost root]# cp -Rf .* /home/Dave
?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Transferring settings from one box to another mpyusko Red Hat 2 08-31-2004 04:39 PM
Reinstalled OS--Can't get to user acct. mooreted Linux - Software 2 01-30-2004 09:55 AM
RH 8 User Acct Question Transition Red Hat 2 09-01-2003 11:39 PM
how to setup samba user acct. dkc_ace Linux - Software 0 01-07-2003 06:17 PM
After Software Installed.... How do the user acct get cipher_code Linux - General 1 12-26-2001 06:55 PM


All times are GMT -5. The time now is 06:46 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration