Question regarding /etc/passwd
Administrator TOOTAI
admin at tootai.net
Sat Aug 5 10:41:30 UTC 2006
Rick Stevens wrote:
> On Fri, 2006-08-04 at 09:35 -0700, Waldher, Travis R wrote:
>
>> If in the shell location of an account, a /dev/null entry is placed.
>>
>> The account can't login, as there is no shell to login to. Correct?
>>
>> Can scripts, etc. be executed as that account? If so, how? I'm
>> assuming via su.
>>
>
> Uh, the more proper thing to do is make the shell either /sbin/nologin
> or /sbin/noaccess (whichever is appropriate to your system) or the old
> standby, /bin/false. I wouldn't set it to /dev/null.
>
+1
> Note that if the shell No, you can't run anything that needs a shell or
> stdin/stdout/stderr.
>
Other solution is to replace the x from /etc/passwd password column with
* which means no terminal.
--
Daniel
More information about the Redhat-install-list
mailing list