[ale] Service account allows sudo but no login

Derek Atkins warlord at MIT.EDU
Mon Aug 5 11:12:58 EDT 2013


Jim Kinney <jim.kinney at gmail.com> writes:

> These accounts can't be su'ed to :
> # grep nologin /etc/passwd
> bin:x:1:1:bin:/bin:/sbin/nologin
> daemon:x:2:2:daemon:/sbin:/sbin/nologin
> adm:x:3:4:adm:/var/adm:/sbin/nologin
> lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
>
> # su - bin
> This account is currently not available.
> # su - lp
> This account is currently not available.

You could still su to these accounts by providing su a shell:

  su -s /bin/bash - bin

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the Ale mailing list