Logging error

New to Debian (Or Linux in general)? Ask your questions here!

Logging error

Postby pershing » 2017-05-12 14:15

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.
pershing
 
Posts: 3
Joined: 2017-05-12 13:36

Re: Logging error

Postby phenest » 2017-05-12 15:24

If you're referring to logging in via a command prompt, then check ~/.bashrc for errors.
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: Logging error

Postby pershing » 2017-05-12 18:40

Yes, I refer to logging in via a command prompt. The ~/.bashrc is unchanged, it is the same as .bashrc of other users.
pershing
 
Posts: 3
Joined: 2017-05-12 13:36

Re: Logging error

Postby debiman » 2017-05-13 10:36

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

also, how did you create the new user? exact commands issued.
User avatar
debiman
 
Posts: 1519
Joined: 2013-03-12 07:18

Re: Logging error

Postby pershing » 2017-05-13 12:11

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
pershing
 
Posts: 3
Joined: 2017-05-12 13:36


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable