Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I wanna be good..i promise
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
gsfgf
Veteran
Veteran


Joined: 08 May 2002
Posts: 1266

PostPosted: Fri Nov 15, 2002 3:02 am    Post subject: I wanna be good..i promise Reply with quote

Ive been running as root as long as ive had linux.
People tell me its bad, and i guess i really should use a user account. What's the best way to switch over to a user account and keeping all prefrences, etc.
_________________
Aim:gsfgf0
Back to top
View user's profile Send private message
masseya
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 2602
Location: Raleigh, NC

PostPosted: Fri Nov 15, 2002 3:24 am    Post subject: Reply with quote

I would simply create the account via the useradd command and then move all the 'dotfiles' like .vimrc, .bashrc, etc.. to that user's home directory. Are there any particular settings that you are concerned with?
_________________
if i never try anything, i never learn anything..
if i never take a risk, i stay where i am..
Back to top
View user's profile Send private message
gsfgf
Veteran
Veteran


Joined: 08 May 2002
Posts: 1266

PostPosted: Fri Nov 15, 2002 4:01 am    Post subject: Reply with quote

i get a lot of access denied errors on files copied from /root. gsfgf is in wheel so what premissions do i need?

also is it bad to leave /root symlinked to /home/gsfgf?
_________________
Aim:gsfgf0
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 15989
Location: Colorado

PostPosted: Fri Nov 15, 2002 4:13 am    Post subject: Reply with quote

gsfgf wrote:
i get a lot of access denied errors on files copied from /root. gsfgf is in wheel so what premissions do i need?
What are the owner and group ids for the files? Are they still owned by root?
_________________
Safety is my gaol.
US Constitution | Amendments
Back to top
View user's profile Send private message
hook
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1398
Location: Ljubljana, Slovenia

PostPosted: Fri Nov 15, 2002 10:01 am    Post subject: Reply with quote

copy the files as root and then
Code:
chown <insert_username> *
those files :)

...and to be sure you don't go back to root, use a fingertwisting password for the next couple of weeks ;) ...worked for me :)
_________________
tea+free software+law=hook

(deep inside i'm still a tux's little helper)
Back to top
View user's profile Send private message
gsfgf
Veteran
Veteran


Joined: 08 May 2002
Posts: 1266

PostPosted: Sat Nov 16, 2002 4:00 am    Post subject: Reply with quote

i chowned -R gsfgf ~/* and ~.* and ~/.*/*

when i start x, flux still looks in /root/.fluxbox. how do i fis this and will all apps have this prob.
_________________
Aim:gsfgf0
Back to top
View user's profile Send private message
splooge
l33t
l33t


Joined: 30 Aug 2002
Posts: 636

PostPosted: Sat Nov 16, 2002 4:07 am    Post subject: Reply with quote

Quote:
also is it bad to leave /root symlinked to /home/gsfgf?


Permission-wise, I don't think it's a good idea.

Quote:
when i start x, flux still looks in /root/.fluxbox. how do i fis this and will all apps have this prob.


Start x as the gsfgf user and it should look for your dot files in ~/. Your symlink could be causing problems.
Back to top
View user's profile Send private message
mdpye
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2002
Posts: 102
Location: Nottingham, England

PostPosted: Sat Nov 16, 2002 2:20 pm    Post subject: Reply with quote

gsfgf wrote:
i get a lot of access denied errors on files copied from /root. gsfgf is in wheel so what premissions do i need?

also is it bad to leave /root symlinked to /home/gsfgf?


Yes, pretty bad. The definitive solution should be (as root):
Code:

# cp -R /root/.* /home/gsfgf/
# chown -R gsfgf:users /home/gsfgf/*

_________________
Cheers, MP
Back to top
View user's profile Send private message
really
Guru
Guru


Joined: 27 Aug 2002
Posts: 430
Location: nowhere

PostPosted: Sat Nov 16, 2002 2:35 pm    Post subject: Reply with quote

#chown gsgfs /home/gsgfs/*/* and then even deeper just to make sure all get owned by you :)
_________________
NoManNoProblem

Get lost before you get shot.
Back to top
View user's profile Send private message
elzbal
Guru
Guru


Joined: 31 Aug 2002
Posts: 364
Location: Seattle, WA, USA

PostPosted: Sat Nov 16, 2002 2:59 pm    Post subject: Reply with quote

nano wrote:
#chown gsgfs /home/gsgfs/*/* and then even deeper just to make sure all get owned by you :)


You don't have to do that. That's what the -R does in
mdpye wrote:
Code:
# chown -R gsfgf:users /home/gsfgf/*


As a matter of form, I would just do
Code:
chown -R gsfgf:users /home/gsfgf

or
Code:
chown -R gsfgf:users ~gsfgf


I agree that the flux problem is probably due to a symlink. Look for all symlinks in your home directory by:
Code:
find /home/gsfgf -type l

(I used 'man find' to find that particular usage.)

Cheers!
Back to top
View user's profile Send private message
gsfgf
Veteran
Veteran


Joined: 08 May 2002
Posts: 1266

PostPosted: Sat Nov 16, 2002 5:19 pm    Post subject: Reply with quote

