SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-03-31 21:29:53

Ozitraveller
#! CrunchBanger
From: Far from the madding crowd!
Registered: 2011-04-26
Posts: 168

Permission to copy into /root/ directory??

Hi

I have sid + openbox and want to copy .gtkrc-2.0 file into /root/ directory

I have tried this but nothing copied

sudo \cp -rf ~/.gtkrc-2.0 /root/

From thunar if I try to open /root/  as root is get the following message;
"Failed to change to directory '/root' (Permission denied)."

I know this can be done on debian stable.

1. How can put this file in /root/? so the gtk theming works?
2. Why can't I open a terminal as root for /root/ directory?

Thanks

Offline

Be excellent to each other!

#2 2012-03-31 22:45:32

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: Permission to copy into /root/ directory??

did you really do

\cp

or was that a typo?
should be just 'cp', no slash.

sudo cp -rf ~/.gtkrc-2.0 /root/

to get a root terminal, just have your regular terminal and type 'su' to switch to the root-user. but generally it is advised to just use 'sudo' as it will only be temporary root.

Offline

#3 2012-03-31 22:56:59

Ozitraveller
#! CrunchBanger
From: Far from the madding crowd!
Registered: 2011-04-26
Posts: 168

Re: Permission to copy into /root/ directory??

rhowaldt wrote:

did you really do

\cp

or was that a typo?
should be just 'cp', no slash.

sudo cp -rf ~/.gtkrc-2.0 /root/

to get a root terminal, just have your regular terminal and type 'su' to switch to the root-user. but generally it is advised to just use 'sudo' as it will only be temporary root.

"\cp ..." will over-ride any alias if present.

tried, both of these, and neither worked.

sudo cp -rf ~/.gtkrc-2.0 /root/
sudo cp ~/.gtkrc-2.0 /root/

Offline

#4 2012-03-31 22:58:20

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: Permission to copy into /root/ directory??

hmmm strange... it should. let's hope someone else comes along with some more ideas.

Offline

#5 2012-03-31 23:02:48

Ozitraveller
#! CrunchBanger
From: Far from the madding crowd!
Registered: 2011-04-26
Posts: 168

Re: Permission to copy into /root/ directory??

Thanks rhowaldt:) curious indeed.

I get authentication fails when I enter su on cmdline. I have no root login.

Offline

#6 2012-03-31 23:24:53

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: Permission to copy into /root/ directory??

^ hmmm, could that be the issue here? at least worth a try:

sudo passwd root

then type the root-password you want.

then you can at least get into a root-terminal, and maybe (dunno!) the sudo cp will work too..

Offline

#7 2012-03-31 23:42:49

Ozitraveller
#! CrunchBanger
From: Far from the madding crowd!
Registered: 2011-04-26
Posts: 168

Re: Permission to copy into /root/ directory??

rhowaldt wrote:

^ hmmm, could that be the issue here? at least worth a try:

sudo passwd root

then type the root-password you want.

then you can at least get into a root-terminal, and maybe (dunno!) the sudo cp will work too..

Created a root passwd, still won't copy even from root terminal.

EDIT:
I need to check this again, but looks like it worked. I did a reboot. Except the dialog from Create Archive ...
How can I do this in a bash script?

Last edited by Ozitraveller (2012-04-01 00:00:39)

Offline

#8 2012-04-01 09:14:53

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: Permission to copy into /root/ directory??

^ i'm sorry, not 100% sure what you're asking here. the dialog from Create Archive? what's up with it? what do you want to do in a bash script exactly?

Offline

#9 2012-04-01 15:41:35

Stanie
#! CrunchBanger
Registered: 2011-12-20
Posts: 225

Re: Permission to copy into /root/ directory??

Ozitraveller wrote:

Hi

I have sid + openbox and want to copy .gtkrc-2.0 file into /root/ directory

I have tried this but nothing copied

sudo \cp -rf ~/.gtkrc-2.0 /root/

From thunar if I try to open /root/  as root is get the following message;
"Failed to change to directory '/root' (Permission denied)."

I know this can be done on debian stable.

1. How can put this file in /root/? so the gtk theming works?
2. Why can't I open a terminal as root for /root/ directory?

Thanks

Just out of curiosity why would you copy .gtkrc-2.0 to your /root/ manually?
See the first 2 lines:

# DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.

Unless you don't use lxappearance for theme changing...
On the other hand if you want to change the appearance of your gtk3 apps for root you will have to create a folder gtk-3.0 in your /root/.config/ directory. In there put a file called setup.ini with something like this:

[Settings]
gtk-theme-name = greybird
gtk-application-prefer-dark-theme = false
gtk-font-name = Sans 10
gtk-icon-theme-name = elementary
gtk-cursor-theme-name = oxy-black
gtk-button-images = 0
gtk-menu-images = 0
gtk-auto-mnemonics = 0

And the same folder (with not necessarily the same setup.ini) should be also in your ~/.config directory as well...


A secure alternative to Dropbox with complete privacy = SpiderOak. Join it using my referral and get a total of 3 GB to start with.

Offline

#10 2012-04-01 22:27:58

Ozitraveller
#! CrunchBanger
From: Far from the madding crowd!
Registered: 2011-04-26
Posts: 168

Re: Permission to copy into /root/ directory??

Stanie wrote:
Ozitraveller wrote:

Hi

I have sid + openbox and want to copy .gtkrc-2.0 file into /root/ directory

I have tried this but nothing copied

sudo \cp -rf ~/.gtkrc-2.0 /root/

From thunar if I try to open /root/  as root is get the following message;
"Failed to change to directory '/root' (Permission denied)."

I know this can be done on debian stable.

1. How can put this file in /root/? so the gtk theming works?
2. Why can't I open a terminal as root for /root/ directory?

Thanks

Just out of curiosity why would you copy .gtkrc-2.0 to your /root/ manually?
See the first 2 lines:

# DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.

Unless you don't use lxappearance for theme changing...
On the other hand if you want to change the appearance of your gtk3 apps for root you will have to create a folder gtk-3.0 in your /root/.config/ directory. In there put a file called setup.ini with something like this:

[Settings]
gtk-theme-name = greybird
gtk-application-prefer-dark-theme = false
gtk-font-name = Sans 10
gtk-icon-theme-name = elementary
gtk-cursor-theme-name = oxy-black
gtk-button-images = 0
gtk-menu-images = 0
gtk-auto-mnemonics = 0

And the same folder (with not necessarily the same setup.ini) should be also in your ~/.config directory as well...


Just out of curiosity why would you copy .gtkrc-2.0 to your /root/ manually?
I did this on my stable box and it resolved the problem.

# Any customization should be done in ~/.gtkrc-2.0.mine instead.
I read this and it did fix some of the issues, it didn't fix them all.

Ok so now it's has to be a gtk3 issue.

Thanks Stanie for the insight smile

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo