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.
|
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) 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. |
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?
|
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. |
All times are GMT -5. The time now is 12:36 AM. |