Re: storing root password rpm spec file

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

 



Actually, if you really want/need to go that way, and you know the rpm
will only be installed from the commandline where the scripts can prompt
for input, then you can just use 'mysql -u root -p' and mysql itself
will prompt for the password. Easier, and safer (since a password given
on the commandline may show up in ps output so other users on the system
can see it, unless mysql does a good job of cleaning up its commandline,
I never checked on that).

Waht I usually prefer in rpms I make for internal use is that these
post-install scripts append a message to /etc/motd of tasks that still
need to be ryun by root, or checked (eg the case where the rpm install
is actually an upgrade and no database needs to be created)

David Jansen

On Thu, Dec 21, 2006 at 04:42:42PM +0100, Manuel Arostegui Ramirez wrote:
> El Jueves, 21 de Diciembre de 2006 14:51, Patrick Doyle escribió:
> > > A (very) dirty trick is to let the installation script
> > > stop the mysqld daemon, start it again with --skip-grant-tables,
> > > load your databases (no password is then required), and
> > > restart the daemon normally.
> 
> Yeah, I could be a great idea, but I don't fancy that idea too much, I don't 
> want to touch mysql daemon, I mean, is there no other way to do that?
> I've been thinking about some simple like echo&read and then:
> mysql -u root --password=`echo $password`
> 
> -- 
> Manuel Arostegui Ramirez.
> 
> Electronic Mail is not secure, may not be read every day, and should not
> be used for urgent or sensitive issues.
> 
> 
> 
> ------------------------------

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[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