Author Topic: remastering and excluding a particual user account  (Read 858 times)

Offline Village Idiot

  • Hero Member
  • *****
  • Posts: 2345
  • Have A Nice Day.
remastering and excluding a particual user account
« on: October 08, 2010, 04:25:48 AM »
I have got a remastered iso onto a usb stick,  :)  booted it and successfully omitted a particular user directory  ;D   however..

My problem is the user account is still showing up on the login screen. Of course choosing that account causes the xserver to nose-dive and I have to ctrl-alt-backspace.

I have searched around but I seem to misunderstand how to exclude a user or maybe I am going about it the wrong way....

Here's what I did. LXDE.07 installed on a core i7 (build box) and created account 'user1' at that time. Created 'user2' account a in anticipation of trying the make live-cd/usb tools and try and boot a usb stick on a eee-pc 1000H. I needed to get draklive-install from synaptic. System is fully updated btw.

So I used this to make the ISO:
$ mylivecd --nodir=^/home/user1,/media/* name.iso

1.4gb iso file. Cool!

Then I called lusbc.sh and selected name.iso and pointed it at a 8gb usb flash drive.

Booted Ok on the eee-pc...

Now, sure enough, the /home/user1 directory is indeed absent on the live-cd file system but as I said the 'user1' account shows up as a choice on the login screen along with user2 and root.

I need this 'user1' account to remain on the 'build' system so removing the account on the host 'build' system is not an option, I just want the live usb to ignore/isolate it.

And ideas?    ??? ???

* names of the accounts have been changed to protect the innocent.  ;)
$ fortune
No Microsoft products were used in any way for the creation of this message.
If you are using a Microsoft product to view it, BEWARE! - I'm not
responsible for any harm you might encounter as a result.

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: remastering and excluding a particual user account
« Reply #1 on: October 08, 2010, 04:34:37 AM »
I had something similarly weird happen to me on a recent remaster but I put it down to the fact that I had not remastered for quite a long time and might have made some error in the command.

It appears that maybe other references to the unwanted user also need to be excluded .....  I have no idea what or how  :)

Alternatively a remaster of the remastered system, after deleting the account would do the trick also.

Have you tried, on the USB stick, while using persistence, deleting the unwanted user through the PCLOS Control Center?

That should work, as long as you continue to use persistence.

Can you remaster while running live and specifying the /tmp etc to be located on an internal HDD while excluding that from the remaster?  Never had occasion to try it myself .....

regards.

Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2110
  • Rubenus Parvus MCMXCI
Re: remastering and excluding a particual user account
« Reply #2 on: October 08, 2010, 04:44:55 AM »
You indeed only excluded the home map of that user, so (I think  ::) ) that user will stay listed in /etc/passwd and /etc/group (also on the final ISO)...

Here is a (little old) post from Texstar: mypclinuxos

---------
I think the best thing you can do is make the system how you want, but having e.g. a guest-account (rename your account, and change your password)       => you can do this on another system, or in dual-boot

If you want to keep some configurations when you make a new user from your installed remaster, you have to copy them to /etc/skel/ (because that folder is copied to a new home folder when a new user is made...)

EDIT: removed duplicate link

Offline Village Idiot

  • Hero Member
  • *****
  • Posts: 2345
  • Have A Nice Day.
Re: remastering and excluding a particual user account
« Reply #3 on: October 08, 2010, 04:46:29 AM »
Thanks for the quick response. Wow. And before I forget thanks for the simplistic ease of use this is now. 12 months has passed since I played with this live-cd live, usb-stuff and I gotta tell ya.. it rocks!!

I had something similarly weird happen to me on a recent remaster but I put it down to the fact that I had not remastered for quite a long time and might have made some error in the command.

I was about to blame the Lindemans Bin 40.  ;)

Quote
It appears that maybe other references to the unwanted user also need to be excluded .....  I have no idea what or how  :)

Alternatively a remaster of the remastered system, after deleting the account would do the trick also.

Have you tried, on the USB stick, while using persistence, deleting the unwanted user through the PCLOS Control Center?

That should work, as long as you continue to use persistence.

Can you remaster while running live and specifying the /tmp etc to be located on an internal HDD while excluding that from the remaster?  Never had occasion to try it myself .....

regards.

Yeah will try that even though remastering a remaster seems a little bit incestuous..  :P

Thanks again.  :)
$ fortune
No Microsoft products were used in any way for the creation of this message.
If you are using a Microsoft product to view it, BEWARE! - I'm not
responsible for any harm you might encounter as a result.

Offline Village Idiot

  • Hero Member
  • *****
  • Posts: 2345
  • Have A Nice Day.
Re: remastering and excluding a particual user account
« Reply #4 on: October 08, 2010, 04:50:15 AM »
rubentje1991,

Thanks. I'll have a closer look.  :)
$ fortune
No Microsoft products were used in any way for the creation of this message.
If you are using a Microsoft product to view it, BEWARE! - I'm not
responsible for any harm you might encounter as a result.

Offline Village Idiot

  • Hero Member
  • *****
  • Posts: 2345
  • Have A Nice Day.
Re: remastering and excluding a particual user account
« Reply #5 on: October 08, 2010, 04:53:51 AM »
have you tried disabling (not removing, but only disabling) the account you wish not have on the remaster?

you omitted the copy of files by the command you set, but the config file has remained since the settings have not changed, nor the place of the config file (users enabled to log in)

regards

ps: havent checked yet the tex's post

Hmm. I hadn't thought of that( disabling the account) I was just adamant not to touch it for remaster purposes. I'll try johnboy's suggestion first so as not to put the account at risk cos I'm too lazy to commit it's contents to the backup server.  :P

$ fortune
No Microsoft products were used in any way for the creation of this message.
If you are using a Microsoft product to view it, BEWARE! - I'm not
responsible for any harm you might encounter as a result.

smcs_steve

  • Guest
Re: remastering and excluding a particual user account
« Reply #6 on: October 08, 2010, 05:47:43 AM »
My problem is the user account is still showing up on the login screen. Of course choosing that account causes the xserver to nose-dive and I have to ctrl-alt-backspace.
So I used this to make the ISO:
$ mylivecd --nodir=^/home/user1,/media/* name.iso

Perhaps if you were to change the user1 name&group to Guest then it might be ignored in the remaster??  (+ chown etc)
I might be way off track here but how Guest is implemented may give a clue..
>Steve

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: remastering and excluding a particual user account
« Reply #7 on: October 08, 2010, 06:02:24 AM »
Thanks for the quick response. Wow. And before I forget thanks for the simplistic ease of use this is now. 12 months has passed since I played with this live-cd live, usb-stuff and I gotta tell ya.. it rocks!!

Great to hear that the script is suitable and easy use. Thanks for letting me know.
It is still being worked on to improve some things and include extra functions.
It looks like it will be a while before it is finished to my satisfaction   ;D

Offline Village Idiot

  • Hero Member
  • *****
  • Posts: 2345
  • Have A Nice Day.
Re: remastering and excluding a particual user account
« Reply #8 on: October 08, 2010, 06:03:03 AM »
Steve,

If I ever sober up I'll try it.  :-\   ;D ;)  :)
$ fortune
No Microsoft products were used in any way for the creation of this message.
If you are using a Microsoft product to view it, BEWARE! - I'm not
responsible for any harm you might encounter as a result.

Offline Village Idiot

  • Hero Member
  • *****
  • Posts: 2345
  • Have A Nice Day.
Re: remastering and excluding a particual user account
« Reply #9 on: October 08, 2010, 06:06:45 AM »
Thanks for the quick response. Wow. And before I forget thanks for the simplistic ease of use this is now. 12 months has passed since I played with this live-cd live, usb-stuff and I gotta tell ya.. it rocks!!

Great to hear that the script is suitable and easy use. Thanks for letting me know.
It is still being worked on to improve some things and include extra functions.
It looks like it will be a while before it is finished to my satisfaction   ;D

Yeah. I know whatcha mean. Keep pickin' at it man! No one here seems to be complaining....

You'll know it when folks start asking "when will it be ready?"

 ;D
$ fortune
No Microsoft products were used in any way for the creation of this message.
If you are using a Microsoft product to view it, BEWARE! - I'm not
responsible for any harm you might encounter as a result.

Offline wayne1932

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1082
Re: remastering and excluding a particual user account
« Reply #10 on: October 09, 2010, 08:22:35 AM »
I have a small partition on my hard drive which is only for the purpose of remastering.  I started with installing the latest livecd, installed all the programs I use, set up things like I like them, then fully updated.  I left the root and guest user passwords as is, no other user. Then by running the  mylivecd program, I have a copy of my system as used. I do this once a month, or after every major update.  My data (MyDocuments, MyMusic, MyPictures,MyMiscellaneous), all resides on their own partitions so that if I have to reinstall, I will just make links to those partitions in my user system.

This way I also have a livecd of a generic system I can give to friends, relatives or family. This livecd is about 1.2GB, so it must be a DVD.  I have three dvd-rw that I use in rotation.

Yeah, I gotta agree, the new mylivecd program works great this way, no need to "exclude" a bunch of stuff. Before I update my backup, I just uninstall or install whatever has changed since my last update.
If it ain't broke, DON'T fix it!  If ya cain't fix it, ya gotta stand it.  If ya cain't stand it..............Visit the forum and search.