I have 2 domain names with 2 usernames setup on WHM:
domain1.com - domain1
domain2.com - domain2
I would like domain2.com website visitors to upload photos to a domain1 path. Unfortunately I can't, I think the problem is with the usernames and the fact that the path where I would like to add the photos belongs to domain1 user. The chmod is 777.
How can I set this up on WHM so domain2.com visitors can upload photos to a domain1 username path?
My server with APF (firewall script) with BFD logs over 1215 events today of some hack user or bot trying to login to my server from various of IP trying many kind of usernames...
Is it possible to customize BFD to automatically ban the IP directly if the username they try to login with it was wrong 2 times?
For example the username is qwerty The hack is trying with many usernames john, root, master, boot, etc...
How do I login to root with my sudo username and password? I do type su - in putty, but it gives me a "Disconnected: No supported authentication methods available."
I'm moving some accounts from another provider wich don't allow users to make his owns backups, so I'm doing manually from the cpanel. The file I get it's something like username-date.tar.gz
The problem it's when I try to restore it in my server, I get "not user files found" because the .tar.gz file it's like
and inside the folders
And it looks like to have the restore working have to be:
/username /and inside the folders
So, the solution I have for the moment it's to 1) create the account in the new server 2) restore it login in the cpanel
I am trying to change to a different server within the same webhosting company and they have asked me for the username and password of the SQL database I have in my site. Call me stupid, but I have lost this and now I am wondering what I can do.
Since I can log into the cpanel etc I can very well make a copy of the database etc., if that helps. Is there somewhere I should look in the files and folders where the username password info may be store in? I seem to recall reading somewhere that is the case. Any info appreciated.
The reason the host needs this info is because the new server doesnt use cpanel, it uses something called plesk. So if all fails, I am thinking, I just move to a different host who uses cpanel, that way I dont need the UN/PW? Seems a rather silly thing to do, but I have t consider all alternatives now.
Is it possible to pass the username and password info to a Cpanel login, so that typing it in will let the user log in to his Cpanel without having him to type it manually?
This is for a demo and I'd like the client to see the inside without having to type anything in.
We have a cPanel/WHM server and our users log into their e-mail accounts using this format:
emailprefix+theirdomain.com
Our server is running exim. One of my users wants to be able to use an "@" symbol for his e-mail username instead of a "+" sign. Is it possible to change this? If so, is it possible to change it for just this one user? I don't want to change it for everyone who uses the mail service.
Is this possible to log username and password passed by GET request for basic authentication?I generate link to some part of my website by [URL] ....
It works without any problems for 90% users but some of them got information that there is password mismatch.So I would like to log all request with information about passed login and password in text plain.
I am unable to create a user in mysql with 20 characters length. I am getting the annoying error message about 16 characters limitation about a username length. I have tried to increase the character user limit length to 32 characters using the following commands:
mysql -uroot -p
use mysql;
alter table `user` modify `User` CHAR(32);
FLUSH PRIVILEGES;
quit
service mysqld restart
But after all of this was done I was and I am still unable to connect to mysql anymore with/without password.
I have been trying to get password protected directories working on my Linode server. It works / behaves in a desktop browser somewhat but not like I am used to with hostmonster. Also for some reason my phone (windows phone just loads the page in the protected directory without prompting for a password. So I imagine there is some security thing I am missing that none of the info I have found searching talks about. Here is what I have done. I have created a password file and set the permissions correctly on that and it works on the desktop. However when I close the browser or open a private browsing session I am never prompted for a password again. It just feels insecure. Plus my windows phone just loads the page with no prompt. With hostmonster if I closed the browser window it would ask me for the username and password again. I also tested hostmonster directory passwords on my phone and it prompts for a username/password.
Here is what I have added to the apache2.conf file. The rest is pretty much default. There is no .htaccess file for that directory.
<Directory "/var/www/protected"> AllowOverride All AuthType basic AuthName "Enter Login" AuthUserFile /etc/htpasswd/.htpasswd Require valid-user Order deny,allow Allow from user1 </Directory>
It may be worth noting that I have two virtual sites / domain names running on this server at the moment however the one that is being used for this is the primary domain name.
One of my users...let's call him "fictional" is getting the following error message:
--------- Warning: Unknown(): open_basedir restriction in effect. File(/home/fictional/public_html/blablaja/index.php) is not within the allowed path(s): (/home/hurz/:/usr/lib/php:/usr/local/lib/php:/tmp) in Unknown on line 0 ---------
The strange thing is that the error message refers to another user on my system...named "hurz". Why does it refer to this other username? I looked at the virtual host in httpd.conf for user "fictional" and everything seems alright there:
I am using user authentication with the following components:
Apache/2.4.10 (Win32) + mod_auth_basic + mod_authn_dbd + mod_dbd + ODBC Driver + Microsoft SQL Server 2008(SP3).
It works fine except when I do not provide any username when browser asks for username and password. In this case I receive the "Internal Server Error" as the response instead of "Unauthorized" response.
The most interesting part of the error.log is:
[Sat Sep 27 21:23:17.639860 2014] [authn_dbd:error] [pid 1208:tid 1636] [client 127.0.0.1:1363] AH01656: Query execution error looking up '' in database [[dbd_odbc] SQLBindParameter returned SQL_ERROR (-1) at apr_dbd_odbc.c:604 [Microsoft][ODBC SQL Server Driver]Invalid precision value HY104 ]
The AuthDBDUserPWQuery directive in my httpd.conf is:
AuthDBDUserPWQuery "SELECT password FROM member WHERE CONVERT(VARCHAR(10), member_Index) = %s"
And the member_Index column in the database is smallint.