How to boot Knoppix as Root

Score
0
Vote Up
January 2, 2006 at 07:29:56 Pacific
Specs: Gentoo 1.4, PII-350/256MB

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


Reply ↓  Report •


#1
Vote Down
Score
0
Vote Up
January 4, 2006 at 17:59:26 Pacific

an entry in fstab should do it


Reply ↓  Report •

#2
Vote Down
Score
2
Vote Up
January 5, 2006 at 01:22:00 Pacific

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


Reply ↓  Report •

#3
Vote Down
Score
0
Vote Up
January 11, 2006 at 03:57:52 Pacific

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!


Reply ↓  Report •

#4
Vote Down
Score
0
Vote Up
January 11, 2006 at 06:52:30 Pacific

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


Reply ↓  Report •

Related Posts

#5
Vote Down
Score
0
Vote Up
January 11, 2006 at 08:06:25 Pacific

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.

Reply ↓  Report •

#6
Vote Down
Score
0
Vote Up
January 13, 2006 at 03:11:50 Pacific

Hi 3Dave,

Tks for your further advice.

B.R.
satimis


Reply ↓  Report •

#7
Vote Down
Score
0
Vote Up
January 15, 2006 at 07:21:21 Pacific

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


Reply ↓  Report •

#8
Vote Down
Score
0
Vote Up
January 17, 2006 at 02:44:34 Pacific

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.


Reply ↓  Report •

#9
Vote Down
Score
0
Vote Up
January 17, 2006 at 06:16:38 Pacific

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


Reply ↓  Report •

#10
Vote Down
Score
-1
Vote Up
January 17, 2006 at 08:26:19 Pacific

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


Reply ↓  Report •

#11
Vote Down
Score
0
Vote Up
January 18, 2006 at 03:29:50 Pacific

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


Reply ↓  Report •

#12
Vote Down
Score
0
Vote Up
January 18, 2006 at 03:49:08 Pacific

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.


Reply ↓  Report •

#13
Vote Down
Score
0
Vote Up
January 18, 2006 at 04:03:57 Pacific

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 ?


Reply ↓  Report •

#14
Vote Down
Score
0
Vote Up
January 18, 2006 at 06:22:38 Pacific

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.

Reply ↓  Report •

#15
Vote Down
Score
0
Vote Up
January 18, 2006 at 08:57:36 Pacific

Hi 3Dave,

Noted with tks

BR
satimis


Reply ↓  Report •

Reply to Message Icon Start New Discussion
« squid password Uninstalling Linux Mandra... »

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

Ask the Community!
Describe your Problem
Example: Hard Drive Not Detected on My PC