cPanel login / passwords - cpanel

I try to understand. We have 1 cPanel, so domains.
I have users and passwords at:
/home/{USERNAME}/etc/{HOSTNAME}/passwd
/home/{USERNAME}/etc/{HOSTNAME}/shadow
What's login for cPanel ? {USERNAME}#{HOSTNAME} ? or what ?

For login cPanel Using {USERNAME}

Related

how to login via machine/vps directly which has blank username and password?

i am trying to download a file from an website which has login protection but the username and password both it blank and have to login like that.....
so my question is.....
how to download it via curl/wget on my vps ?
is there any .netrc way or like https://user:pass#site.com so that my vps can pass it and download it??
site -- https://vaathicloud.cf -- username -- blank pass -- blank .. just click .. sign in
pls help......
You have to be owner or moderator for the Team drive.
Buy a Gsuite with your Gmail. Create own team drive and enjoy.

Export pasword ldap (openldap) on liferay not working

I have configured liferay to authenticated to OpenLdap. Cas, import and export is activated.
User create from OpenLdap can authenticate to portal, also is imported into Liferay. It seems importing process is ok.
When user try to modify an attribute other than password the data is modified on OpenLdap.
The problem is when user try to modify their password. Liferay ask for current pass and the new one. It get a error saying credentials an incorrect.
If i try to modify the password of the user with a administrator user, Liferay only ask for the new password. After that, the user with de password changed by de admin user can log in with the new password. So, it seems password is modified correctly on OpenLdap. If user, try to modify again the password, Liferay say that everything was ok, but the user cannot autenticate with the new passord, only with old password.
After that if I try to change de password again with admin user, Liferay say that everthing was ok but the user now cannot authenticate with new password.
I'm using Liferay 6.2 ce.
I have modified :
ldap.auth.method=password-compare
ldap.auth.password.encryption.algorithm=SHA
ldap.auth.method=bind
on portal-setup-wizard.propertiesenter code here
Any Idea?
Thanks very much in advance.
with several values without success.
Compare is not a best practice for LDAP in general.
"Bind is preferred by most vendors so that you don't have to worry about encryption strategies."
Also there appears to be a bug in LifeRay that may affect your version.

login issues to newly installed cpanel

I installed 15 days trial cPanel & WHM 11.40 in CentOS installed amazon aws server. I could successfully logged into WHM with root's password. But I cannot log into cPanel (domain:2083) using the same username and password. Please help me to log into cPanel.
Thank You.
you need to update nameserver or A record for the domain name in domain control panel,
After login into your whm panel==>create a new hosting account for the domain name,
Now you can able to access cpanel without any issue.
WHM and Cpanel are actually 2 different parts. WHM is for server administration while with cpanel you can perform website management.
you need to use root password to login to WHM , however you can not use root password to login to cpanel. so in order to login to cpanel you have to use the password when you add a website through WHM. While creating the account through WHM it asks to set the password or you can use password generator feature. Copy that password , copy the cpanel username and use them to login to cpanel.
I hope that explains all.

How to setup admin user with gitlab with LDAP authentication?

I've just setup gitlab, but I'm completely lost with regards to admin user. The wiki seems silent about this topic, and google hasn't been of help either.
So, how do I setup admin users with gitlab on LDAP authentication?
You can also set admin permissions to a user by doing something like this in the rails console:
User.find_by_email("user#example.org") do |i|
i.admin = true
i.save
end
This is what I did to make a LDAP (or Windows AD) user vikas as admin.
First login on GitLab portal and logout, then run the below commands.
gitlab-rails console production
u = User.where(id: 1).first
u.admin = true
u.save!
exit
After running the above commands, login again and now your will have admin privileges for vikas AD user.
Mine is a variant of the accepted answer but it's based on an example from the official documentation
From the command line of your gitlab server:
Open the gitlab rails console (I'm assuming here that you aren't logged in as root):
sudo gitlab-rails console production
Then type the following commands:
user = User.find_by(username: 'my_username')
user.admin = true
user.save!
Close the console:
exit
Update your gitlab server:
sudo gitlab-ctl reconfigure
The file db/fixtures/production/001_admin.rb contains a user and password setup for administration, but you have to disable LDAP to login with it. Afterwards, if you have created a user by login in with LDAP, you can set it up to be an administrator and re-enable LDAP.
Hopefully, a more rational way exists...
There is a check box on web interface, if your GitLab username has admin access.
Login to GitLab, and in the context of Admin Area > Users > the.other.user > edit > Access > Access level, check "Admin".
I didn't try the Linux commands, because web GUI is more reliable. The official GitLab document about permission didn't include this setting, maybe it feels like intuitive.
Login to gitlab database and run:
update users set admin = 't' where email like 'xxxxx#xxxxx';

Cpanel doesn't change password

I am trying to change a password using the cPanel API. cPanel doesn't change the password if the username and password are the same. Are there any other cases when cPanel doesn't change the password?
You should check the log files for the reason
/usr/local/cpanel/logs/access_log
/usr/local/cpanel/logs/error_log
Your best bet might be to look at the regular user's documentation about changing passwords; it should point out what can't be done, etc.
In order to change password for cPanel users, it should be allowed from WHM,
You can check it from WHM >> Tweak settings >> Allow cPanel users to reset their password via email