| View previous topic :: View next topic |
| Author |
Message |
gsfgf Veteran


Joined: 08 May 2002 Posts: 1266
|
Posted: Fri Nov 15, 2002 3:02 am Post subject: I wanna be good..i promise |
|
|
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 |
|
 |
masseya Bodhisattva


Joined: 17 Apr 2002 Posts: 2602 Location: Raleigh, NC
|
Posted: Fri Nov 15, 2002 3:24 am Post subject: |
|
|
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 |
|
 |
gsfgf Veteran


Joined: 08 May 2002 Posts: 1266
|
Posted: Fri Nov 15, 2002 4:01 am Post subject: |
|
|
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 |
|
 |
pjp Administrator


Joined: 16 Apr 2002 Posts: 15989 Location: Colorado
|
Posted: Fri Nov 15, 2002 4:13 am Post subject: |
|
|
| 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 |
|
 |
hook Veteran


Joined: 23 Oct 2002 Posts: 1398 Location: Ljubljana, Slovenia
|
Posted: Fri Nov 15, 2002 10:01 am Post subject: |
|
|
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 |
|
 |
gsfgf Veteran


Joined: 08 May 2002 Posts: 1266
|
Posted: Sat Nov 16, 2002 4:00 am Post subject: |
|
|
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 |
|
 |
splooge l33t

Joined: 30 Aug 2002 Posts: 636
|
Posted: Sat Nov 16, 2002 4:07 am Post subject: |
|
|
| 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 |
|
 |
mdpye Tux's lil' helper

Joined: 18 Apr 2002 Posts: 102 Location: Nottingham, England
|
Posted: Sat Nov 16, 2002 2:20 pm Post subject: |
|
|
| 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 |
|
 |
really Guru


Joined: 27 Aug 2002 Posts: 430 Location: nowhere
|
Posted: Sat Nov 16, 2002 2:35 pm Post subject: |
|
|
#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 |
|
 |
elzbal Guru


Joined: 31 Aug 2002 Posts: 364 Location: Seattle, WA, USA
|
Posted: Sat Nov 16, 2002 2:59 pm Post subject: |
|
|
| 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 |
|
 |
gsfgf Veteran


Joined: 08 May 2002 Posts: 1266
|
Posted: Sat Nov 16, 2002 5:19 pm Post subject: |
|
|
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 |
|
 |
pjp Administrator


Joined: 16 Apr 2002 Posts: 15989 Location: Colorado
|
Posted: Sat Nov 16, 2002 5:35 pm Post subject: |
|
|
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 |
|
 |
gsfgf Veteran


Joined: 08 May 2002 Posts: 1266
|
Posted: Sat Nov 16, 2002 6:04 pm Post subject: |
|
|
that didn't help
also, nice won't work running as a user. How do i get that workin? _________________ Aim:gsfgf0 |
|
| Back to top |
|
 |
pjp Administrator


Joined: 16 Apr 2002 Posts: 15989 Location: Colorado
|
Posted: Sat Nov 16, 2002 6:32 pm Post subject: |
|
|
What files are giving you access denied errors? _________________ Safety is my gaol.
US Constitution | Amendments |
|
| Back to top |
|
 |
gsfgf Veteran


Joined: 08 May 2002 Posts: 1266
|
Posted: Sat Nov 16, 2002 9:43 pm Post subject: |
|
|
/root/.fluxbox/menu _________________ Aim:gsfgf0 |
|
| Back to top |
|
 |
pjp Administrator


Joined: 16 Apr 2002 Posts: 15989 Location: Colorado
|
Posted: Sat Nov 16, 2002 9:52 pm Post subject: |
|
|
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 |
|
 |
rac Bodhisattva


Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Sat Nov 16, 2002 9:54 pm Post subject: |
|
|
| 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 |
|
 |
gsfgf Veteran


Joined: 08 May 2002 Posts: 1266
|
Posted: Sat Nov 16, 2002 10:32 pm Post subject: |
|
|
| 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 |
|
 |
gsfgf Veteran


Joined: 08 May 2002 Posts: 1266
|
Posted: Sun Nov 17, 2002 12:33 am Post subject: |
|
|
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 |
|
 |
SlCKB0Y Tux's lil' helper

Joined: 07 Jul 2002 Posts: 105 Location: Sydney, Australia
|
Posted: Sun Nov 17, 2002 2:00 pm Post subject: |
|
|
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 |
|
 |
really Guru


Joined: 27 Aug 2002 Posts: 430 Location: nowhere
|
Posted: Mon Nov 18, 2002 5:55 pm Post subject: |
|
|
| 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 |
|
 |
gsfgf Veteran


Joined: 08 May 2002 Posts: 1266
|
Posted: Mon Nov 18, 2002 11:38 pm Post subject: |
|
|
yep i'm in wheel _________________ Aim:gsfgf0 |
|
| Back to top |
|
 |
|