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

what are the common errors you find in Solaris Volume manager?

3 Answers  


What is a heart-beat?

2 Answers  


What is default permission of /etc/passwd , /etc/shadow files

7 Answers   Accel Frontline,


How many file to modify the host name to be changed without rebooting the system.

2 Answers  


What are configuration files and to configure it in VCS

2 Answers  






Explain setuid, setgid and stickybit

2 Answers  


how to install a patch in solaris 10( step by step details)?

2 Answers  


How to stop the process in Solaris?

9 Answers   GAS, Wipro,


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

2 Answers   IBM, ITC Infotech, Tech Mahindra,


How to find & replace bad disks in solaris & VXVM?plz explain step by step?

4 Answers  


hi frnds I created sparse root zone, in that zone when i try to change the passwd it is giving permission denied. what is the reason and how to chnage the root passwd in the zone. can u please explain the query.

2 Answers   TCS,


To find the OBP environment variable

2 Answers  


Categories
  • Solaris Commands Interview Questions Solaris Commands (360)
  • Solaris Threads Interview Questions Solaris Threads (9)
  • Solaris IPC Interview Questions Solaris IPC (30)
  • Solaris Socket Programming Interview Questions Solaris Socket Programming (3)
  • Solaris System Calls Interview Questions Solaris System Calls (25)
  • Solaris General Interview Questions Solaris General (170)
  • Solaris AllOther Interview Questions Solaris AllOther (297)