Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (11) AWS (5) numerology (5)
Showing posts with label AIX. Show all posts
Showing posts with label AIX. Show all posts

Wednesday, September 10, 2014

Waiting for welcome message. Access denied + ftp error

ftp user is getting below error while doing ftp:


Waiting for welcome message. Access denied:


Solution:

1. check the user attributes by command

#lsuser -f

2. If the user has tried wrong password then,make unsuccessful login count 0

#chuser unsuccessful_login_count=0

3. When we change password of particular user it will by default activate password attributes specified in the /etc/security/login.cfg file. like ADMCHG flag in /etc/security/passwd

ADMCHG flag = This forces the user to change passwords the next time a login command

As this is ftp user so it will be not able to change the password after first login so we have to disable the password attirbutes

#passwd username

#pwdadm -c

-c Clears all password flags for the user in the /etc/security/passwd file.


Thanks...
Kiran Jadhav


**Let's Share our knowledge and keep visiting here**

Wednesday, August 6, 2014

Easy Commands + AIX

Easy Commands + AIX:

1) Commands to get WWN number of HBA:

test1 #lsdev |grep fcs
fcs0         Available 05-08         FC Adapter
fcs1         Available 06-08         FC Adapter
fcs2         Available 09-08         FC Adapter

test1#lscfg -vl fcs0 |grep Network
        Network Address.............10000000C95C5AA9

test1#lscfg -vl fcs2 |grep Network
        Network Address.............10000000C9584830

test1#lscfg -vl fcs1 |grep Network
        Network Address.............10000000C95C79C4     

2)  Command to use previous root password:

test#chuser histexpire=0 histsize=0 root

histexpire Specifies the number of weeks that a user cannot reuse a password. (between 0 and 260 weeks). 

histsize Specifies the number of previous passwords that the user cannot reuse. (between 0 and 50). 

3) Creates a new user account:

useradd [ -c comment ] [ -d dir ] [ -e expire ] [ -g group ] [ -G group1,group2 ... ] [ -m [ -k skel_dir ] ] [ -u uid ] [ -s shell ] [ -r role1,role2 ... ] login


4) 10 largest files under /var directory:

find /var -type f -xdev -print | xargs -e ll | sort -rn -k5 | head -n 10

5) command to find os version

#oslevel

6) command to get server serial number:

# lsconf | grep -e "Machine Serial"

7) Acitivate/deactivate VG

#varyoffvg newvg                    to deactviate VG newvg
#varyonvg newvg                    to activate VG newvg


Thanks...
Kiran Jadhav


**Let's Share our knowledge and keep visiting here**