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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
08-17-2003, 01:24 PM
|
#1
|
Member
Registered: Aug 2003
Distribution: RH9
Posts: 63
Rep:
|
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
|
|
|
08-17-2003, 01:34 PM
|
#2
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
08-17-2003, 04:17 PM
|
#3
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
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.
|
|
|
08-17-2003, 04:21 PM
|
#4
|
Member
Registered: Aug 2003
Distribution: RH9
Posts: 63
Original Poster
Rep:
|
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?
|
|
|
08-17-2003, 04:25 PM
|
#5
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
Sorry,
cp file_to_move destination_directory
just use the -R option after cp if you're copying a directory
Did this help?
|
|
|
08-17-2003, 04:47 PM
|
#6
|
Member
Registered: Aug 2003
Distribution: RH9
Posts: 63
Original Poster
Rep:
|
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
|
|
|
08-17-2003, 04:50 PM
|
#7
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
in your root's home directory
cp -R .* users_directory
|
|
|
08-17-2003, 04:53 PM
|
#8
|
Member
Registered: Aug 2003
Distribution: RH9
Posts: 63
Original Poster
Rep:
|
[root@localhost root]# cp -R .* /Dave
cp: copying multiple files, but last argument `Dave' is not a directory
how to remedy this?
|
|
|
08-17-2003, 04:56 PM
|
#9
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
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
|
|
|
08-17-2003, 04:57 PM
|
#10
|
Member
Registered: Aug 2003
Distribution: RH9
Posts: 63
Original Poster
Rep:
|
/home/Dave. thanks.
|
|
|
08-17-2003, 04:59 PM
|
#11
|
Member
Registered: Aug 2003
Distribution: RH9
Posts: 63
Original Poster
Rep:
|
erm.. do i have to say "y" to all of them, or is <enter> ok?
|
|
|
08-17-2003, 05:01 PM
|
#12
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
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.
|
|
|
08-17-2003, 05:08 PM
|
#13
|
Member
Registered: Aug 2003
Distribution: RH9
Posts: 63
Original Poster
Rep:
|
is there a param for cp that will override the prompts?
|
|
|
08-17-2003, 05:13 PM
|
#14
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
Try the -f option
|
|
|
08-17-2003, 05:29 PM
|
#15
|
Member
Registered: Aug 2003
Distribution: RH9
Posts: 63
Original Poster
Rep:
|
so
Code:
[root@localhost root]# cp -Rf .* /home/Dave
?
|
|
|
All times are GMT -5. The time now is 07:10 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|