Results 1 to 5 of 5

Thread: Full replacement of knoppix username,uid,groupname,gid.

  1. #1

    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

  2. #2
    Member registered user
    Join Date
    Jan 2005
    Location
    India
    Posts
    47

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

    Quote 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.

  3. #3
    Junior Member registered user
    Join Date
    Jan 2005
    Posts
    15
    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

  4. #4
    Junior Member registered user
    Join Date
    Jan 2005
    Posts
    15

    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!

  5. #5
    Member registered user
    Join Date
    Jan 2005
    Location
    India
    Posts
    47

    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

  1. Tried Out Ubuntu -- Not a Knoppix Replacement
    By sakiZ in forum Other Live CDs
    Replies: 7
    Last Post: 04-14-2006, 01:17 PM
  2. knoppix username etc
    By mithereal in forum Customising & Remastering
    Replies: 0
    Last Post: 06-16-2005, 12:00 PM
  3. knoppix username
    By stclaus in forum Customising & Remastering
    Replies: 0
    Last Post: 05-22-2005, 04:49 PM
  4. Knoppix Replacement Sticker
    By Jameson in forum The Lounge
    Replies: 6
    Last Post: 03-31-2005, 08:16 AM
  5. 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
  •  


Cisco Nexus 48-Port 10G SFP+ Switch N9K-9396PX w/ 9K-M12PQ 12-Port 40G QSFP picture

Cisco Nexus 48-Port 10G SFP+ Switch N9K-9396PX w/ 9K-M12PQ 12-Port 40G QSFP

$314.99



Cisco C881W-A-K9 Gigabit Ethernet Wireless Security Router picture

Cisco C881W-A-K9 Gigabit Ethernet Wireless Security Router

$175.00



Cisco RV160 VPN Router 4 Gigabit Ethernet Ports RV160-K9-AR picture

Cisco RV160 VPN Router 4 Gigabit Ethernet Ports RV160-K9-AR

$80.00



Cisco SG110 24 Port Gigabit Ethernet Switch w/ 2 x SFP SG110-24 picture

Cisco SG110 24 Port Gigabit Ethernet Switch w/ 2 x SFP SG110-24

$117.00



Cisco WS-C3850-48P-L 48-Port Gigabit 3850 PoE Switch w/ 715W+ C3850-NM-4-1G Mod picture

Cisco WS-C3850-48P-L 48-Port Gigabit 3850 PoE Switch w/ 715W+ C3850-NM-4-1G Mod

$83.00



Cisco Catalyst WS-C2960-48TT-L V02 48 Port Fast Ethernet Switch picture

Cisco Catalyst WS-C2960-48TT-L V02 48 Port Fast Ethernet Switch

$34.00



Cisco Catalyst 3650 24 10/100/1000 Ethernet PoE+4x1G Uplink Port 640WAC LAN Base picture

Cisco Catalyst 3650 24 10/100/1000 Ethernet PoE+4x1G Uplink Port 640WAC LAN Base

$35.00



Cisco Catalyst WS-C3850-48P-L 48P 1GbE 435W PoE+ Switch w/C3850-NM-2-10G picture

Cisco Catalyst WS-C3850-48P-L 48P 1GbE 435W PoE+ Switch w/C3850-NM-2-10G

$79.00



UNCLAIMED Cisco Meraki MS120-24P-HW - 24Ports Ethernet PoE Switch  Same Day Ship picture

UNCLAIMED Cisco Meraki MS120-24P-HW - 24Ports Ethernet PoE Switch Same Day Ship

$315.00



32 Port 40GbE QSFP+ Cisco Nexus Enterprise Layer 3 VXLAN Switch Dual PSU picture

32 Port 40GbE QSFP+ Cisco Nexus Enterprise Layer 3 VXLAN Switch Dual PSU

$149.00