-
Full replacement of knoppix username,uid,groupname,gid.
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
-
Re: Full replacement of knoppix username,uid,groupname,gid.
![Quote](images/misc/quote_icon.png)
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.
-
Junior Member
registered user
Hi,
I changed as Raj said, its working good,
I also had to change some things in the init.d.
its working good but the problem starts when I try to get into init 5.
the result is the gray screen of X windows.
if I su to the new user and write startx its working.
what do I missing to make init 5 work also ?
thanks
-
Junior Member
registered user
reply to myself
Hi,
Im posting this in case someone will do a search after encountering the same problem as mine hopefully it will help.
to make the renme of the username and comppressed file work you ave to change in addition to the files above the file /etc/init.d/knoppix-autoconfig
if you want X to work you need to edit /etc/init.d/xsession also and change the username and fields.
thanks for this great forum and software!
-
Re: reply to myself
There are couple of more files to look at. For example, "/etc/sudoers, /etc/automount.sh, /etc/group, /usr/share/knoppix-terminalserver/template/miniroot/*, the knoppix installer scripts i.e. knx-hdinstall and knoppix-installer". In fact you will have to go through each and every shell script carefully to remove any traces of user "knoppix".
Update with 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
![Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot picture](/store/img/g/pB0AAOSwrbRkIWhk/s-l225/Fanxiang-4TB-2TB-1TB-SSD-550MB-s-2-5-SATA-III-Inte.jpg)
Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot
$219.99
![Fanxiang 4TB 2TB 1TB SSD 2.5'' SATA III 560MB/s Internal Solid State Drive lot picture](/store/img/g/0dMAAOSw99Zl7sby/s-l225/Fanxiang-4TB-2TB-1TB-SSD-2-5-SATA-III-560MB-s-Inte.jpg)
Fanxiang 4TB 2TB 1TB SSD 2.5'' SATA III 560MB/s Internal Solid State Drive lot
$188.09
![Fanxiang SSD 4TB 2TB 1TB PS5 SSD M.2 NVME SSD 7300MBS PCIe 4.0 Solid State Drive picture](/store/img/g/yKsAAOSwNPJlqMdQ/s-l225/Fanxiang-SSD-4TB-2TB-1TB-PS5-SSD-M-2-NVME-SSD-7300.jpg)
Fanxiang SSD 4TB 2TB 1TB PS5 SSD M.2 NVME SSD 7300MBS PCIe 4.0 Solid State Drive
$269.99
![Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot picture](/store/img/g/vt0AAOSwAgVls0tY/s-l225/Fanxiang-M-2-SATA-SSD-2TB-1TB-512GB-256GB-SSD-Inte.jpg)
Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot
$109.99
![Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5](/store/img/g/RzIAAOSwSZNlN-zB/s-l225/Patriot-P210-128GB-256GB-512GB-1TB-2TB-2-5-SATA-3-.jpg)
Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot
$15.50
![1080PRO 4TB SSD Solid State Hard Drive Ngff M.2 SSD Gaming Internal Hard Disk picture](/store/img/g/ADkAAOSwHoFmfNEh/s-l225/1080PRO-4TB-SSD-Solid-State-Hard-Drive-Ngff-M-2-SS.jpg)
1080PRO 4TB SSD Solid State Hard Drive Ngff M.2 SSD Gaming Internal Hard Disk
$32.99
![4tb Ssd 870 Evo Internal Solid State Drive Hard Disk Ssd 2.5 Inch Sata Iii 2tb D picture](/store/img/g/hMEAAOSwqVtmhOky/s-l225/4tb-Ssd-870-Evo-Internal-Solid-State-Drive-Hard-Di.jpg)
4tb Ssd 870 Evo Internal Solid State Drive Hard Disk Ssd 2.5 Inch Sata Iii 2tb D
$39.99
![Western Digital 256GB M.2 PCIe NVMe SSD PC SN740 M.2 2280 SDDPNQD-256G-1006 picture](/store/img/g/sC4AAOSwvtdmGzk0/s-l225/Western-Digital-256GB-M-2-PCIe-NVMe-SSD-PC-SN740-M.jpg)
Western Digital 256GB M.2 PCIe NVMe SSD PC SN740 M.2 2280 SDDPNQD-256G-1006
$16.99
![Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot picture](/store/img/g/2EAAAOSwC75mg22Y/s-l225/Netac-1TB-2TB-512GB-Internal-SSD-2-5-SATA-III-6Gb-.jpg)
Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot
$119.99
![Fanxiang 4TB 2TB 1TB SSD 2.5'' SATA III Internal Solid State Drive 512GB 256 lot picture](/store/img/g/7MUAAOSweZNldm9u/s-l225/Fanxiang-4TB-2TB-1TB-SSD-2-5-SATA-III-Internal-Sol.jpg)
Fanxiang 4TB 2TB 1TB SSD 2.5'' SATA III Internal Solid State Drive 512GB 256 lot
$178.69