Operating System - HP-UX
1832649 Members
2952 Online
110043 Solutions
New Discussion

Guest Account No Password

 
Jim Thrash
Occasional Contributor

Guest Account No Password

What the quickest way to determine if a guest account has no password?
5 REPLIES 5
Shahul
Esteemed Contributor

Re: Guest Account No Password

Hi

It depends, What is the prupous of that account. If it is for ftp, better way is setup and anonymous ftp.

If guest need shell prompt then U will have to use user add command. First determin the uid and gid for guest, then

#useradd -u -g -m -k /etc/skel -d /home/guest -s /bin/sh guest

#passwd guest

Enter a nil passwd

Best of luck
Shahul
Patrick Wallek
Honored Contributor

Re: Guest Account No Password

Try to log in and when prompted for the password just hit return. If you get logged in, there's no password.

You could also check /etc/passwd and if the 2nd field is empty, then there's no passwd.

userid::123:12::/home/dir/:/usr/bin/sh

The above entry has no passwd assigned.
PIYUSH D. PATEL
Honored Contributor

Re: Guest Account No Password

Hi,

Just login and find out.....or check in the /etc/passwd file if the field after username guest is blank

guest::uid:gid:

Piyush
Shahul
Esteemed Contributor

Re: Guest Account No Password

Hi

Oh..Sorry. I misunderstood ur question.

As others pointed, U can find out in /etc/passwd file


Best of luck
Shahul
Arockia Jegan
Trusted Contributor

Re: Guest Account No Password

Here's the command to find out the user accounts with no passwd,

#logins -p

Will list the users who don't have the passwd