i unsymlinked /root and /home/gsfgf since i had to mess w/ ownership.
i still get the fluxbox error, though.
there are no flux related symlinks in ~/
_________________
Aim:gsfgf0
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 15989
Location: Colorado

PostPosted: Sat Nov 16, 2002 5:35 pm    Post subject: Reply with quote

What happens if you rename .Xauthority to something else? I'm thinking maybe that it was roots file could be causing an issue (just a guess, no idea).
_________________
Safety is my gaol.
US Constitution | Amendments
Back to top
View user's profile Send private message
gsfgf
Veteran
Veteran


Joined: 08 May 2002
Posts: 1266

PostPosted: Sat Nov 16, 2002 6:04 pm    Post subject: Reply with quote

that didn't help
also, nice won't work running as a user. How do i get that workin?
_________________
Aim:gsfgf0
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 15989
Location: Colorado

PostPosted: Sat Nov 16, 2002 6:32 pm    Post subject: Reply with quote

What files are giving you access denied errors?
_________________
Safety is my gaol.
US Constitution | Amendments
Back to top
View user's profile Send private message
gsfgf
Veteran
Veteran


Joined: 08 May 2002
Posts: 1266

PostPosted: Sat Nov 16, 2002 9:43 pm    Post subject: Reply with quote

/root/.fluxbox/menu
_________________
Aim:gsfgf0
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 15989
Location: Colorado

PostPosted: Sat Nov 16, 2002 9:52 pm    Post subject: Reply with quote

Now we're getting somewhere. Why do you have your user trying to access files in root's homedir?
_________________
Safety is my gaol.
US Constitution | Amendments
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Nov 16, 2002 9:54 pm    Post subject: Reply with quote

gsfgf wrote:
nice won't work running as a user. How do i get that workin?

nice works for any user, but only in the polite direction.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
gsfgf
Veteran
Veteran


Joined: 08 May 2002
Posts: 1266

PostPosted: Sat Nov 16, 2002 10:32 pm    Post subject: Reply with quote

kanuslupus wrote:
Now we're getting somewhere. Why do you have your user trying to access files in root's homedir?


I dunno. i want it to look in /home/gsfgf/.fluxbox. I just don't know here to change that.

Edit: .fluxbox/init explicitly defined tle location of the menu by default.
should i file a bug report

and how can i make nice work in the maen dir? should i just use sudo?
_________________
Aim:gsfgf0
Back to top
View user's profile Send private message
gsfgf
Veteran
Veteran


Joined: 08 May 2002
Posts: 1266

PostPosted: Sun Nov 17, 2002 12:33 am    Post subject: Reply with quote

Another problem:

Code:

sh-2.05a$ oowriter ]
I'm confused because I can't find OpenOffice's user files.
Your ~/.sversionrc file tells they should be under ~/.openoffice/1.0.1,
but they are not. Please fix the situation manually.
You may want to edit ~/.sversionrc to indicate where is OO
installed, or remove it if you did remove your installation
directory manually (you bad one).
sh-2.05a$


i edited ~/.sversionrc to make it pint to the right location, but i still get this error.

----

I can't su root,
Code:

sh-2.05a$ su root
Password:
su: Authentication failure
Sorry.
sh-2.05a$

the pass is right. i can login as root, but when i try to mount something i get an error saying only root can do that.

EDIT: fixed it. i'd messed up some ownerships.
_________________
Aim:gsfgf0
Back to top
View user's profile Send private message
SlCKB0Y
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jul 2002
Posts: 105
Location: Sydney, Australia

PostPosted: Sun Nov 17, 2002 2:00 pm    Post subject: Reply with quote

its because some of the fluxbox config files wil link to root stuff.

you will need to edit
~/.fluxbox/init

might be better just to delete the directory and then just reconfigure it if this doesnt work.
Back to top
View user's profile Send private message
really
Guru
Guru


Joined: 27 Aug 2002
Posts: 430
Location: nowhere

PostPosted: Mon Nov 18, 2002 5:55 pm    Post subject: Reply with quote

gsfgf wrote:
Another problem:

Code:

sh-2.05a$ oowriter ]
I'm confused because I can't find OpenOffice's user files.
Your ~/.sversionrc file tells they should be under ~/.openoffice/1.0.1,
but they are not. Please fix the situation manually.
You may want to edit ~/.sversionrc to indicate where is OO
installed, or remove it if you did remove your installation
directory manually (you bad one).
sh-2.05a$


i edited ~/.sversionrc to make it pint to the right location, but i still get this error.

----

I can't su root,
Code:

sh-2.05a$ su root
Password:
su: Authentication failure
Sorry.
sh-2.05a$

the pass is right. i can login as root, but when i try to mount something i get an error saying only root can do that.

EDIT: fixed it. i'd messed up some ownerships.
wheel?
_________________
NoManNoProblem

Get lost before you get shot.
Back to top
View user's profile Send private message
gsfgf
Veteran
Veteran


Joined: 08 May 2002
Posts: 1266

PostPosted: Mon Nov 18, 2002 11:38 pm    Post subject: Reply with quote

nano wrote:
wheel?


yep i'm in wheel
_________________
Aim:gsfgf0
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum