Choose style:

Author Topic: Issues creating new user account [SOLVED]  (Read 2013 times)

0 Members and 1 Guest are viewing this topic.

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4888
  • Karma: 1042
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Issues creating new user account [SOLVED]
« on: February 17, 2015, 01:46:15 pm »
Hi everyone, howís it going?  Iím in the process of setting up Peppermint on my sisterís and brother-in-lawís old computer.  The installation has gone perfectly.  I now want to set up separate accounts for them.  I had some questions regarding this.  These were answered in this link: http://forum.peppermintos.com/index.php/topic,1540.msg13963.html#msg13963.  I have been practicing on my own computer before doing this on theirs.  I found some anomalies that I would like help with.

I created a new-user account using the GUI interface: Users and Groups.  I gave the new-user full admin privileges.  I then login to the new account.  I have uninstalled Chromium Browser and replaced it with Google Chrome.  For this reason I want to edit:
Code: [Select]
~/.config/lxpanel/Peppermint/panels/panel
In the new user account, this file does not exist locally. The account seems to be drawing directly from:
Code: [Select]
/usr/share/lxpanel/profile/Peppermint/panels/panel
I have to copy this to the new userís /home
Code: [Select]
sudo cp -rv /usr/share/lxpanel/profile/Peppermint/panels/panel ~/.config/lxpanel/Peppermint/panels/panel
and then
Code: [Select]
sudo chown -R <new-user>:<new-user> ~/.config/lxpanel/Peppermint/panels/panel
I can now edit the file.

I then logout and back in to my original account.  I then try to delete the new-user account using the the GUI, Users and Groups.  Delete is selected and the admin password is entered.  I choose to remove everything.  The new user account appears to be deleted.  However when
Code: [Select]
/home
is checked, the new-user folder is still there.  I have to go back into, Users and Groups where I find the, new-user account has reappeared in the list.  I have to change it to a, Desktop user account and repeatedly remove the account.  Even then I have to  remove the new-user folder from the terminal.   I have tried this several times and it is repeatable.  This canít be normal.  I am wondering why Peppermint is behaving like this?  Many thanks  ;).
« Last Edit: February 17, 2015, 04:47:22 pm by AndyInMokum »
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 2885
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Issues creating new user account
« Reply #1 on: February 17, 2015, 02:08:14 pm »
Deleting a user account has always worked for me via "Users & Groups"  :-\

What happens if you try it from the command line:

sudo userdel -r <username>

eg.
Code: [Select]
sudo userdel -r new-user
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4888
  • Karma: 1042
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: Issues creating new user account
« Reply #2 on: February 17, 2015, 03:08:29 pm »
Okay, I have created a new account named: bigfoot.  I have given this account full administrative privileges.  I logged into the account bigfoot and made no alterations.  Logged out and logged back into my regular account.  In the terminal window, I have tried to delete the account: bigfoot.  See the command and output:
Code: [Select]
andy@AMILO-Li3710 ~ $ sudo userdel -r bigfoot
[sudo] password for andy:
userdel: user bigfoot is currently used by process 19350
andy@AMILO-Li3710 ~ $
It appears that the account: bigfoot has not been closed at logout.  Weird eh  :-\.
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 2885
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Issues creating new user account
« Reply #3 on: February 17, 2015, 03:29:48 pm »
Yeah I got that, and if I ran:
Code: [Select]
ps 19350
it was some kind of ssh process.

I rebooted, then ran:
Code: [Select]
sudo userdel -r bigfoot
again .. and it was gone.



Theoretically, rather than rebooting you could kill the process with:
Code: [Select]
sudo kill 19350
then run:
Code: [Select]
sudo userdel -r bigfoot

Another option may be to kill ALL processes owned by bigfoot:
Code: [Select]
sudo killall -u bigfoot 
« Last Edit: February 17, 2015, 03:40:40 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4888
  • Karma: 1042
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: Issues creating new user account
« Reply #4 on: February 17, 2015, 04:15:49 pm »
Yeah, that works.  This is the output I received:
Code: [Select]
andy@AMILO-Li3710 ~ $ sudo userdel -r bigfoot
[sudo] password for andy:
userdel: bigfoot mail spool (/var/mail/bigfoot) not found
userdel: bigfoot home directory (/home/bigfoot) not found
andy@AMILO-Li3710 ~ $
I guess this is normal.  How about the missing panel file in the <new-user> account?
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 2885
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Issues creating new user account
« Reply #5 on: February 17, 2015, 04:24:54 pm »
That's happening to me too .. I just run:
Code: [Select]
mkdir -p  ~/.config/lxpanel/Peppermint/panels
then
Code: [Select]
cp -v /usr/share/lxpanel/profile/Peppermint/panels/panel ~/.config/lxpanel/Peppermint/panels/panel
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4888
  • Karma: 1042
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: Issues creating new user account
« Reply #6 on: February 17, 2015, 04:46:43 pm »
Cool, it's great to know I haven't broken anything.  The process is a little confusing if you have never done it before.  I'm sure other people doing this for the first time will find this thread useful too.  Thanks a lot for the help  ;)!!
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 2885
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Issues creating new user account [SOLVED]
« Reply #7 on: February 17, 2015, 04:50:49 pm »
No problem Andy :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Slim.Fatz

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1924
  • Karma: 507
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: Issues creating new user account [SOLVED]
« Reply #8 on: February 18, 2015, 03:18:05 am »
Hi Andy,

I remember having to go through the same steps with the panel, etc when adding a new user back in a previous release of Peppermint. Since this thread might not be seen or found by future new users of Peppermint I would like to suggest that when you find time between helping solve so many questions here on the forum that you try to write up a User Tutorial about adding additional user accounts to Peppermint.

Thanks in advance,

-- Slim
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 2885
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Issues creating new user account [SOLVED]
« Reply #9 on: February 18, 2015, 11:22:41 am »
looking into a possible fix for the panel config not getting copied across to new accounts ;)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4888
  • Karma: 1042
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: Issues creating new user account [SOLVED]
« Reply #10 on: February 18, 2015, 11:42:17 am »
looking into a possible fix for the panel config not getting copied across to new accounts ;)

Yeah, that's a great idea.  It is strange that Ubuntu have missed this out.  Especially as it is meant to be a multi-user OS  :-\.
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4888
  • Karma: 1042
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: Issues creating new user account [SOLVED]
« Reply #11 on: February 20, 2015, 04:04:27 am »
Hi Andy,...............I would like to suggest that when you find time between helping solve so many questions here on the forum that you try to write up a User Tutorial about adding additional user accounts to Peppermint.

Yeah, that's a great idea.  It can really throw you a curved ball the first time you do it.  I've got it on the back burner while I wait until Kendall gives the thumbs up or down for Mark to make a permanent fix.
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.