Originally posted by: SystemAdmin
I was curious and I do have a test machine laying around, so I tried this.
$ sudo smitty user
- Added user "slayer", not an admin, other users can't su, able to log in locally and remotely
$ sudo cp -p /etc/passwd /etc/passwd.bu
- just being safe ...
I logged in as "slayer" remotely to confirm the user account worked as expected, then ...
$ sudo vi /etc/passwd
- changed startup shell to "/etc/sbin/shutdown" as described
Tried logging in as "slayer" again ...
...
3004-009 Failed running login shell.
Connection closed by foreign host.
It might work in Linux, but it doesn't work in AIX 5.3 on a 7025-F80 ...
$ oslevel -s
5300-08-06-0918
$
#AIX-Forum