Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi folks,
Knoppix 4.0
Please advise how to start Knoppix as Root instead of User. Because;
1)
avoidng "su" to mount HD2)
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/xyzDid not solve the problem.
TIA
B.R. and Happy New Year.
satimis

Hi Dlonra,
Tks for your advice.
I got it. On booting the CD type;
knoppix 3It boots straight to runlevel 3 as Root. From there start runlevel 5. Then it will be run as Root.
satimis

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!

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

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.

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

Have you got the spacing right?
startx[space]--[space]:1[space]vt6Saying 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.

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 desktopCtrl+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 2Still the same
BR
satimis

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

Hi 3Dave,
I got it now. Tks
> You can select how many you have by editing
> /etc/inittabEdit 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/tty4BR
satimis

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.

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 ?

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.

![]() |
![]() |
![]() |

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