Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - piotrunioczko

Pages: [1]
1
Other / Re: Increasing the length of the random password
« on: April 01, 2016, 10:13:35 AM »
Add 4 strings manually :D

2
Apache / Re: 500 Internal Server Error (after adding domain)
« on: April 01, 2016, 06:02:27 AM »
Try option User Accounts -> Fix permissions -> Select user and press Fix.

Check logs with this commands via SSH during page refreshing:

Code: [Select]
tail -f /usr/local/apache/logs/error_log
tail -f /usr/local/apache/logs/access_log

3
Thanks for the answer but this isn't good solution. Of course You will have account in sudoers group but You still can't login into this account in CWP login page.

Maybe I explain one more time.

In CWP there is one root account now with login root which corresponds with root account in Linux. This account has privileges to all home directories of other users and all configuration functions in CWP.

If I create account in CWP I will have user account which can do something in his own home directory (f.e. /home/peter) and has just few default functions in CWP.

If I manually disable root account for security reasons in Linux I will have no access to CWP login page. So I need to create account like root (but with other username) which will have the same privileges like root.

Now it's not possible or I don't know how to override this?



4
I don't need to have two users which will have privileges to root directory.

I need to create other account in CWP which will have the same privileges as root account. Now if you create user in CWP the user will have privileges only to their own directory and just few functions in CWP, but I need to create other user which will have access to all directories and all functions in CWP.

For security reasons is good practise to turn off root user in Linux, and create users in sudoers group.

5
Will it be added in new version?

6
Hi.

Is it possible to create user which will have the same privileges on CWP like root?
For security reasons I need to change ssh port and nobody need to know root password.
With ssh the problem doesn't exists because users can be in sudoers group and they have their own password.

The problem is when I need to login into CWP via web browser as root. I wouldn't like to use root account. I would like to login into CWP via browser with personal account with root privileges.

Actually other users outside root have privileges to their own home directory and can change settings in defined package scope.

Can You explain me dependencies between users inCWP SQL database (root_cwp) and users in linux configuration (etc/passwd)?

Is it possible to manually change privileges of standard user account created via browser.

Thank You.

7
CentOS-WebPanel GUI / Re: How to Increase Username Length?
« on: March 09, 2016, 08:03:04 AM »
If you use Jquery username length override You have to be carefull with MySQL database create. MySQL don't accept dots in database/user names. CWP creates database like username_database so You can't create dots in username like domain name (abc123.test.com) because MySQL don't like string with dots (abc123.test_database1).

So the best way to identificate home folder name or user name with domain without problem with MySQL db name is:

Example with domain abc123.test.com

1. Use Jquery username override.
2. Create username abc123 or abc123test with domain abc123.test.com
3. Create database abc123_database1, abc123_database2 etc.

And you will get:

1. Username abc123test
2. Home folder /home/abc123test
3. Domain abc123.test.com
4. Database abc123_database1

You have to create your own system names because it's depends of your vhosts name in CWP.

For now I think it's the easiest way to identificate username/database name with home folder name and domain name.

I will try to change restrict in database names with dots.

8
CentOS-WebPanel GUI / Re: How to Increase Username Length?
« on: March 03, 2016, 09:40:44 AM »
Try this code above, and refresh site with cache refreshing. It's work. I have fully domain name as username in my CWP now.

9
CentOS-WebPanel GUI / Re: How to Increase Username Length?
« on: March 03, 2016, 07:48:43 AM »
Ok guys I did it with Jquery overriding.
In this file /usr/local/cwpsrv/htdocs/resources/admin/modules/new_account.php under source code paste this:

Code: [Select]
<script type="text/javascript">
$(document).ready(function() {
$('input[name=username]').attr("maxlength", 32);
});
</script>

10
CentOS-WebPanel GUI / Re: How to Increase Username Length?
« on: March 03, 2016, 07:42:06 AM »
Thanks for the answer. You are right. The HTML source code restrict maxlength to 8 characters. I can change it in flight with Chrome Element Inspector or FF Firebug and it's work but I need to change it with every add user action.

What is directory of this file with add user form? I  try to replace the HTML code. I know source files looks like one big hash but I will try to decode it.

The posibility with direct URL is not comfortable to work with them.

Another posibility is to create simple Javascript which replace value of maxlength element. I will inform you in this topic what is effect of this solution.

11
CentOS-WebPanel GUI / Re: How to Increase Username Length?
« on: March 02, 2016, 09:43:14 AM »
I renew this question. I need  to set username longer than 8 characters. My configuration has domain/website per user so I need to  set username like a domain name but I can't because of this 8 characters restrict.

Is it possible to change the length of username or disable it? Centos by default allows 8/16/32 characters.

Thanks for help.

Pages: [1]