how to set the hostname or username at commamd promt ?
where to set password length,max and min ?




Answers were Sorted based on User's Feedback



how to set the hostname or username at commamd promt ? where to set password length,max and min ?..

Answer / kirankumar

Set password length edit /etc/default/password file and
modify max length and min length.

#hostname kiran
#hostname
kiran
to update it permanently update file
/etc/hosts
/etc/inet/ipnodes
/etc/nodename
/etc/hosts.nic

Is This Answer Correct ?    16 Yes 2 No

how to set the hostname or username at commamd promt ? where to set password length,max and min ?..

Answer / raviga006

edit u r .profile

add this two lines
PS1="\h:\w:> "
export PS1

then u r .profile like . /.profile

Is This Answer Correct ?    2 Yes 0 No

how to set the hostname or username at commamd promt ? where to set password length,max and min ?..

Answer / ramkumar

#hostname xxxxxx
#hostname
xxxxxx
And to set it permanently add entries in /etc/hosts
and /etc/sysconfig/network and restart the service
To set password length edit /etc/default/password file

Is This Answer Correct ?    1 Yes 1 No



Post New Answer



More Solaris Commands Interview Questions

I have a TCP error how can fix this error?

3 Answers   Thomson Reuters,


How will see the hostname

3 Answers  


What are the Patch Management Issues you have faced and how did you resolve them?

1 Answers   IBM,


I have a "telnet" error then what you will do?

4 Answers   Thomson Reuters,


Why copied file permission is changed in destination. When i give all permission i.e 777 to file and copy that to other location in destination the permission is 755. But if give permission 555 in destination that file permission is 755 and if give permission 444 to file after copy in destination the file permission is 444. These all are happening in normal user. How the umask value is calculate here really i am not understand. Please every body and wite the proper answer. Thanks in Advance

2 Answers  






how to search hide files

14 Answers   TCS,


what is the diff between ufslog and vxfslog?

1 Answers  


how to configure ethernet card.

4 Answers  


How to display the volume configuration information?

2 Answers  


If /etc/system file is corrupted how will you recover it , if we dont have a CDROM then what is the procedure?

2 Answers   ITC Infotech, Tech Mahindra, IBM,


How to bring the resource to online and offline

2 Answers  


How will see the kernel version

5 Answers  






Categories
  • Solaris Commands Interview Questions Solaris Commands (356)
  • Solaris Threads Interview Questions Solaris Threads (8)
  • Solaris IPC Interview Questions Solaris IPC (15)
  • Solaris Socket Programming Interview Questions Solaris Socket Programming (2)
  • Solaris System Calls Interview Questions Solaris System Calls (14)
  • Solaris General Interview Questions Solaris General (116)
  • Solaris AllOther Interview Questions Solaris AllOther (297)