Bug 223303

Summary: can't remove user with yast
Product: [openSUSE] openSUSE 10.2 Reporter: Stephan - <hi-du>
Component: YaST2Assignee: Jiří Suchomel <jsuchome>
Status: RESOLVED INVALID QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: Beta 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: /var/log/YaST2

Description Stephan - 2006-11-22 17:58:44 UTC
y2log means:

2006-11-22 18:56:49 <3> linux(6055) [YCP] Report.ycp:484 Dieser Benutzer kann nicht gelöscht werden, da er
zurzeit angemeldet ist.
Melden Sie den Benutzer zunächst ab.

That's wrong.. this user isn't login in this system.
Comment 1 Cyril Hrubis 2006-11-23 12:02:59 UTC
Can you please attach whole y2logs. If you are in doubt please follow http://en.opensuse.org/Bugs/YaST but i suppose you know what to do.


Thanks!
Comment 2 Stephan - 2006-11-23 21:46:13 UTC
Created attachment 106779 [details]
/var/log/YaST2
Comment 3 Jiří Suchomel 2006-11-24 09:52:29 UTC
Why do you think it is wrong?
What does "ps --no-headers -u <username>" report at the time you want to delete it? The output of this command is used to check if user is somehow present in the system.
Comment 4 Stephan - 2006-11-24 18:52:30 UTC
ps --no-headers -u system

5773 ?        00:00:00 dbus-daemon
Comment 5 Stephan - 2006-11-25 12:25:10 UTC
I think here's the problem the username 'system'
Comment 6 Jiří Suchomel 2006-11-27 07:56:42 UTC
Yes, look's like. How did you add it? dbus-daemon should be run by messagebus user - did you added 'system' user and changed its UID?
Comment 7 Stephan - 2006-11-27 10:15:00 UTC
noo.. I added this user with yast.. that's all.

I only changed the group rights for another user with yast. I added this another user to uucp and cyberjack (card reader). 

At the moment I'm not on this computer, so I check this later.
Comment 8 Jiří Suchomel 2006-11-27 10:17:52 UTC
Anyway, this is not yast2-users problem - ps reports there is process running by your user so you cannot delete it.
Comment 9 Stephan - 2006-11-27 18:48:46 UTC
ok and now? should I open a new bug report?
Comment 10 Jiří Suchomel 2006-11-28 06:45:15 UTC
I'm not sure for what - that dbus-daemon is run as user 'system'? Is it? What is uid of that user?
Comment 11 Stephan - 2006-11-28 22:13:14 UTC
/etc/passwd:
...
messagebus:x:100:101:User for D-Bus:/var/run/dbus:/bin/false
system:x:1002:100:System:/home/system:/bin/bash
Comment 12 Stephan - 2006-11-28 22:20:04 UTC
ps u -u system:
system    4986  0.0  0.1   3776   544 ?        Ss   22:57   0:00 /usr/bin/dbus-daemon --fork --print-pid 4 --print-address 6 --session
Comment 13 Jiří Suchomel 2006-11-29 08:37:34 UTC
I don't know. Maybe dbus maintainer can help?