You are not logged in.

#1 2008-11-11 02:39:09

grod
Member
Registered: 2008-11-11
Posts: 12

clone root user?

I have almost everything configured, except as root. How can I clone all my settings to a less priveledged account? Copying the content of /root to /home/grod doesn't quite do the trick.

Thanks!

Offline

#2 2008-11-11 02:49:12

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,222
Website

Re: clone root user?

Did you change to ownership of the file to your username using 'chown'?

What's the exact error you're coming across?

Offline

#3 2008-11-11 03:43:06

grod
Member
Registered: 2008-11-11
Posts: 12

Re: clone root user?

Not an error, but things like XFCE session settings revert to defaults.

Offline

#4 2008-11-11 08:25:35

syntaxerrormmm
Member
From: Italy
Registered: 2008-10-22
Posts: 80
Website

Re: clone root user?

Not a great idea to configure with root's, please forget Windozer, you're running GNU/Linux smile And never, ever ever ever launch X with root.

Apart of philosophy (and security) issues in your management, changing ownership and permissions on the files you've copied should do the trick. Magical words are chmod and chown, please check with the manpages.

Regards,


syntaxerrormmm - Homepage

Offline

#5 2008-11-11 16:08:28

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: clone root user?

as root:

chown -R username:users /home/username

(replace 'username' with your user's name)
But of course,

man chown

Offline

#6 2008-11-11 22:53:57

Brownster
Member
Registered: 2008-11-10
Posts: 2

Re: clone root user?

grod wrote:

Not an error, but things like XFCE session settings revert to defaults.

Hi,
when you copied the files,did you use the -a flag ? sounds like you are missing the hidden files beginning with a .

Cheers,
Wayne.

Offline

#7 2008-11-12 03:23:08

grod
Member
Registered: 2008-11-11
Posts: 12

Re: clone root user?

I wish it were that simple. When I kill X there are a ton of xfce critical warnings on the screen. They all take the same patter:
(xfce4-menu-plugin:4612): libxfce4util-CRITICAL **: Unable to open file /root/.config/xfce/panel/systray-4.rc.4606.tmp for writing: Permission denied

and

(xfce4-panel:4606): libxfce4util-CRITICAL **: Unable to open file /root/.config/xfce4/panel/clock-14.rc.4606.tmp for writing: Permission denied

tons of those.

Clearly, there is a path somewhere that needs to change. I'd like to make every configuration file used by the root account for all applications the default for all less privileged users -- theme, start up apps, bash aliases, everything. But I'd settle for transferring the XFCE settings.

Any ideas?

Offline

#8 2008-11-12 09:07:09

Brownster
Member
Registered: 2008-11-10
Posts: 2

Re: clone root user?

I was going to suggest writing a script to replace the strings within the config files, however, since temporary files are created and used too, that would appear to make it more problematic.
What you are trying to do seems like quite a reasonable idea, perhaps the xfce writers might have  a suggestion?
Sorry I cannot be anymore help.

Cheers,
Wayne.

Offline

#9 2008-11-12 13:11:51

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: clone root user?

Did you copy the the '.' folders and files over?
If so did your chown the files/folders?

for example cp -r /root/.xfce4 /home/user


Website - Blog - arch-home
Arch User since March 2005

Offline

#10 2008-11-12 23:48:57

grod
Member
Registered: 2008-11-11
Posts: 12

Re: clone root user?

yes to both

Offline

#11 2008-11-13 17:55:52

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: clone root user?

Why did you configure everything as root instead of as a regular user in the first place?

It's probably a lot simpler to create a whole new user and start from scratch there. It takes some time, but bumping your head into the wall is the best way to learn wink.

Last edited by B (2008-11-13 18:02:12)


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#12 2008-11-14 03:33:58

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: clone root user?

I wouldn't be surprised if some of your configs are referencing the /root/ path still

I'd just do what B suggested and start from scratch


Website - Blog - arch-home
Arch User since March 2005

Offline

Board footer

Powered by FluxBB