Changing username capitalization?

Bo Berglund bo.berglund at gmail.com
Sun Jun 9 14:31:18 UTC 2013


On Fri, 07 Jun 2013 12:08:50 +0200, Bo Berglund
<bo.berglund at gmail.com> wrote:

>Is there some way to capitalize my username in linux?
>
>Note: 
>I have only this single account on linux and it is being used as a web
>development test machine where I want to use rsync via ssh to update
>the web files before testing.

I'm back after being on a location without access to my main machine
with the newsreader...
But I have been frantically working to get this ssh business
operational anyway and finally succeeded. :-)
There were a number of caveats that I picked up here and there and had
to include:

1 - The ssh keys *cannot* have any other name than the defaults under
Cygwin on Windows.
I had used the ssh-keygen prompt for a filename to name the key files
in a way that made it possible for me to identify from where they came
when they were copied. But SSH is exclusively looking for id_rsa. I
had thought that it would try *all* files in the .ssh dir...
Found out by looking at the verbose output of ssh while running a
connect attempt.
When I copied my files to this name the SSH started working (this was
my last actual change)

2 - The permissions on the .ssh/authorized_keys file on Linux *must*
be 640, if not then SSH won't deal with them.
(From http://en.wikipedia.org/wiki/Ssh-keygen)
I had another permission setting.....

3 - The openssh-server must be installed and running on the Linux
side. I forgot this when testing over the weekend on my travel laptop
and got a different set of error messages.
sudo apt-get install openssh-server
fixed that problem.

So the main issue of this thread (changing username) is really moot,
the Windows username is sent only as a last resort, I think, and now
when the certificates are actually used it does not matter anymore.

I believe I have read about 20+ ssh tutorials without getting there,
only when I finally switched on verbose mode for the ssh command (-v)
did I catch the filename problem. And the permissions set to 640 had
also escaped me until I read the Wikipedia article...

Linux is not easy for a long-time Windows user (I have actively used
Windows 2 and all versions after that!)

THanks to all that responded!
Now I know how I can go about changing Linux usernames (for other
purposes than ssh from Windws)! :-)


-- 
Bo Berglund
Developer in Sweden





More information about the ubuntu-users mailing list