You are not logged in.

#1 2016-01-28 18:19:31

j1simon
Member
From: Denmark
Registered: 2016-01-28
Posts: 189

[SOLVED] logname: no login name

I have installed Arch Linux yesterday with Gnome, GDM and NVIDIA proprietary driver.
I have to install NVIDIA proprietary driver because with Nouveau when I close the Gnome session, the PC hangs. I had the same problem with Fedora 23.

The problem is logname: 'logname: no login name'. This problem occurs with gnome-terminal, terminator and vte but it works well in xterm. I have searched for this error but the info that I've found it doesn't help me. I use Fish shell and when it starts up call that command.

Last edited by j1simon (2016-01-29 09:57:53)

Offline

#2 2016-01-28 23:48:39

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: [SOLVED] logname: no login name

j1simon wrote:

I use Fish shell and when it starts up call that command.

What "command" does fish call?


Matt

"It is very difficult to educate the educated."

Offline

#3 2016-01-29 00:13:06

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,901
Website

Re: [SOLVED] logname: no login name

^ logname. tongue

The question is, why does it call that? Have you told it to? A fresh install of fish on my system does not call logname when I run it. If you have told it to run it, why have you? I get the same message when I run logname manually, but for the life of me I can't see the point in the utility when 'whoami' and 'echo $USER' report the name information that this utility is supposedly supposed to.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2016-01-29 00:33:33

j1simon
Member
From: Denmark
Registered: 2016-01-28
Posts: 189

Re: [SOLVED] logname: no login name

I see the code and the problem was a prompt from Oh-my-fish:

 ...
   # Test user type:
    if [ $USER = "root" ]
        # User is root.
        set color "red"
    else if [ $USER != (logname) ]
         # User is not login user.
        set color "yellow"
    else
        # User is normal (well ... most of us are).
        set color "green"
    end
....

I have commented that code.

Offline

#5 2016-01-29 05:17:17

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] logname: no login name

@j1simon, so the problem is solved then? If yes, then please mark your thread as solved.

Offline

Board footer

Powered by FluxBB