Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
change password and hostname
06-11-2018, 10:55 AM
Post: #1
change password and hostname
to change the password of your own account:
Code:
passwd
<current-password>
<new-password>
<confirm new-password>

to change the root password (make sure you have sudo permissions)
Code:
sudo passwd root

By default, your server is started with localhost.lan as the hostname. Some software, such as cPanel, requires a valid Fully Qualified Domain Name (FQDN) for the hostname to be used during their licensing verification system. To change hostname, follow the steps:

P1). Using a text editor, open the server’s /etc/sysconfig/network file
Code:
sudo emacs /etc/sysconfig/network

P2). Modify the HOSTNAME= value
Code:
HOSTNAME=myserver.hututa.com

P3). For internal networking, change the host that is associated with the main IP address for your server (found at /etc/hosts)
Code:
<ip-addr>   hostname.domain.com   hostname

P4). Run the hostname command.
Code:
hostname hostname.domain.com

P5). Restart networking on your server to ensure that changes will persist on restart.
Code:
/etc/init.d/network restart
Find all posts by this user
Quote this message in a reply
06-11-2018, 11:09 AM
Post: #2
RE: change password and hostname
Please make sure the information do not existing before you create a new items.

For passwd, it is already in tab.d-thinker.org/showthread.php?tid=11648

For setting hostname, there is a simpler command that we usually use --`hostnamectl set-hostname <hostname>`
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: