this is ballu.i think the way to change the username i.e is LOGNAME is through vi ~/.bash_profile and editing the environment variables.And other may goto /etc and type 'vi passwd' change the user name and what ever u want there in the list and save the changes.i think it should work.
Re: How to change localhost name
13 years 6 months ago #9185
Hostname is used to either set or display the current host or domain name of the system.
This name is used by many of the networking programs to identify the machine. The domain
name is also used by NIS/YP.
When called without any arguments, the program displays the current names:
hostname will print the name of the system as returned by the gethostname(2) function.
dnsdomainname will print the domain part of the FQDN (Fully Qualified Domain Name). The com-
plete FQDN of the system is returned with hostname --fqdn.
When called with one argument or with the --file option, the commands set the host name or
the NIS/YP domain name.
Note, that only the super-user can change the names.
It is not possible to set the FQDN or the DNS domain name with the dnsdomainname command
(see THE FQDN below).