Computing.Net > Forums > Linux > How to boot Knoppix as Root

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to boot Knoppix as Root

Reply to Message Icon

Name: satimis
Date: January 2, 2006 at 07:29:56 Pacific
OS: Gentoo 1.4
CPU/Ram: PII-350/256MB
Comment:

Hi folks,

Knoppix 4.0

Please advise how to start Knoppix as Root instead of User. Because;

1)
avoidng "su" to mount HD

2)
Applications can't read files in mounted partitions, unless they were started as Root (i.e. after su).

Running
# mount /dev/xyz /mnt/xyz
# mount -o remount,rw /mnt/xyz

Did not solve the problem.

TIA

B.R. and Happy New Year.
satimis



Sponsored Link
Ads by Google

Response Number 1
Name: Dlonra
Date: January 4, 2006 at 17:59:26 Pacific
Reply:

an entry in fstab should do it


0

Response Number 2
Name: satimis
Date: January 5, 2006 at 01:22:00 Pacific
Reply:

Hi Dlonra,

Tks for your advice.

I got it. On booting the CD type;
knoppix 3

It boots straight to runlevel 3 as Root. From there start runlevel 5. Then it will be run as Root.

satimis


0

Response Number 3
Name: 3Dave
Date: January 11, 2006 at 03:57:52 Pacific
Reply:

You can start a root console from the K menu. You can also use sudo to run commands or "sudo su -" for a root shell.

What partitions are you mounting? If it is FAT then pass umask=0 as an option when mounting it to allow all users read write access. If it is another file system type then try using uid and gid as mount options.

Happy new year to you too!


0

Response Number 4
Name: satimis
Date: January 11, 2006 at 06:52:30 Pacific
Reply:

Hi 3Dave,

Tks for your advice.

I'm running Knoppix as host to build LFS. The HD is empty.

If not running Knoppix as root the application started can't read files on mounted partition unless I start the application on a console owned by root.

Now I solve this problem. Tks

B.R.
satimis


0

Response Number 5
Name: 3Dave
Date: January 11, 2006 at 08:06:25 Pacific
Reply:

FYI In knoppix you can also get a root prompt on terminals 2-4, ie Ctrl & Alt & F2-F4....from there you could probably fire up another GUI on a different terminal, knoppix uses vt5 for its regular GUI so to start one on 6:
# startx -- :1 vt6
Now you should have two GUIs to switch between, one for user knoppix on Ctrl & Alt & F5 and one for root on
Ctrl & Alt & F6.


0

Related Posts

See More



Response Number 6
Name: satimis
Date: January 13, 2006 at 03:11:50 Pacific
Reply:

Hi 3Dave,

Tks for your further advice.

B.R.
satimis


0

Response Number 7
Name: satimis
Date: January 15, 2006 at 07:21:21 Pacific
Reply:

Hi 3Dave,

Made a test according to advice on "Response Number 5" but failed. Steps performed as follows;

1) Started Knoppix as User
2) Ctrl+Alt+F3 switched to runlevel 3
3) Ran;
# startx --:1 vt6
Xauth: Creating new authroity file //,Xauthority
using authority file //.Xauthority
writing authority file //.Xauthority
x:warning:process set to priority -11 instead of requested priority -10
Fatal server error
Server is already active for display 0
if this server is no longer running, remove /tmp/.X0-lock and start again.

4) Removed /tmp/.X0-lock and re-ran;
# startx --:1 vt6
5) X11 started (X-window started)
6) Ctrl+Alt+F5 switched back to runlevel 5 X-window
7) Ctrl+Alt+F3 switched to runlevel 3 again.
X-window died. Warning:....
......
.....
AUDIT: ...... clients 2 rejected from local host
Auth name: MIT-MAGIC-COOKIE-1 ID:-1
xinit:connnected to X server lost.

B.R.
satimis


0

Response Number 8
Name: 3Dave
Date: January 17, 2006 at 02:44:34 Pacific
Reply:

