Page 1 of 1

Mageia insists users must be lowercase only

PostPosted: Nov 4th, '12, 14:50
by NickC
Only a very minor gripe but having just done my first Mageia install the only issue that stands out is that Mageia insists on usernames being lowercase only.

I know that doing everything in lowercase is very much a Linux thing but even the rather staid CentOS allows mixed case usernames. That lets us keep the same (mixed-case) username that we have in Windows.

Re: Mageia insists users must be lowercase only

PostPosted: Nov 4th, '12, 16:29
by oj
If interoperability is the issue, you can map the linux user name to the samba , aka windows user name.

Re: Mageia insists users must be lowercase only

PostPosted: Nov 4th, '12, 16:42
by doktor5000
Depends which tool you used. In general it's not problem to add such a user. See man-pages of useradd f.ex.

Code: Select all
[doktor5000@Mageia2 ~]$ sudo useradd UPPERCase
[doktor5000@Mageia2 ~]$ id UPPERCase
uid=502(UPPERCase) gid=502(UPPERCase) Gruppen=502(UPPERCase)

Re: Mageia insists users must be lowercase only

PostPosted: Nov 4th, '12, 17:04
by NickC
Interesting that, MixedCase users can be added from the command line but not from Mageia Control Center. Is this considered a bug in MCC?

Re: Mageia insists users must be lowercase only

PostPosted: Nov 4th, '12, 17:51
by doktor5000
Well, the question would be what is the thought behind not allowing uppercase characters for usernames via userdrake ...
But you could report it and see what comes out of it.

Re: Mageia insists users must be lowercase only

PostPosted: Nov 5th, '12, 13:29
by NickC
Just had a go at reporting this as a bug but reporting system requires me to specify which RPM package this is related to. How can I find out which RPM Mageia Control Center comes from?

Edit:
Now found a 'Report bug' option on the help menu which I didn't know was there. This revealed that the package in question is 'userdrake'. Bug now reported.

Re: Mageia insists users must be lowercase only

PostPosted: Nov 5th, '12, 21:27
by doktor5000
FWIW you can use the which command to find out the full path of a program, and then rpm -qf on that full path to see which package this comes from.
In this case you could have done:
Code: Select all
rpm -qf $(which userdrake)


This is also contained on the wiki page with the instructions:

https://wiki.mageia.org/en/How_to_report_a_bug_properly#Reporting_a_New_Bug wrote:Source RPM: This is where you can identify exactly which RPM package is involved in this bug report. For instance, if you know the problem you are having is with the program mysqld, then execute rpm -qif /usr/sbin/mysqld. This will tell you the name and version of the RPM package (i.e. MySQL-5.0.27-1mga1) as well as other information. In particular, you are looking for the "Source RPM" field (i.e. MySQL-5.0.27-1mga1.src.rpm) -- this is the information you should provide here. Alternatively, you may use rpm -qf /usr/sbin/mysqld --qf '%{SOURCERPM}\n' to obtain the information. If you do not know the location of the program in question, use rpm -qf `which mysqld` to obtain it.

Re: Mageia insists users must be lowercase only

PostPosted: Nov 6th, '12, 10:06
by junk_no_spam
NickC wrote:Just had a go at reporting this as a bug but reporting system requires me to specify which RPM package this is related to. How can I find out which RPM Mageia Control Center comes from?


Some times you can enable the Display Logs feature under Options tab found on the mcc screen and see the name of the app mcc is calling/using.

For any other file/app/... I run the following script I created.

Code: Select all
#!/bin/bash
#*****************************************************************************
#*
#* get_src_rpm - get pkg and source rpm name for application or file
#*               to use during bug reporting.
#*
#* Install: chmod +x get_src_rpm
#*
#*****************************************************************************

    set -u
    _exe=$0

    if [ $# -ne 1 ] ; then
      echo "
        Usage:  $_exe app_name or full file spec
        Examples:
        $_exe xterm
        $_exe /usr/share/applications/kde4/kplayer.desktop
      "
      exit 1
    fi

    _arg1=$1

    _char1="${_arg1:0:1}"
    if [ "$_char1" = "/" ] ; then
      _fn=$_arg1
    else   # user gave an app name. Lets see if we can find it.
      which $_arg1 > /dev/null 2>&1
      if [ $? -ne 0 ] ; then   # nope, tell user we can not find it.
        echo " "
        which $_arg1
        exit 1
      fi

      _fn="$(which $_arg1)"
    fi

    echo "
      Install rpm: $(rpm -qf $_fn )
      $(rpm --query --queryformat 'Source rpm: %{SOURCERPM}' --file $_fn )
    "

#************** end get_src_rpm **********************************************