Operating System - HP-UX
1827802 Members
2341 Online
109969 Solutions
New Discussion

user administration issue

 
subrata biswal
Frequent Advisor

user administration issue

creating user
useradd -d homedirectory/user name -s /usr/bin/shell -m user name

for eg-useradd -d /homes/xyz -s /usr/bin/sh -m xyx

instead of /usr/bin/sh if somebody put /usr/bin/false what is ths meaning?this answer is webadmin or other?
can anybody tell the answer?
3 REPLIES 3
abir chowdhury
Advisor

Re: user administration issue

Dear Subrata
/usr/bin/false means that u will not going to get the login sheel for the user.

when ever u will going to login to that particular user ,u will be logged out automaticaly

pls dnt forget to give points

regards
Abir
Jose Mosquera
Honored Contributor

Re: user administration issue

Hi,

Is a useful way to lock user access without involve password field. e.g:
#usermod -s /usr/bin/false xyz

To work, also you must include once this entry in /etc/shells file:
/usr/bin/false

The /usr/bin/false file must exist, old HP-UX 11 versions not include this file, then create it:
#echo "exit 0" > /usr/bin/false and set adecuated ownwership and privileges.

Rgds
Ismail Azad
Esteemed Contributor

Re: user administration issue

Hi,

The shell /usr/bin/false is widely seen in the "system account" tftp which is the priveleged account on /etc/passwd for the protocol tftp.

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....