Do not use KUser to add a user in KDE 4 [Solved]

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Do not use KUser to add a user in KDE 4 [Solved]

Postby Fitzcarraldo » Sat Feb 19, 2011 18:38

KUser has not worked since KDE 4.1 and is still not working for users of KDE 4.6 (see the thread Rights issue. Users can login without a password as root.).

Use superadduser instead. It's in Portage. It's very easy to use.

To install superadduser: (EDIT: See my note at the end of this post)

Code: Select all
# equo install git # This is needed because the Sabayon overlay uses Git
# emerge --sync
# layman -a sabayon # Do not worry if a message says it is already added.
# layman -S
# emerge -1v superadduser
# equo rescue spmsync

Here is an actual example, when I added a new user (which I named "mediacentre") to my media centre nettop:

Code: Select all
$ # Find out which groups I belong to:
$ groups
disk wheel floppy uucp cron audio cdrom dialout video games cdrw usb users haldaemon scanner plugdev entropy pulse-access pulse-rt pulse vboxusers crontab polkituser
$ # Now log in as root user and run superadduser:
$ su
Password:
# superadduser

Login name for new user []: mediacentre

User ID ('UID') [ defaults to next available ]:

Initial group [ users ]:

Additional groups (comma separated) []: disk,wheel,floppy,uucp,cron,audio,cdrom,dialout,video,games,cdrw,usb,haldaemon,scanner,plugdev,entropy,pulse-access,pulse-rt,pulse,vboxusers,crontab,polkituser

Home directory [ /home/mediacentre ]

Shell [ /bin/bash ]

Expiry date (YYYY-MM-DD) []:

New account will be created as follows:

---------------------------------------
Login name.......:  mediacentre
UID..............:  [ Next available ]
Initial group....:  users
Additional groups:  disk,wheel,floppy,uucp,cron,audio,cdrom,dialout,video,games,cdrw,usb,haldaemon,scanner,plugdev,entropy,pulse-access,pulse-rt,pulse,vboxusers,crontab,polkituser
Home directory...:  /home/mediacentre
Shell............:  /bin/bash
Expiry date......:  [ Never ]

This is it... if you want to bail out, hit Control-C.  Otherwise, press
ENTER to go ahead and make the account.


Creating new account...


Changing the user information for mediacentre
Enter the new value, or press ENTER for the default
        Full Name []: mediacentre
        Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:
New password:
Retype new password:
BAD PASSWORD: it is based on a dictionary word
passwd: password updated successfully


Account setup complete.
# id mediacentre
uid=1001(mediacentre) gid=100(users) groups=100(users),6(disk),10(wheel),11(floppy),14(uucp),16(cron),18(audio),19(cdrom),20(dialout),27(video),35(games),80(cdrw),85(usb),411(haldaemon),441(scanner),442(plugdev),1003(pulse-access),1004(pulse-rt),1005(pulse),1009(vboxusers),1010(crontab),1000(entropy),1019(polkituser)
# id fitzcarraldo
uid=1000(fitzcarraldo) gid=100(users) groups=100(users),6(disk),10(wheel),11(floppy),14(uucp),16(cron),18(audio),19(cdrom),20(dialout),27(video),35(games),80(cdrw),85(usb),411(haldaemon),441(scanner),442(plugdev),1003(pulse-access),1004(pulse-rt),1005(pulse),1009(vboxusers),1010(crontab),1000(entropy),1019(polkituser)
#


EDIT: superadduser has now been added to the Entropy repository, so installing it is even easier for Entropy users. Instead of the installation instructions I gave above, all you need to do to install superadduser is:

Code: Select all
# equo install superadduser
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7335
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Do not use KUser to add a user in KDE 4

Postby gabvil » Mon Apr 18, 2011 1:37

Excellent tip ! Worked flaweslly, thanks Fitzcarraldo :D
·Intel e2180@2.0/2Gb Ram/160Gb/82945GZ/Sabayon Mate 13.04 x64 @work X2
·Intel e2130@1.7/2Gb Ram/250Gb/x3100 GM965/Sabayon Mate 13.04 x64 @lappy
·Intel e5200@2.5/2Gb Ram/800 Gb/Zotac 8400GS-512Mb-HDMI/Sabayon Mate 13.04 x64 @HTPC
User avatar
gabvil
Simple Hen
 
Posts: 88
Joined: Tue Sep 28, 2010 22:27
Location: Canelones, Uruguay

Re: Do not use KUser to add a user in KDE 4

Postby balon » Fri Apr 29, 2011 12:14

Is possible to install superadduser via Entropy?

I don't want to use Portage.
balon
Baby Hen
 
Posts: 5
Joined: Thu Apr 21, 2011 18:37

Re: Do not use KUser to add a user in KDE 4

Postby raman » Fri Apr 29, 2011 17:16

So I have one question, why KDE use kuser, if this soft is broken?
raman
Advanced Hen
 
Posts: 235
Joined: Mon Sep 06, 2010 17:18
Location: Poland

Re: Do not use KUser to add a user in KDE 4

Postby Fitzcarraldo » Sun May 01, 2011 16:50

balon wrote:Is possible to install superadduser via Entropy?

I don't want to use Portage.

It won't do you any harm to install it via Portage. But if you are nervous, file a request to add the package to the Entropy repository (click on the link Bugs at the top of this page to do so).
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7335
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Do not use KUser to add a user in KDE 4

Postby Fitzcarraldo » Sun May 01, 2011 16:50

raman wrote:So I have one question, why KDE use kuser, if this soft is broken?

They simply have not got around to fixing it yet. Some bugs in Linux are fixed quickly, others are not fixed for years.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7335
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Do not use KUser to add a user in KDE 4

Postby Ecky » Tue Nov 22, 2011 11:37

Interesting

Anyone know what the problem with kuser is?

I used kuser on a recent arch install and didn't notice anything going wrong ... yet anyway

Reason I ask isn't that I'm an arch fanboi, arch and sabayon are two distros that I decided to try out a couple of days ago after playing with suse tumbleweed for a bit and installed them both on the same machine in the same day

I'm about to reinstall sabayon after having broken it once already, breaking stuff's my one god-given talent so anything that helps me avoid breaking it again has to be worth checking out
Ecky
Baby Hen
 
Posts: 6
Joined: Tue Nov 22, 2011 2:28

Re: Do not use KUser to add a user in KDE 4

Postby Fitzcarraldo » Mon Aug 27, 2012 1:59

According to user anomaly65 ( viewtopic.php?f=59&t=27822), KUser in KDE 4.9 is working OK.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7335
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Do not use KUser to add a user in KDE 4

Postby raman » Mon Aug 27, 2012 8:12

Lol at last
raman
Advanced Hen
 
Posts: 235
Joined: Mon Sep 06, 2010 17:18
Location: Poland


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: anomaly65 and 3 guests