​
Showing posts with label server. Show all posts
Showing posts with label server. Show all posts

Thursday, 20 July 2017

creating Virtual users on linux server using Proftpd

creating Virtual users on linux server using Proftpd


  ##################################################################
 proftpd FTP server user account creation using commands    ##################################################################

note:- If you have already configured proftpd server and just want to add new user , skip to step 3 direct

////////////////
//  step 1. 
////////////////

install proftpd on system if it is not installed using apt
command is 
apt-get install  proftpd-basic


/////////////////
//  Step 2
/////////////////

enter into directory /etc/proftpd
open file proftpd.conf
uncoment line number 34 (containg text DefaultRoot ~ )
and add this line just below it

AuthUserFile    /etc/proftpd/ftpd.passwd




//////////////
// Step 3
//////////////

now add virtual user to ftp server using command 
ftpasswd --uid <uid> --gid <gid> --name <username> --shell /bin/false --home <path> --passwd

here 

uid is the user id (assign 33 and user will behave like www-data user)
gid is group id (assign 33 to work as www-data)
name is the username which you want to add to ftp server
shell is the name of shell terminal have it /bin/false
home is the directory where user will be directed after successful login
passwd is for password and need not to supply password with command 

for example i want to create a user having name indishell and want to assign /ftp directory to him if user autheticate successfully
uid and gid is 33 
command will be 

ftpasswd --uid 33 --gid 33 --name indishell --shell /bin/false --home /ftp --passwd


press enter and supply new password for the user account


//////////////
// Step 4
////////////// 
now need to chmod and chown the /etc/proftpd/ftpd.passwd and /etc/proftpd/ftpd.group
these files contains FTP server usernames/groups and its password 

chmod 400 /etc/proftpd/ftpd.passwd /etc/proftpd/ftpd.group
chown proftpd.nogroup /etc/proftpd/ftpd.passwd /etc/proftpd/ftpd.group

and now are done :)
you can login to your ftp account using command
ftp  server_IP



Note:- if you are on ubuntu server, then value of uid and gid should be 33(web server id) else you may face issue in writing files ;)

enjoy >:D<
Thank you


-==[[Love to]]==--
zero Cool ,code breaker ica, root_devil, google_warrior,INX_r0ot,Darkwolf indishell,Baba ,Silent poison India,Magnum sniper,Atul  Dwivedi,ethicalnoob Indishell,Local root indishell,Irfninja indishell,Reborn India,L0rd Crus4d3r,AR AR,Mannu, ViKi, Hardeep singh Bhuppi,Mohit, Ffe, Anju, RR Mam, Acchi bacchi(Jagriti) and DON

{ Read More }


Wednesday, 17 May 2017

CPU information under Ubuntu server

CPU information under Ubuntu server


If you want to see all the CPU info (specs) of your server, run this:

cat /proc/cpuinfo


it will show you something like this:

processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Celeron(R) CPU 3.06GHz
stepping : 1
cpu MHz : 3058.933
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc up pebs bts pni dtes64 monitor ds_cpl tm2 cid cx16 xtpr
bogomips : 6117.86
clflush size : 64
cache_alignment : 128
address sizes : 36 bits physical, 48 bits virtual
power management:
{ Read More }


Tuesday, 9 May 2017

Creating a custom 404 Not Found page in Apache Server

Creating a custom 404 Not Found page in Apache Server


DEMO
You might have seen a 404 page on different sites such as Google,Yahoo etc... You can make this on your website too if you are using Apache Server. The default 404 page will be like this :
Its just simple plain HTML 404 page and its ugly. To Change the default 404 page Do as below.
Go to your sites folder.
Create a file named .htaccess (just .htaccess no name only file extension).
Open the file and add the line.
ErrorDocument 404 /pathtofile
Replace /pathtofile with your 404 page file name which should be situated in the same folder as the file .htaccess . The custom 404 file can be in PHP or HTML.
You can also add HTML to it like this:
ErrorDocument 404 <html><head></head><body><h1>404 Not Found-Subins Blog</h1></body></html>
You dont have to reload Apache Server ! Its finished. Test it out. Heres an example of a custom 404 page.

{ Read More }


Sunday, 7 May 2017

Create New User Account in Windows Server 2008

Create New User Account in Windows Server 2008


The steps for creating Local User Account and Domain User Account (if the server is an Active Directory Domain Controller) in the Windows Server 2008 Operating System.

Local User Account
Step 1:Click Start -> Administrative Tools -> Computer Management
Step 2:In Computer Management, click Local Users and group
Step 3:Double click the Users folder
Step 4:Right click in the users list and click New User
Step 5:Fill the information for the new user and click create and close.

Domain User Account
Step 1:Click Start, select Administrative Tools and click Active Directory Users and Computers.
Step 2:In Active Directory Users and Computers, navigate to the folder where you want to store the new user.
 Step 3:Right in click the user list and click New User.
Step 4:Fill in the new user information and click Next.
Step 5:Fill in the password information and click Next.
{ Read More }