LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 10-03-2007, 06:34 PM   #1
bo_akins
LQ Newbie
 
Registered: Oct 2007
Posts: 8

Rep: Reputation: 0
Switching to Root in Slackware v12


Ok,

Alot of problems that I have involve needing to switch to root to make changes and various other ordeals, but everyone tells me to use the command "su" everytime I use this in Konsole,it does nothing and when i use Alt+f2 and type "su" to make the run command, nothing happens. How Do I make myself root, I thought I was root in the first place, I typed it in at the start up prompt before I Typed startx...WHATS GOING ON HERE?!!!
 
Old 10-03-2007, 06:41 PM   #2
dguitar
Member
 
Registered: Jun 2005
Location: Portland, ME
Distribution: Slackware 13, CentOS 5.3, FBSD 7.2, OBSD 4.6, Fedora 11
Posts: 122

Rep: Reputation: 17
After you install Slackware, and the first time you log in... yes you are root. You need to add a user (adduser).

You might want to have a glance at the slack book. It has some great content for people just starting out, and those that have been around linux for awhile.
 
Old 10-03-2007, 06:41 PM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
If you're already running as root (UNWISE) then su is redundant, and won't really do anything.
 
Old 10-03-2007, 06:41 PM   #4
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
They tell you to su to root at the terminal because you shouldn't be starting X as root That's why nothing is happening - because you are already root.

Just type 'startx' as your normal user, and then when you type 'su' in a terminal, it should ask you for your root password.
 
Old 10-03-2007, 06:48 PM   #5
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
When looking at a terminal, if you see "$" as the prompt, you are a regular user. If you see "#" as your prompt, you are root.

I also suggest taking a look in the Slackware forum -- there are some great tip thread there!
 
Old 10-03-2007, 08:00 PM   #6
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
I think a lot of advice from Ubuntu, Suse, Debian users may not be applicable to Slackware.

My Slackware 12 by default installed only the root user and there is "NO" ordinary user account created in the installation! I haven't bother to add one yet.

The Slackware and Slax families have always been relax about allowing root log in with the desktop. They don't restrict the the root user to the terminal.

Just like ntfs-3g many distros like Ubuntu, Debian, Fedora and Suse require the user to build and install it. Slax is shipped with it pre-installed so that upon installation every ntfs partition will be mounted and the user can drag and drop (read/write) any files in the desktop, while other distro like Ubuntu would not even allow a user to view even the content inside a Windows ntfs partition! So Ubuntu's way of doing things does not apply to other Linux.

If the command "su" yield no response that means you are the root user already!
 
Old 10-03-2007, 08:37 PM   #7
dguitar
Member
 
Registered: Jun 2005
Location: Portland, ME
Distribution: Slackware 13, CentOS 5.3, FBSD 7.2, OBSD 4.6, Fedora 11
Posts: 122

Rep: Reputation: 17
Quote:
Originally Posted by saikee View Post
The Slackware and Slax families have always been relax about allowing root log in with the desktop. They don't restrict the the root user to the terminal.
I don't think anyone is 'relaxed' about allowing root. I more think it is assumed that the average slack users would know not to be logged in as root 100% of the time because of all the extreme consequences it can have.
 
Old 10-03-2007, 08:41 PM   #8
wanghao
Member
 
Registered: Mar 2007
Distribution: centos
Posts: 126

Rep: Reputation: 15
maybe another command may help you "who am i ",
you'll know who you are and other more information!
 
Old 10-03-2007, 08:53 PM   #9
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
Quote:
Originally Posted by saikee View Post
I think a lot of advice from Ubuntu, Suse, Debian users may not be applicable to Slackware.

My Slackware 12 by default installed only the root user and there is "NO" ordinary user account created in the installation! I haven't bother to add one yet.

The Slackware and Slax families have always been relax about allowing root log in with the desktop. They don't restrict the the root user to the terminal.

Just like ntfs-3g many distros like Ubuntu, Debian, Fedora and Suse require the user to build and install it. Slax is shipped with it pre-installed so that upon installation every ntfs partition will be mounted and the user can drag and drop (read/write) any files in the desktop, while other distro like Ubuntu would not even allow a user to view even the content inside a Windows ntfs partition! So Ubuntu's way of doing things does not apply to other Linux.

If the command "su" yield no response that means you are the root user already!
Slax is a livecd distro so it doesn't matter if you are root, and in most cases it is better to be root in a livecd, what is applicable to a livecd is not applicable to an install. Slackware is not relaxed about root access, its a do-it-yourself distro so they expect that you would make a normal user account with out being prompted to. Also it is not really considered a good security practice to run as root 24/7
 
Old 10-04-2007, 02:40 AM   #10
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Until recently Slax is an installable distro but the installer script was not maintained in some recent releases.

Many Live CD distros are also very easy to be installed into a hard disk or thumb drive and Slax is one of them.

Slax also have a family of its own with 5 to 6 others distros that are all installable.

I agree that it is safer not to log in as root. My point is out there it is a not uniform standard and one approach for all does not always work. To log in as root briefly even to a desktop for the purpose of doing work on the system isn't a serious danger and is supported by many big distros. One can log in as root to Ubuntu desktop too. It is a simple change in the setting.

To me to support not to log in as root and not to use it is two different things.
 
Old 10-04-2007, 05:06 PM   #11
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
Slax is an installable distro but it is not meant to be installed, much like KNOPPIX and is made as a live distro running from a flash drive or a cd-rom. Also there should be no reason to use x as root
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
V12 Installation not finding second Sata drive Noob Cubed Slackware - Installation 1 08-17-2007 11:04 PM
Switching root with initramfs slacker9 Slackware 5 07-24-2007 04:15 PM
Quickly switching to root artificialGekko Linux - Newbie 9 03-09-2005 06:44 AM
switching to root Stan the caddy Linux - Newbie 9 01-17-2004 02:54 AM
Switching between root and user PapaNoHair Slackware 14 07-28-2003 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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