LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-29-2008, 03:54 AM   #1
annihilan
Member
 
Registered: Jul 2008
Posts: 58

Rep: Reputation: 15
New Slackware User that needs help with commands.


Ok, I'm new to Slackware, and for the most part Unix/Linux in general. I have used Ubuntu/Kubuntu before, but all I did was... nothing. I couldn't do jack on them. Mainly because of my lack of talent in the area of terminal commands. I currently need to know how to add my account that Slackware generated when it installed, to the sudoers list, and the commands that 'visudo' gives me, make no sense to me. I don't know what account I'm on, how to make one, and how to do any of this. Please, please help me, I am so, so tired of Windows, I just want to learn a distribution and give Msoft the finger.
 
Old 07-29-2008, 04:25 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Welcome to LQ!

First you should read the Slackware documentation on the CD1/DVD you
installed with. Most of that is covered.

What account do you mean "Slackware generated?" Slackware on the install
sets up only a root account. You are to add a normal user account on your
own. When you start your system, do you have a login prompt like:
Code:
Welcome to Linux 2.6.24.5 (tty1)

darkstar login: _
of do you go to a graphical login? (I have no clue what that looks like.)

If you get the login prompt above, type root and then the root password
you gave it when you installed. After than, type "adduser annihilan" or
substitute a suitable username for annihilan if you don't want that one.
Follow those simple questions (press the up arrow key for more users) and
you will have a normal user setup. After it returns you to a prompt, enter
exit to logout as root, then enter the normal user username and password.
Then type "startx" to start the graphical X server.

If you boot into X, then open a Konsole (little icon that looks like a monitor
at the bottom of the screen) and use it to enter those commands.

Never, never run your system as root. Run it as a normal user, and only
su (switch user) to root when you have to have root privileges.

If you want to use Slackware, and give up Mickey$oft Windoze, you're going
to have to do a lot of reading. If you don't want to read, you're better off
using another OS.

If you stick around, please enter your Slackware questions in the Slackware forum.
 
Old 07-29-2008, 04:28 AM   #3
annihilan
Member
 
Registered: Jul 2008
Posts: 58

Original Poster
Rep: Reputation: 15
I'm reading the Slackbook now, and it seems wholly helpful, I haven't found any commands, but I'm sure they're in here somewhere. Why is it bad practice to run my computer as root? Any reason? Or just dangerous?
 
Old 07-29-2008, 04:50 AM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
It's a bad practice because root has rw (read/write) permissions to
every file on the system. So if you accidentally enter an incorrect
command, such as "rm -rf /", you will hose your system.

NB: Do not enter "rm -rf /". That command means remove (rm)
recursive (r) force (f) from root (/), so it will remove every file and
every directory in your system. There are jerks who have been known
to post that as advice.

Take your typcial beloved Windoze operating system, as an example. Joe
Public buys a computer from Wal-Mart, CompUSA, BestBuy (substitute other
store where employees aren't well-trained) and takes it home. It was setup by
someone in a warehouse, or worse, one of the aforementioned establishment's
sales clerks. There is one user, Administrator, with no password. So whenever
the system is started, he has full rights to every file on the system.

Day 1 -- he gets a free snotmail account, fires up MSN, and starts spamming all the
relatives and friends who gave him their email address (though their conscience
was screaming JUST SAY NO!!!).

Day 2 -- Joe gets an email from some knockout girl in Bolivia who promises to fulfill
his strangest desires (or maybe it was a babe in an IRC chat). He opens the attachment,
or browses to her web page, or accepts the file she offers for download; so he can look
at the merchandise.

BAM!!! Joe gets a trojan, which begins removing files and rearranging his poorly coded in
the first place Windoze operating system.

Day 3 -- Joe gives me a call. Hey, my friend says you're the computer guru. Can you help me?
I've only had this computer three days, and now it won't work. (Needless to say, Joe has no
idea that "it won't work" means next to nothing.)

See the problem? Not only has Joe bought something more powerful than his present level of
knowledge can handle, but he has Administrator rights, which means that when Joe lets the
temptations of life trick him into opening a file he shouldn't, it is allowed to write to
anywhere on his system, including his registry. Effectively, Joe "hosed his box."

Now, if Joe had only a guest account where he logged in, and could not write to the entire
system or "install" software, he'd be protected from himself somewhat.

Slackware, like all true Linux based OSes, has the first line of defense against the ignorance
of us, the users -- it is a true multi-user system. You should only login and start the X server
as a normal user. When you need to do something that requires root privileges, there are easy
ways to su (switch user) to root and get the job done, then logout.

There are many other good links. I'll give you this FAQ from alt.os.linux.slackware. It has a
lot of information answered that you'll need really soon.

Then you can also check onebuck's The Slackware LQ Suggestions Links For Linux Slackers!

Please read, and when you get stumped, ask us in the Slackware forum.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Log user commands and output roulette Linux - Security 5 08-17-2009 11:30 PM
VSFTP and USER commands pricejm Slackware 7 01-19-2008 04:15 AM
Running super user commands as normal user mickyg Linux - Security 5 10-14-2005 07:25 PM
User commands Phonics3k Linux - Newbie 4 12-19-2004 12:16 PM
User commands pazvant Linux - General 3 02-07-2004 07:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:56 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
Open Source Consulting | Domain Registration