Mageia insists users must be lowercase only

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Mageia insists users must be lowercase only

Postby NickC » Nov 4th, '12, 14:50

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.
NickC
 
Posts: 67
Joined: Nov 3rd, '12, 19:19
Location: Romford, Essex, England

Re: Mageia insists users must be lowercase only

Postby oj » Nov 4th, '12, 16:29

If interoperability is the issue, you can map the linux user name to the samba , aka windows user name.
oj
 
Posts: 232
Joined: Aug 23rd, '12, 00:22

Re: Mageia insists users must be lowercase only

Postby doktor5000 » Nov 4th, '12, 16:42

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)
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18058
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Mageia insists users must be lowercase only

Postby NickC » Nov 4th, '12, 17:04

Interesting that, MixedCase users can be added from the command line but not from Mageia Control Center. Is this considered a bug in MCC?
NickC
 
Posts: 67
Joined: Nov 3rd, '12, 19:19
Location: Romford, Essex, England

Re: Mageia insists users must be lowercase only

Postby doktor5000 » Nov 4th, '12, 17:51

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18058
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Mageia insists users must be lowercase only

Postby NickC » Nov 5th, '12, 13:29

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.
NickC
 
Posts: 67
Joined: Nov 3rd, '12, 19:19
Location: Romford, Essex, England

Re: Mageia insists users must be lowercase only

Postby doktor5000 » Nov 5th, '12, 21:27

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18058
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Mageia insists users must be lowercase only

Postby junk_no_spam » Nov 6th, '12, 10:06

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 **********************************************
junk_no_spam
 
Posts: 32
Joined: Jan 26th, '12, 19:30


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest