-
Re: Full replacement of knoppix username,uid,groupname,gid.

Originally Posted by
nosknoppix
Hello,
I've been hacking knoppix a bit, hoping to eventually add boot line options that will allow you to define the username, uid, groupname, gid at bootup and then have knoppix cleanly load an environment for that user (rather than the koppix username/uid). I haven't got to the boot option reading yet, but have found most of the relevant places (knoppix-autoconfig, etc) where such information must be changed.
The one thing I haven't found is exactly where and how the /home/knoppix directory is mounted at boot, and how to modify this to generically mount /home/foo instead.
Pointers would be appreciated - if there is interest I would be happy to fold this back to Klaus or this forum if I can do this cleanly.
Nathan
Hi,
I've done it successfully.
You need to look at a number of files. Let us start one by one: -
First file to look at is "miniroot.gz". You will have to modify the file "linuxrc" in its root directory.
(After uncompressing and mounting it. If you don't know, then read on - mount boot.img file to some directory e.g. "mount -t msdos -o loop boot.img /mnt/test". Then "cd /mnt/test", "cp miniroot.gz <location>" preferable on harddisk. Then "umount /mnt/test". Unzip miniroot.gz - "gunzip miniroot.gz". Then mount it "mount -o loop miniroot /mnt/test" or whatever. Make necessary changes to it then "umount /mnt/test". Then "gzip miniroot". The mount the boot.img - "mount -t msdos -o loop boot.img /mnt/test". Then "cp miniroot.gz /mnt/test". When asked overwrite it. Then "umount /mnt/test" and you are done with changes.).
The "/etc/passwd", "/etc/shadow", "/etc/shadow", "/etc/mtab", "/etc/fstab" will be of interest to you.
If you are changing the name of compressed filesystem from "KNOPPIX" to something else then you'll have to fix the symlinks in directory w.r.t. to your compressed filesystem's name as well as "/etc/fstab" and "/etc/mtab" accordingly.
First try these then tell the progress.
Similar Threads
-
By sakiZ in forum Other Live CDs
Replies: 7
Last Post: 04-14-2006, 01:17 PM
-
By mithereal in forum Customising & Remastering
Replies: 0
Last Post: 06-16-2005, 12:00 PM
-
By stclaus in forum Customising & Remastering
Replies: 0
Last Post: 05-22-2005, 04:49 PM
-
By Jameson in forum The Lounge
Replies: 6
Last Post: 03-31-2005, 08:16 AM
-
By ERsKA in forum Networking
Replies: 5
Last Post: 09-17-2004, 10:53 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

SAMSUNG T7 Portable SSD 1TB Indigo Blue USB 3.2 Gen2 External MU-PC1T0H/AM
$159.99

Dell Latitude 14" Laptop Computer Intel i5 Up To 32GB RAM 1TB SSD Windows 11 Pro
$316.61

External SSD 1TB 2TB 4TB Portable Hard Drive USB 3.0 Type-C High Speed PC Mac
$19.99

Western Digital 1TB 3.5" SATA III 7200RPM Desktop Hard Drive
$34.99

Crucial MX500 1TB 2.5" SATA III Internal SSD CT1000MX500SSD1
$99.99

Acer Predator Helios Neo 16S AI 16" i9 275HX 2S RTX 5070 Ti 32GB 1TB SSD Refurb
$1746.47

Netac 2TB 1TB 500GB Internal SSD M.2 NVMe PCIe3.0 Solid State Drive lot
$129.99

Lenovo Legion 5 Gaming 15.1" WQXGA OLED 165Hz Core i9-14900HX 16GB 1TB RTX 5070
$1469.00

Toshiba DT01ACA100 1 TB 3.5" SATA III 3.5 in Desktop Hard Drive
$24.99

2026 NEW SGIN 15.6" Laptop Win11 Intel i3 16GB RAM 1TB SSD Wi-Fi 6 RJ45 USB-C
$333.99