Author Topic: change /guest account [SOLVED]  (Read 1344 times)

Offline ff103

  • Hero Member
  • *****
  • Posts: 711
    • The City Of Paintsville, Ky.
change /guest account [SOLVED]
« on: January 11, 2012, 05:08:55 PM »
I don't know if this is the right place and I didn't know what to search, but since I started with a re-master, I thought I would try here. Please move this if it needs to be somewhere else. O K here we go, I had a hard drive failure on my brand new 10 day old computer, and I did a re-install from a re-master that I made just prior to that just in case something like that happened. I made the re-master of a guest account I created because my /home/ray was 17 gigs and I couldn't figure out how to exclude everything so I just made a /guest account and did the re-master of that in order to retain all my installed programs. I re-installed from my remaster and I deleted user "ray" since he had no /home, BUT, (finally I get to my question) is there a way to change /home/guest, back to /home/ray ? everything went well and all is back up and running but I guess it just bugs me not to see /home/ray after all these years. Thanks for any help.
« Last Edit: January 19, 2012, 12:50:48 PM by ff103 »
If Firefighters died and went to hell, they would just put it out!

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: change /guest account
« Reply #1 on: January 11, 2012, 06:06:29 PM »
 ??? If you excluded /home/ray from your remaster, it will not be on your livecd. After installing from your remastered livecd, on first boot the guest account will be deleted and new root password and user set up will be run. This is how it works. If guest was not removed and you were not asked to create a new user account on first boot, you have a corrupted remaster.     

Offline ff103

  • Hero Member
  • *****
  • Posts: 711
    • The City Of Paintsville, Ky.
Re: change /guest account
« Reply #2 on: January 11, 2012, 06:38:13 PM »
??? If you excluded /home/ray from your remaster, it will not be on your livecd. After installing from your remastered livecd, on first boot the guest account will be deleted and new root password and user set up will be run. This is how it works. If guest was not removed and you were not asked to create a new user account on first boot, you have a corrupted remaster.     
Thanks for the reply Neal, well, i'm not sure how I did it then, I booted my live dvd remaster and then ran draklive install, and installed the remaster to the HD.with a user of ray and guest, but of course ray had no /home,and I deleted user ray,  but I do have a fully functioning /guest account as far as I can tell.also my same root password works, so I don't know what to think.
If Firefighters died and went to hell, they would just put it out!

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: change /guest account
« Reply #3 on: January 11, 2012, 07:47:31 PM »
Hi ff103,

Is there anything you can't do with PCLinuxOS ? Of course no.  :D

1) login as root and goto Control Center -> System -> Manage Users   
2) delete the user "guest"    and do not delete the home directory and the mailbox;
3) add the new user "ray"    and do not create a new home directory
4) open a terminal and type (copy & paste suggested)  the following commands:

Code: [Select]

mv  /home/guest  /home/ray
chown  -R  ray:ray  /home/ray

mv  /var/spool/mail/guest  /var/spool/mail/ray
chown  -R  ray:ray  /var/spool/mail/ray


5) log out and re login as "ray"

AS

Online johnmart

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1105
  • Make Love Not War
Re: change /guest account
« Reply #4 on: January 11, 2012, 09:41:19 PM »
I think I did that before, but it was way more complicated.
That is a good simple tip.  ;D
Acer Aspire, Intel core2 2.20GHz, ‎Graphics nVidia ‎G98M [GeForce G 105M], 2gb ram, Wireless Intel Link 5100

Why, any 5 year old child could understand this.
Somebody bring me a 5 year old.
Groucho

Offline ff103

  • Hero Member
  • *****
  • Posts: 711
    • The City Of Paintsville, Ky.
Re: change /guest account
« Reply #5 on: January 17, 2012, 02:48:55 PM »
Well as they say maybe a picture will be worth a thousand words.




as you can see user is "ray" but group is guest and my home folder is /home/guest  instead of /home/ray .  when I log into my desktop, I log in with user/ray and ray's password, but when I get to desktop and click on my home folder, I get /home/guest. Clear as mud now, I appreciate any help, I may need to just start over. 
If Firefighters died and went to hell, they would just put it out!

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: change /guest account
« Reply #6 on: January 17, 2012, 03:05:33 PM »
Well as they say maybe a picture will be worth a thousand words.

