LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-21-2004, 11:12 AM   #1
TuxFreak
Member
 
Registered: Oct 2004
Posts: 304

Rep: Reputation: 30
n00b user questions


well the time is coming where Im using Linux on my machines I use daily... For the past year ive just been learning Linux and just trying out new things so ive always logged in as root since I didnt care if I F*ed over the hard drive since I was just learning... But when I reformat the comps in the next few days, I want to make a user account so after I have everything all set I dont need to worry about accidentally killijng the comp as ill have important data...

I just have some general questions since ive never made user accouhnts before....

do I make all my configurations like what services to boot and all of the wireless configurations and just any settings like that as root and then if i log into a user account wil it then effect all of the user acocunts?

And pretty much any other information that you would feel migght be beneficial to me knowing with user acocunts would be great... thanks
 
Old 12-21-2004, 11:30 AM   #2
tripmix
Member
 
Registered: Nov 2004
Location: Norway
Distribution: Debian mostly
Posts: 107

Rep: Reputation: 16
man adduser
 
Old 12-21-2004, 11:36 AM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
The man page is part of it, but doesn't cover everything. Neither will I, obviously, but there's a hierarchy of configuration, in a sense. Root establishes global policies through editing the files in /etc and so on. Then comes the user configuration in the dotfiles in $HOME, and then command line options. Anything root sets will apply to all users unless overridden by the normal user. But *what* the normal user can override is limited. So, yes, you'd establish the default runlevel as root and it would effect all users, for instance. But the user can pick his shell or GUI unless root explicitly prevents him from doing so. But the user can't start or stop key services owned by root unless root foolishly exlicitly allows him to do so. That's a simplistic description, but I think was what you were wondering about. So administer the *machine* as root and administer your account as that user.
 
Old 12-21-2004, 11:41 AM   #4
TuxFreak
Member
 
Registered: Oct 2004
Posts: 304

Original Poster
Rep: Reputation: 30
ok so ill just make all my settings as root and then after that login as the user acocunt
 
Old 12-21-2004, 01:29 PM   #5
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
What distro are you using? The details of how to do some things varies, depending on that.
 
Old 12-21-2004, 01:30 PM   #6
TuxFreak
Member
 
Registered: Oct 2004
Posts: 304

Original Poster
Rep: Reputation: 30
Fedora Core 3 using GNOME
 
Old 12-21-2004, 06:25 PM   #7
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
Quote:
Originally posted by TuxFreak
ok so ill just make all my settings as root and then after that login as the user acocunt
even better - login only as a user, then use "su" to do things that require root permission. never logging in as root is a good habit, in general.
 
Old 12-21-2004, 06:35 PM   #8
TuxFreak
Member
 
Registered: Oct 2004
Posts: 304

Original Poster
Rep: Reputation: 30
when you type it in do u just do su? or do u have to do like

su <root password> or that it? But then again some of my main changes I do arent all directly through terminal liek some have the Network GUIs and stuff....
 
Old 12-21-2004, 09:11 PM   #9
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Yeah - type 'su' and you'll be prompted for a password. Type 'su -' if you want it akin to a root login. Sorry, I dunno about graphical configuration, but most of those can be invoked from the command line. Once the GUI's up you can configure graphically.
 
Old 12-22-2004, 01:09 AM   #10
whipermr5
Member
 
Registered: Dec 2004
Location: Singapore
Distribution: Fedora Core 5 Linux
Posts: 202

Rep: Reputation: 30
The diff between su and su - is su - includes root's $PATH search path.
 
Old 12-22-2004, 05:47 AM   #11
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Well, it's more than that - /etc/profile, bash_logout, and so on are executed, and the general environment changes. DISPLAY, EDITOR, LOGNAME and more can change. It's still not a pure root login though, in that pieces of your user environment persist. And both su and su - can get the sbins on the path, depending on system configuration; su just doesn't get the full path - any miscellaneous initialization scripts or root's startups.
 
Old 12-22-2004, 07:11 AM   #12
whipermr5
Member
 
Registered: Dec 2004
Location: Singapore
Distribution: Fedora Core 5 Linux
Posts: 202

Rep: Reputation: 30
Thanks, digiot for correcting me. I didn't know that.
 
Old 12-23-2004, 06:23 PM   #13
TuxFreak
Member
 
Registered: Oct 2004
Posts: 304

Original Poster
Rep: Reputation: 30
Also like wine makes the hidden folder .wine in the root folder where theres the drive_c and all of the wine programs installed. Should I install all of the ported programs under the user account if i want to access it when im nto in root? So it would be installed in user folder ./wine or are the wine programs distributed amongst the accounts. So the same would apply for programs like thunderbird and such with folders I usually edit in root... Also if I install RPms for like XMMS and everything as root theres goign to be access in all of the accounts right? I just have all of the default permissions for them right now.
 
Old 12-23-2004, 09:25 PM   #14
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Not sure I'm following that, and I don't use wine. In dosemu, I installed dos apps under ~/.dosemu or wherever it was, but I have no need to use those as root.

Um, as far as the permissions on things, you install as root, right. Then you usually have execute permission to the binaries as user. But you can only edit the system-wide configs as root - stuff in /etc or /usr/share or wherever. But again, there's no need to do that unless you're actually administering a multi-user system or if it's something like setting the runlevel for the machine. In terms of configuring your own apps, you get dotfiles and directories (like ~/.wine, I guess) where you can do all the configuration you need. If, for instance - well, as an example, I usually use Ice and it generates several config files in ~/.icewm. But the themes are in /usr/local/share/icewm/themes/. I don't have write permission to that dir as user, but copying ain't writing - so I copy a theme to ~/.icewm/themes and edit it there. No root required.

Plus, if I utterly screw up the file, I've got the original still in /usr/local/share.

Makes sense? Or did I completely miss your question?
 
Old 12-24-2004, 06:41 AM   #15
TuxFreak
Member
 
Registered: Oct 2004
Posts: 304

Original Poster
Rep: Reputation: 30
I think i might have understood that. I guess im just trying to figure out what to do in root and what to do as user. I think ill just be able to figure it out as I go, I'm just that type of person I like to figure it all out ahead of time in my head as i've never done a user account n linux before.
 
  


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
A Few N00b Questions... rohde Linux - Newbie 5 09-11-2004 02:36 PM
Questions from a n00b sKiBa Linux - Newbie 2 06-03-2004 03:38 PM
n00b Questions Joey.Dale Slackware 7 12-05-2003 11:59 PM
a few n00b questions... tv_is_drowning Linux - Newbie 3 11-06-2003 04:09 AM
n00b seeks help, has many questions vortech Linux - General 11 12-03-2001 01:26 AM


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