LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 01: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, 01:34 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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, 04: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: 47
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, 04: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, 04: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: 47
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, 04: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, 04: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: 47
in your root's home directory

cp -R .* users_directory
 
Old 08-17-2003, 04: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, 04: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: 47
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, 04:57 PM   #10
notslim
Member
 
Registered: Aug 2003
Distribution: RH9
Posts: 63

Original Poster
Rep: Reputation: 15
/home/Dave. thanks.
 
Old 08-17-2003, 04: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, 05: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: 47
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, 05: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, 05: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: 47
Try the -f option
 
Old 08-17-2003, 05: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



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 03:39 PM
Reinstalled OS--Can't get to user acct. mooreted Linux - Software 2 01-30-2004 08:55 AM
RH 8 User Acct Question Transition Red Hat 2 09-01-2003 10:39 PM
how to setup samba user acct. dkc_ace Linux - Software 0 01-07-2003 05:17 PM
After Software Installed.... How do the user acct get cipher_code Linux - General 1 12-26-2001 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:36 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
Open Source Consulting | Domain Registration