[Bug 445086] New: yast2-users commandline: Errors are not report correctly
https://bugzilla.novell.com/show_bug.cgi?id=445086 Summary: yast2-users commandline: Errors are not report correctly Product: openSUSE 11.1 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: schubi@novell.com QAContact: jsrain@novell.com Found By: --- For example duplicate UIDs are not report while generating a user: waerden:/srv/www/yast/lib # LANG=en.UTF-8 /sbin/yast2 users add cn="tuxtux3" grouplist=test gid=test home=/home/tuxtux3 shell=/bin/bash username=tuxtux3 uid=113 password=tuxtux batchmode waerden:/srv/www/yast/lib # echo $? 0 waerden:/srv/www/yast/lib # LANG=en.UTF-8 /sbin/yast2 users list waerden:/srv/www/yast/lib # echo $? 16 The logfile show that the UID is duplicate: 2008-11-14 14:04:44 <2> waerden(11965) [Perl] modules/UsersPasswd.pm(UsersPasswd::read_passwd):382 duplicated UID in /etc/passwd: 113 2008-11-14 14:04:44 <2> waerden(11965) [Perl] modules/UsersPasswd.pm(UsersPasswd::read_passwd):382 duplicated UID in /etc/passwd: 113 So the "add" call should report this problem. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=445086
User schubi@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=445086#c1
--- Comment #1 from Stefan Schubert
https://bugzilla.novell.com/show_bug.cgi?id=445086
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=445086
User schubi@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=445086#c2
Stefan Schubert
https://bugzilla.novell.com/show_bug.cgi?id=445086
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=445086#c3
Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=445086
User schubi@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=445086#c4
Stefan Schubert
https://bugzilla.novell.com/show_bug.cgi?id=445086
User schubi@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=445086#c5
--- Comment #5 from Stefan Schubert
https://bugzilla.novell.com/show_bug.cgi?id=445086
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=445086#c6
--- Comment #6 from Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=445086
User schubi@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=445086#c7
--- Comment #7 from Stefan Schubert
https://bugzilla.novell.com/show_bug.cgi?id=445086
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=445086#c8
Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=445086
User schubi@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=445086#c9
Stefan Schubert
https://bugzilla.novell.com/show_bug.cgi?id=445086
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=445086#c10
--- Comment #10 from Jiří Suchomel
conerning 2 Yes, you are right. With UID above 1000 it works correctly. Perhaps the question would be, why it is allowed to generate local users with UID less than 1000. I assume the UI will warn the user whereas the commandline will not do it. But it is OK for me. You see that I am not really an user expert :-) I will add a check in the webservice in order to prevent this error.
You didn't specify that the user is local, so it added a system one. This is of course possible. When you open UI, you can switch the filters to see either system/local/ldap/nis users or combination of them (custom filter)
concerning 1 After I have added a user with an UID greater than 1000 the list command has worked correctly. The meaning of the return value is new for me, but very interesting.
It actually may be a bug, I only wanted to say that if we should change it, probably more yast modules are affected. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=445086
User schubi@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=445086#c11
--- Comment #11 from Stefan Schubert
https://bugzilla.novell.com/show_bug.cgi?id=445086
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=445086#c12
--- Comment #12 from Jiří Suchomel
- Adding a user without a kind (local, system,....) parameter adds a system user
Not true. The determination whether is user local or system was done according to UID you've entered (113 < SYSTEM_UID_MAX from /etc/login.defs). If you'd not provide UID, the call without specifying type would add a local one, generating UID higher than the currently existing local UIDs.
- List all user without a kind parameter lists local users.
AFAIK it lists the users from 'custom' set, which is initially set to local userfs, but could be redefined (I'm not sure if from command line, but definitely from the UI) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=445086
User schubi@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=445086#c13
--- Comment #13 from Stefan Schubert
https://bugzilla.novell.com/show_bug.cgi?id=445086
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=445086#c14
--- Comment #14 from Jiří Suchomel
participants (1)
-
bugzilla_noreply@novell.com