New user, cant access ssh, python errors


#1

When I try to log on from my account with

su "username"
it gives me this garble:

Traceback (most recent call last):
File “/usr/bin/lshell”, line 52, in
main()
File “/usr/bin/lshell”, line 38, in main
userconf = CheckConfig(args).returnconf()
File “/usr/lib/python3/dist-packages/lshell/checkconfig.py”, line 71, in init
self.get_config()
File “/usr/lib/python3/dist-packages/lshell/checkconfig.py”, line 286, in get_config
self.get_config_sub(‘default’)
File “/usr/lib/python3/dist-packages/lshell/checkconfig.py”, line 316, in get_config_sub
conf = self.config.items(section) + conf
File “/usr/lib/python3.5/configparser.py”, line 855, in items
return [(option, value_getter(option)) for option in d.keys()]
File “/usr/lib/python3.5/configparser.py”, line 855, in
return [(option, value_getter(option)) for option in d.keys()]
File “/usr/lib/python3.5/configparser.py”, line 852, in
section, option, d[option], d)
File “/usr/lib/python3.5/configparser.py”, line 393, in before_get
self._interpolate_some(parser, option, L, value, section, defaults, 1)
File “/usr/lib/python3.5/configparser.py”, line 443, in _interpolate_some
"found: %r" % (rest,))
configparser.InterpolationSyntaxError: ‘%’ must be followed by ‘%’ or ‘(’, found: “%u’”

any ideas? fixable?


#2

Yeah, its fixable

You need to edit /etc/lshell.conf

Search for lshell.conf in the forum. I have your answer there.


#3

Ok - Im very new at this so please indulge me with some confirmatory / extrapolations :smile:
I guess the thread you speak of is “SSH in Lshell bug”, where you write that the culprit was the “%” in “home_path : ‘/home/%u’” - Should I simply edit out the “%”?
Almost complete beginner with linux, sorry if im being dense.