Have you got the spacing right?
startx[space]--[space]:1[space]vt6

Saying that, the above works fine on the slackware install I am using now allowing me to have a user X desktop on F7 and a root desktop on F8....just tried it on cluster knoppix and the second desktop logs you in as user knoppix and not root.


0

Response Number 9
Name: satimis
Date: January 17, 2006 at 06:16:38 Pacific
Reply:

Hi 3Dave,

Tried again adding space in between as advised.

Started Knoppix 4.0 as User KDE desktop

Ctrl+Alt+F3 switching to runlevel 3 as Root

# startx -- :1 vt6
X-server started, Root KDE desktop

Ctrl+Alt+F5 switchig to User KDE desktop

Ctrl+Alt+F3 again
Root KDE desktop died displaying;
....
.....SetClientVersion: 0 9
-
the screen hung here.

Ctrl+C
waiting for X-server to shutdown
xinit unexpected signal 2

Still the same

BR
satimis


0

Response Number 10
Name: 3Dave
Date: January 17, 2006 at 08:26:19 Pacific
Reply:

After switching to the user desktop with Ctrl+Alt+F5, if you want to get back to the root desktop use Ctrl+Alt+F6 and not Ctrl+Alt+F3.

FYI The vt6 in the startx command stands for virtual terminal 6 (ie F6). Most distros will have text terminals on F1-F6 with F7 usually being used for X. Knoppix is slightly different as in it uses F1-F4 and F5 for X. Having less terminals saves on resources. You can select how many you have by editing /etc/inittab. If you were using a regular distro and wanted to have a second desktop on F8 then the command would be:
$ startx -- :1 vt8


0

Response Number 11
Name: satimis
Date: January 18, 2006 at 03:29:50 Pacific
Reply:

Hi 3Dave,

I got it now. Tks

> You can select how many you have by editing
> /etc/inittab

Edit following section on /etc/inittab ???
# 4 virtual consoles with immortal shells
1:12345:respawn:/bin/bash -login >/dev/tty1 2>&1 </dev/tty1
2:2345:respawn:/bin/bash -login >/dev/tty2 2>&1 </dev/tty2
3:2345:respawn:/bin/bash -login >/dev/tty3 2>&1 </dev/tty3
4:2345:respawn:/bin/bash -login >/dev/tty4 2>&1 </dev/tty4

BR
satimis


0

Response Number 12
Name: 3Dave
Date: January 18, 2006 at 03:49:08 Pacific
Reply:

That's right, just comment out the ones you dont want. The above would give you 4 text terminals on F1-F4. If you just wanted 2 then comment out the last couple of lines. This would give you terminals on F1 and F2 and your default X session would then be on F3.


0

Response Number 13
Name: satimis
Date: January 18, 2006 at 04:03:57 Pacific
Reply:

Hi 3Dave,

Noted with tks.

After editing /etc/inittab as abovementioned the function of key will be moved up. Knoppix uses F5 as default X session. In such case F3 becomes default X session. Then what will be the function of F5 ?


0

Response Number 14
Name: 3Dave
Date: January 18, 2006 at 06:22:38 Pacific
Reply:

Unless you specifically start an X session on terminal 5 with "startx -- :1 vt5" then F5 will just be blank and unused....the same as F7-F12 will be for your now. If you switch to it you'll just get a flashing cursor with no login prompt.


0

Response Number 15
Name: satimis
Date: January 18, 2006 at 08:57:36 Pacific
Reply:

Hi 3Dave,

Noted with tks

BR
satimis


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: How to boot Knoppix as Root

How can I login as ROOT at start www.computing.net/answers/linux/how-can-i-login-as-root-at-start/23780.html

Signing in as root to edit samba. www.computing.net/answers/linux/signing-in-as-root-to-edit-samba/27272.html

How to boot linux through pendrive www.computing.net/answers/linux/how-to-boot-linux-through-pendrive/30153.html