Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Logging error

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
pershing
Posts: 3
Joined: 2017-05-12 13:36

Logging error

#1 Post by pershing »

I play a bit with Debian configuration. I created a user named "athos", however I messed somthing up with his configuration files. As a resutl when I log in as "athos" I obtain error:

Code: Select all

-sh: 2: export: 12: bad variable name
Also when I type "su - athos" I get

Code: Select all

-su: 2: export: 12: bad variable name
Additonally the promt sign is only "$" with nothing before it, up arrorw does not provide previously typed commands and tab completition does not work.
I do not expect that somebody is going to tell me what is exactly wrong, but at least can someone help me understand that error?
Thanks for your help.

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

Re: Logging error

#2 Post by phenest »

If you're referring to logging in via a command prompt, then check ~/.bashrc for errors.
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

pershing
Posts: 3
Joined: 2017-05-12 13:36

Re: Logging error

#3 Post by pershing »

Yes, I refer to logging in via a command prompt. The ~/.bashrc is unchanged, it is the same as .bashrc of other users.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Logging error

#4 Post by debiman »

post the contents of both users' ~/.bashrc and ~/.profile files.

also, how did you create the new user? exact commands issued.

pershing
Posts: 3
Joined: 2017-05-12 13:36

Re: Logging error

#5 Post by pershing »

I have found a solution. The problem was in the way how I added that user. The command was:
# useradd –m –G cdrom,floppy,audio,dip,video,plugdev,netdev,bluetooth athos
I found it in Archlinux wiki https://wiki.archlinux.org/index.php/users_and_groups

There is no problem when I add user using:
# adduser athos
And then add him to groups by:
# usermod -aG cdrom,floppy,audio,dip,video,plugdev,netdev,bluetooth athos

Problem solved, thanks for your help :D

Post Reply