useradd /sbin/noshell shell
I would like to define an account for sftp use only. I am trying to define the account using /sbin/noshell as the shell. But useradd fails with messge:
UX: useradd: ERROR: /sbin/noshell is not a valid shell. Choose another.
I created /sbin/noshell according to section 8.2 Assign noshell for system accounts (pg 70 Gudie to the Secure Configuration of Solaris 9 - Version 1.0) and added it to the end of /etc/shells.
I'm using the following syntax for useradd: (where $shell="/sbin/noshell")
useradd -u $uid -g $gid -d /export/home/$user -s $shell $user
ls -l /sbin/noshell returns:
-rwxr--r--1 rootroot 228 Apr 13 15:12 /sbin/noshell
Thanks,
Glen

