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 - Samekas

Pages: [1]
1
CentOS Configuration / Re: How to setup user quotas ?
« on: December 17, 2015, 03:59:44 PM »
Hi, try to edit your /etc/fstab file.

I know , but what to change exactly? thanks

2
CentOS Configuration / Re: How to setup user quotas ?
« on: December 09, 2015, 04:56:52 PM »
Lets say that your /home partition is in / mount point

install quota on your centos
Code: [Select]
yum install quota
Edit: /etc/fstab   
Code: [Select]
vi /etc/fstab 
replace "defaults" with "usrjquota=quota.user,jqfmt=vfsv0" for / mount point

Before:
Code: [Select]
UUID=ac567666-9385-4ef5-885c-80f61ec64647       /       ext3    defaults        1       1After Replace:
Code: [Select]
UUID=ac567666-9385-4ef5-885c-80f61ec64647       /       ext3    usrjquota=quota.user,jqfmt=vfsv0        1       1
Code: [Select]
mount -o remount /
quotacheck -avugm
quotaon -avug



If you have /home in /etc/fstab then you will need to edit line matching /home
replace "defaults" with "usrjquota=quota.user,jqfmt=vfsv0" for /home mount point

Before:
Code: [Select]
UUID=ac567666-9385-4ef5-885c-80f61ec64647       /home       ext3    defaults        1       1After Replace:
Code: [Select]
UUID=ac567666-9385-4ef5-885c-80f61ec64647       /home       ext3    usrjquota=quota.user,jqfmt=vfsv0        1       1
Code: [Select]
mount -o remount /home
quotacheck -avugm
quotaon -avug

Now you need to add this into the CWP Configuration
Code: [Select]
mkdir -p /usr/local/cwp/.conf/
echo "/home" > /usr/local/cwp/.conf/quota_part.conf


How to check if quota works ?
Code: [Select]
repquota -a This will display you user limits

If you had a previously added users then you will need to update quota for them, you can do that by clicking on each account edit and then saving changes, or you can edit packages and save it for all users.


Hello,

Mine is diferent, I have this:

/dev/md2        /       ext3    errors=remount-ro       0       1
/dev/md3        /var    ext4    defaults,usrquota,grpquota      1       2
/dev/sda4       swap    swap    defaults,usrquota,grpquota      0       0
/dev/sdb4       swap    swap    defaults,usrquota,grpquota      0       0
proc            /proc   proc    defaults,usrquota,grpquota              0       0
sysfs           /sys    sysfs   defaults,usrquota,grpquota              0       0
tmpfs           /dev/shm        tmpfs   defaults,usrquota,grpquota      0       0
devpts          /dev/pts        devpts  defaults,usrquota,grpquota      0       0


What to replace? Thank you in advance!

3
Hello.

Check your /var/log/security . SSH hasn't dependience the CWP.

I got this

Dec  8 11:51:51 srv86 sshd[750]: User root not allowed because shell /bin/bash\r does not exist
Dec  8 11:51:51 srv86 sshd[751]: input_userauth_request: invalid user root

Edit:

I was able to solver the problem, it looks the the passwd file was on dos format after changing this file with a nom linux editor, so I have download the passwd to a windows pc and download the dos2unix and converted the file to unix, then I replaced the file on the server with the new and it's working now!

4
It has this, but still doesn't work, I can install packages via vnc but in terminal I can't logi with the sudo.

# Authentication:

#LoginGraceTime 2m
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10

5
CentOS 6 Problems / Can't login via SSH as root anymore after installin CWP
« on: December 06, 2015, 09:27:05 PM »
Hello,

First of all let me say this panel is awesome, is a good alternative to cpanel.
After I installed CWP I can't login anymore via shh as root, it says login incorrect but I know the login is correct, can someone help me? Thank you!

Pages: [1]