For root user we can change FQDN as host-name like this:
hostname 'test.com'
But now, I need to change host-name from other users also we can use like this;
sudo hostname 'test.com'
But, it prompting for password, other users also have password, how to give that password without manual interruption.
Thanks, Indu
passwordless sudo.
setup sudo to allow hostname to be usable without password to those users who need it.
add a ine like this to /etc/sudoers
and add those who need that priveledge to group hostchangers (you'll have to dcreate that group) then they'll have to log in again