how to switch to 'git' user on aws EC2

I've installed gitlab on EC2 and now I have to change server URL.

The .deb package installs everything as "git" user and now I can't see config files 'cause via SSH i'm logged as "ubuntu".

I switched user with sudo su - ubuntu but when I try to nano a file, it asks for "git user password".

Am I doing something wrong?

Answers


Have you tried sudo bash followed by su - git?

If that fails, you can try changing the git user password using passwd git from the root shell. If that causes problems, you can always re-install from the image.


Need Your Help

Static functions from boost.lambda or boost.phoenix

c++ boost lambda boost-phoenix boost-proto

I regularly use boost.lambda (and phoenix) to define lambda functions in C++. I really like their polymorphic property, the simplicity of their representation and the way they make functional progr...

Oauth provider behind reverse proxy

php oauth oauth-provider

I try to use OAuth Provider in PHP (PECL Package) behind a apache reverse-proxy

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.