change directadmin port :2222 is possible?

jack sparrow

Verified User
Joined
Feb 3, 2010
Messages
41
Hello

its my first time using directadmin and i like it very simple and easier than cpanel

but i wander if i can change the port :2222 to anything else ?

or if i can delete or rename the user admin , for security reasons



and if u please if u have useful links how to protect my directadmin ill be appreciated

sory for my english i hope u understand me :p
 

scsi

Verified User
Joined
Aug 19, 2008
Messages
4,695
I dont think you can remove the admin user.

To change the port edit /usr/local/directadmin/conf/directadmin.conf

Change the port= line to a new port number.

Like: port=1234

Then type /sbin/service directadmin restart
 

floyd

Verified User
Joined
Mar 29, 2005
Messages
5,285
You can create another administrator and then suspend the admin user. You may have to suspend admin manually in the /etc/passwd file.
 

jack sparrow

Verified User
Joined
Feb 3, 2010
Messages
41
I dont think you can remove the admin user.

To change the port edit /usr/local/directadmin/conf/directadmin.conf

Change the port= line to a new port number.

Like: port=1234

Then type /sbin/service directadmin restart
thank u allot i did change the port

but when i did , the httpd has stoped and iam not able to enable or start it sgain all faild !!!
 

jack sparrow

Verified User
Joined
Feb 3, 2010
Messages
41
You can create another administrator and then suspend the admin user. You may have to suspend admin manually in the /etc/passwd file.

if i suspend the admin user , dose the resellers under that user well suspend too ?

please can u provide me with ssh commands to do that

thank u
 

floyd

Verified User
Joined
Mar 29, 2005
Messages
5,285
Yes but again I don't think you can suspend admin with the control panel. I think you would have to do this in the /etc/passwd file. Do that and it will not suspend any other user or reseller.
 

jack sparrow

Verified User
Joined
Feb 3, 2010
Messages
41
Yes but again I don't think you can suspend admin with the control panel. I think you would have to do this in the /etc/passwd file. Do that and it will not suspend any other user or reseller.
how to do that?

what i have to write in ssh cd /etc/passwd then what ?

sorry man iam still noobi in this
 

floyd

Verified User
Joined
Mar 29, 2005
Messages
5,285
Sorry its the /etc/shadow. But a search on Google shows you this command:

Code:
usermod -L admin
-L stands for Lock and -U stands for Unlock

Code:
man  usermod
 
Top