Adding user on LiveCD
Hello, I am building LFS 6.5 via LiveCD on VirtualBox. Now I am at chap 4 which talks about adding users. Everything went fine except that the added user was gone when I shut down the machine and restarted it. I used cat /etc/passwd to list the users and did not find the newly added user. Any suggestions will be greatly appreciated! Best Regards,Dan -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Adding user on LiveCD
On Tue, Aug 31, 2010 at 6:45 AM, Dahai Guo guo...@yahoo.com wrote: I am building LFS 6.5 via LiveCD on VirtualBox. Now I am at chap 4 which talks about adding users. Everything went fine except that the added user was gone when I shut down the machine and restarted it. I used cat /etc/passwd to list the users and did not find the newly added user. Any suggestions will be greatly appreciated! The thing is with LiveCDs, is that you don't want to reboot them, or you'll get a vanilla state, but you can mount the partitions and add the LFS user and contuine on with your build. As a side note, LFS 6.5 is now an old version, so may as well use SVN (soon-to-be LFS 6.7) -- William Immendorf The ultimate in free computing. Messages in plain text, please, no HTML. GPG key ID: 1697BE98 If it's not signed, it's not from me. -- Every nonfree program has a lord, a master -- and if you use the program, he is your master. Richard Stallman -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Adding user on LiveCD
I don't know if this would help, but the way I do it is I write a script to the target disk containing all the user, and file information ( partition, mount command, passwd and user info) and other scripts for environments. So when I have to shutdown, I launch the scripts and everything is setup... Hope this helps Sent from my BlackBerry® wireless device -Original Message- From: Dahai Guo guo...@yahoo.com Sender: lfs-support-boun...@linuxfromscratch.org Date: Tue, 31 Aug 2010 04:45:36 To: lfs-support@linuxfromscratch.org Reply-To: LFS Support List lfs-support@linuxfromscratch.org Subject: Adding user on LiveCD -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Adding user on LiveCD
On Tue, Aug 31, 2010 at 8:06 AM, kess.alexan...@gmail.com wrote: I don't know if this would help, but the way I do it is I write a script to the target disk containing all the user, and file information ( partition, mount command, passwd and user info) and other scripts for environments. So when I have to shutdown, I launch the scripts and everything is setup... Please don't top post on this list, even through it might be hard with your Blackberry, Anyway, the thing you are talking about would be a hard task to do, but at least Puppy allows you to save your Livecd state, but other than that, don't reboot on Livecds. -- William Immendorf The ultimate in free computing. Messages in plain text, please, no HTML. GPG key ID: 1697BE98 If it's not signed, it's not from me. -- Every nonfree program has a lord, a master -- and if you use the program, he is your master. Richard Stallman -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Adding user on LiveCD
On 08/31/2010 07:40 AM, William Immendorf wrote: On Tue, Aug 31, 2010 at 8:06 AM, kess.alexan...@gmail.com wrote: I don't know if this would help, but the way I do it is I write a script to the target disk containing all the user, and file information ( partition, mount command, passwd and user info) and other scripts for environments. So when I have to shutdown, I launch the scripts and everything is setup... Please don't top post on this list, even through it might be hard with your Blackberry, Anyway, the thing you are talking about would be a hard task to do, but at least Puppy allows you to save your Livecd state, but other than that, don't reboot on Livecds. Actually, I don't think it'd be as hard as one would think, though depending on how much reliability it may not be the best. Already, LiveCDs create RAM disks which store any modified files in RAM (usually utilizing something like UnionFS or AUFS, I think). All you'd have to do is dump this RAM disk to a file on the specified drive, then look for it on bootup and, if found, move it back to RAM. This is what Puppy's scripts do, I think, though they also do a lot more than just this, and, like I said earlier, this may not be the most reliable method without certain safety procedures being put in place. Smartboy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Adding user on LiveCD
The live cd has the user jhalfs which is already set up in sudoers (sudo). Once booted and at the shell, you can become jhalfs with: su - jhalfs Then can get into graphical desktop with: startxfce4 In the instructions that reference user lfs, substitute the user jhalfs I think that may work ok. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Adding user on LiveCD
On Tue, 31 Aug 2010 23:45, Dahai Guo wrote: Hello, I am building LFS 6.5 via LiveCD on VirtualBox. Now I am at chap 4 which talks about adding users. Everything went fine except that the added user was gone when I shut down the machine and restarted it. I used cat /etc/passwd to list the users and did not find the newly added user. Any suggestions will be greatly appreciated! Best Regards,Dan I have not used VirtualBox but when I used an alternate virtualization solution I never closed the LiveCD guest system. If I had to shutdown the physical or host system I would first suspend/hibernate the guest system. Then after shutdown and restart of the host (real) system I would resume the guest and the state of my guest was as it was before I had suspended it. Regards Tony Sauri -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page