ocpasswd password from the command line rather than prompting for it?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, Nikos, echo "password"|ocpasswd will still ask "Enter password:"
for once, I think it should be directly update the password file :)

On Mon, Jan 27, 2014 at 2:49 AM, Nikos Mavrogiannopoulos
<nmav at gnutls.org> wrote:
> On 01/25/2014 12:38 PM, Steve wrote:
>> Hi, could you please add an -b option for ocpasswd like htpasswd?
>>
>> htpasswd:
>> -b  Use the password from the command line rather than prompting for it.
>
> Hello,
>  Is that really needed? I'm thinking into modifying ocpasswd to only ask
> for the password once when stdin isn't a tty. That way
> echo "password"|ocpasswd would work as expected. Would that address your
> use case?
>
> regards,
> Nikos
>



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux