Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.raspberry-pi > #9534 > unrolled thread

How do I change the GUI login user?

Started bycl@isbd.net
First post2015-09-05 18:24 +0100
Last post2015-09-28 19:25 +0100
Articles 3 — 2 participants

Back to article view | Back to comp.sys.raspberry-pi


Contents

  How do I change the GUI login user? cl@isbd.net - 2015-09-05 18:24 +0100
    Re: How do I change the GUI login user? "A. Dumas" <alexandre@dumas.fr.invalid> - 2015-09-05 20:33 +0200
      Re: How do I change the GUI login user? cl@isbd.net - 2015-09-28 19:25 +0100

#9534 — How do I change the GUI login user?

Fromcl@isbd.net
Date2015-09-05 18:24 +0100
SubjectHow do I change the GUI login user?
Message-ID<24lrbc-p16.ln1@esprimo.zbmc.eu>
A simple question but I can't find how to do it.

I want to change the user that logs in to the Pi GUI.  This is on a
new raspbian installation.  I don't care too much if it logs me in
automatically as the new user or if I have to enter name and password. 


-- 
Chris Green
·

[toc] | [next] | [standalone]


#9535

From"A. Dumas" <alexandre@dumas.fr.invalid>
Date2015-09-05 20:33 +0200
Message-ID<55eb355e$0$23742$e4fe514c@news.xs4all.nl>
In reply to#9534
On 05/09/2015 19:24, cl@isbd.net wrote:
> A simple question but I can't find how to do it.
>
> I want to change the user that logs in to the Pi GUI.  This is on a
> new raspbian installation.  I don't care too much if it logs me in
> automatically as the new user or if I have to enter name and password.

# Add a new user "newname":
sudo adduser newname
# Edit user rights, duplicate last line, replace pi with newname:
sudo visudo
# Add newname to all the same groups as pi, except group pi:
for i in $(groups pi | sed 's/.*: //' | sed 's/^pi //'); do sudo adduser 
newname $i; done
# Use newname for GUI login, edit: autologin-user=newname
sudo nano /etc/lightdm/lightdm.conf

[toc] | [prev] | [next] | [standalone]


#9715

Fromcl@isbd.net
Date2015-09-28 19:25 +0100
Message-ID<1adodc-tc5.ln1@esprimo.zbmc.eu>
In reply to#9535
A. Dumas <alexandre@dumas.fr.invalid> wrote:
> On 05/09/2015 19:24, cl@isbd.net wrote:
> > A simple question but I can't find how to do it.
> >
> > I want to change the user that logs in to the Pi GUI.  This is on a
> > new raspbian installation.  I don't care too much if it logs me in
> > automatically as the new user or if I have to enter name and password.
> 
> # Add a new user "newname":
> sudo adduser newname
> # Edit user rights, duplicate last line, replace pi with newname:
> sudo visudo
> # Add newname to all the same groups as pi, except group pi:
> for i in $(groups pi | sed 's/.*: //' | sed 's/^pi //'); do sudo adduser 
> newname $i; done
> # Use newname for GUI login, edit: autologin-user=newname
> sudo nano /etc/lightdm/lightdm.conf
> 
Brilliant, thank you, all done and working. (Well, I edited /etc/group
directly but near enough)

-- 
Chris Green
·

[toc] | [prev] | [standalone]


Back to top | Article view | comp.sys.raspberry-pi


csiph-web