Q. How do I Move or migrate user accounts to from old Linux server a new Cent OS Linux server including mails? This new system a fresh installation. A. You can migrate users from old Linux server to new Linux sever with standard commands such as tar, awk, scp and […]
Tag: passwd
FreeBSD: How to write protect important file ( even root can NOT modify / delete file )
The chflags utility modifies the file flags of the listed files as specified by the flags operand. FreeBSD offers write protection, you need to to set special bit call immutable. Once this bit is setup no one can delete or modify file including root. And only root can clear the […]
Shutdown Linux Server With Shutdown Account
Have you ever wondered why shutdown account exists on Linux server, especially under Red Hat Enterprise Linux distribution? The answer is quite simple – shutdown account can shutdown server. Here is how you can enable the shutdown account: 1) Login as a root user . 2) Setup password for the […]
Changing password via a script
Method 1: passwd Conventionally the command use to change password on Linux based system is passwd , the option related to this command is –stdin ,an this is all done throughout a pipe. echo -e “new_password\nnew_password” | (passwd –stdin $USER) Method 2: chpasswd Another alternative is to use the chpasswd, […]
How to reset the Plesk Admin password from command prompt
Windows In case you forget the Plesk control panel’s ‘admin’ password, then you have no other choice but to reset the password by logging into the remote server.. As the reset ‘Administrator’ password option [which in fact is for the admin user] is only available through logging into the Plesk […]
Linux Password Trick With Immutable Bit Using chattr Command
With the help of utility called chattr, you can changes the file attributes on a Linux second extended file system. The operator + causes the selected attributes to be added to the existing attributes of the files; – causes them to be removed; and = causes them to be the […]