Re: useradd with * in passwd field

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

 



On Mon, 2009-04-06 at 20:20 +0530, Sudarshan Soma wrote:
> On Mon, Apr 6, 2009 at 7:46 PM, Chris Tyler <chris@xxxxxxxxxxx> wrote:
> > Hi Pavan,
> >
> > First, you should in almost all cases have shadow password support
> > enabled, so the actual passwords will be in /etc/shadow not /etc/passwd.
> >
> > Second, useradd will by default create an account which cannot be
> > accessed until a password is added (typically with the passwd command).
> > If you need to lock an account that has a password so that it cannot be
> > used for login, you can use "passwd -l username"; note that this
> > prepends an exclamation mark to the password field (does the same thing
> > as your star). The opposite command is "passwd -u username", which
> > unlocks the account.
> >
> Thanks Chris.
> I got the command ,
> usermod -p "*" user  &> /dev/null
> 
> Actually i want to make user with no access at any time.
> 
> Best Regards,
> pavan

Pavan,

If you're using usermod, you'll want the -L option.

(Also: on this list (and other Fedora lists), please reply at the bottom
of messages instead of the top -- it preserves the flow of discussion).

-Chris

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux