LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-23-2005, 12:04 PM   #1
littleg
LQ Newbie
 
Registered: Dec 2004
Posts: 10

Rep: Reputation: Disabled
Copy root profile setting


I have made all the desktop settings that I prefer under the root profile. On advice I don't want to use root all the time, but I don't want to redo all the setting especially since I can't remember some things. (I have tried!)

It there an easy way to copile files from on directory to another to accomplish this.

Any help is appreciated!
 
Old 02-23-2005, 12:18 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Re: Copy root profile setting

Quote:
Originally posted by littleg
I have made all the desktop settings that I prefer under the root profile. On advice I don't want to use root all the time, but I don't want to redo all the setting especially since I can't remember some things. (I have tried!)

It there an easy way to copile files from on directory to another to accomplish this.

Any help is appreciated!
May not be the wisest thing to do, but if you've got anything under /home/user
cp -a /home/user /home/user.bak
cp -a /root /home/user
chown -R user.users /home/user
Look over everything and make sure it's suitable - paths and whatnot - Joe User doesn't usually have /sbin on the path and so on. Maybe other issues. Once you're satisfied, you can 'rm -rf /home/user.bak'. Not sure how well it would work or (as I said) how wise it would be, but it *is* wise not run as root and it would save some effort.

If you want to be more selective, just copy specific files with globs and then recursively chown those all at once.
 
Old 02-23-2005, 12:44 PM   #3
littleg
LQ Newbie
 
Registered: Dec 2004
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thanks.

It'll be a few hours before I get a chance to try it.
 
Old 10-15-2006, 06:48 PM   #4
mwildam
Member
 
Registered: Sep 2006
Location: Vienna, Austria
Distribution: Fedora 13, Ubuntu 10.04
Posts: 52

Rep: Reputation: 15
Just to complete this whith what I tried and worked:
Code:
cd /home
cp -a <SourceUser> <NewUser>
chown -hR <NewUser> <NewUser>
chgrp -hR <MyGroup> <NewUser>
Last line (chgrp) not neccessary, but I did to make data exchange easier and used a group that the other users also belong to.

If you want to share data between the users then also consider using umask.
 
Old 10-21-2006, 05:28 AM   #5
mwildam
Member
 
Registered: Sep 2006
Location: Vienna, Austria
Distribution: Fedora 13, Ubuntu 10.04
Posts: 52

Rep: Reputation: 15
If you are using wine and have configured your wine in your profile folder then there are a lot of symlinks to correct in the .wine subfolder of the profile (I did it manually using mc).

And you might need to create some panel links for new if they refer to icons or files in user profile.
 
  


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
Setting the ICC Profile in a tiff file James_dean Programming 0 11-27-2005 03:11 AM
Edit /ect/profile with root? Tony33221 Linux - Security 11 09-04-2005 07:02 PM
/etc/profile doesn't work for setting a global PATH ttilt Mandriva 2 04-15-2004 02:27 PM
Root SSH Bash Profile djhorza Linux - Software 1 12-22-2003 06:28 AM
.bashrc or .profile for root in SuSE jimsee Linux - General 3 11-15-2003 03:36 PM


All times are GMT -5. The time now is 05:12 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