[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Service account allows sudo but no login
- Subject: [ale] Service account allows sudo but no login
- From: warlord at MIT.EDU (Derek Atkins)
- Date: Mon, 05 Aug 2013 11:12:58 -0400
- In-reply-to: <CAEo=5PyUy139wFRcqCmHVDfc1pea6snLv60CpBz_8EOZjcZ4NQ@mail.gmail.com> (Jim Kinney's message of "Tue, 30 Jul 2013 13:30:03 -0400")
- References: <CACv9p5qc6TCD_1VqPxRSBEOj=VUtLKTUPFh=btbgbs1K6oWwKg@mail.gmail.com> <CAEo=5PyUy139wFRcqCmHVDfc1pea6snLv60CpBz_8EOZjcZ4NQ@mail.gmail.com>
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