[ pics omitted]

as you can see user is "ray" but group is guest and my home folder is /home/guest  instead of /home/ray .  when I log into my desktop, I log in with user/ray and ray's password, but when I get to desktop and click on my home folder, I get /home/guest. Clear as mud now, I appreciate any help, I may need to just start over. 

Please follow the updated instructions:

1) login as root and goto Control Center -> System -> Manage Users   
2) delete the user "ray"    and do not delete the home directory and the mailbox;
3) add the new user "ray"    and do not create a new home directory
4) open a terminal and type (copy & paste suggested)  the following commands:

Code: [Select]

mv  /home/guest  /home/ray
chown  -R  ray:ray  /home/ray



5) log out and re login as "ray"


The only critical point is the number (2) delete the user, but do not delete the current home directory: when you select the user "ray", and then you click on 'Delete', a dialog windows will ask you if you want to remove the home directory, clearly you don't have to delete it. In case of any further doubt, please ask.

If you have a current backup of your /home, you will be however 'safe'  ;)

AS

Offline ff103

  • Hero Member
  • *****
  • Posts: 711
    • The City Of Paintsville, Ky.
Re: change /guest account
« Reply #7 on: January 18, 2012, 05:49:57 AM »
Thanks as, that seems to have worked for the most part, except that now when I click on my "home" icon on the desktop or taskbar dolphin opens to  /home/guest instead of /home/ray. If I click on /root in the left pane,then home, then "ray", I get  /home/ray  with all the folders intact. How do I change the path to /home /ray?  I really appreciate your time on this, Thank you.
If Firefighters died and went to hell, they would just put it out!

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: change /guest account
« Reply #8 on: January 18, 2012, 06:06:09 AM »
Thanks as, that seems to have worked for the most part, except that now when I click on my "home" icon on the desktop or taskbar dolphin opens to  /home/guest instead of /home/ray. If I click on /root in the left pane,then home, then "ray", I get  /home/ray  with all the folders intact. How do I change the path to /home /ray?  I really appreciate your time on this, Thank you.

open dolphin -> Settings -> Configure Dolphin
you should see something like "Location: file///home/guest"
edit the home location and change it to "file:///home/ray"



Offline ff103

  • Hero Member
  • *****
  • Posts: 711
    • The City Of Paintsville, Ky.
Re: change /guest account
« Reply #9 on: January 18, 2012, 06:29:21 AM »
well, that was easy enough, now I will wait to see what issues I have with programs that used /home/guest for anything. I just tried digikam and it complained about the "database", I fixed that, but don't know yet what else will complain. I am closer than I was yesterday thanks to As. Thank you As. I think I have another issue with digikam though, I will post that in the software section.
If Firefighters died and went to hell, they would just put it out!

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: change /guest account
« Reply #10 on: January 18, 2012, 06:35:48 AM »
well, that was easy enough, now I will wait to see what issues I have with programs that used /home/guest for anything. I just tried digikam and it complained about the "database", I fixed that, but don't know yet what else will complain. I am closer than I was yesterday thanks to As. Thank you As. I think I have another issue with digikam though, I will post that in the software section.

Glad it's "mostly" working!  Don't think that you'll experience many other issues ... in case ... just ask  ;)

AS

Offline ff103

  • Hero Member
  • *****
  • Posts: 711
    • The City Of Paintsville, Ky.
Re: change /guest account
« Reply #11 on: January 19, 2012, 12:50:15 PM »
well so far all seems to be in good working order, /home/ray is back and /home/guest has left. everything seems to be working as it should. Thank you As for your invaluable assistance, I could not have done that with out your help . Thank you. I shall mark this solved.
If Firefighters died and went to hell, they would just put it out!

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: change /guest account
« Reply #12 on: January 19, 2012, 12:58:45 PM »
well so far all seems to be in good working order, /home/ray is back and /home/guest has left. everything seems to be working as it should. Thank you As for your invaluable assistance, I could not have done that with out your help . Thank you. I shall mark this solved.
:)  ;)